Improve k8s configuration #1799
Answered
by
luoluoyuyu
luoluoyuyu
asked this question in
Dev
-
PurposeImprove k8s configuration Program
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.streampipes.ui.appName }}
spec:
selector:
matchLabels:
app: {{ .Values.streampipes.ui.appName }}
replicas: 1
template:
metadata:
labels:
app: {{ .Values.streampipes.ui.appName }}
spec:
volumes:
- name: nginx-conf
configMap:
name: nginx-conf
restartPolicy: {{ .Values.restartPolicy }}
initContainers:
- name: init-wait-consul-couchdb-extensions-all-iiot
image: alpine
command: ["sh", "-c", "for i in $(seq 1 300); do nc -zvw1 consul 8500 && nc -zvw1 couchdb 5984 && nc -zvw1 extensions-all-iiot 8090 && exit 0 || sleep 3; done; exit 1"]
extensions:
iiot:
appName: extensions-all-iiot
port: 8090
service:
name: extensions-all-iiot
labelsName: extensions-all-iiot
port: 8090 apiVersion: v1
kind: Service
metadata:
name: {{ .Values.extensions.iiot.service.name }}
labels:
name: {{ .Values.extensions.iiot.service.labelsName }}
spec:
selector:
app: {{ .Values.extensions.iiot.appName }}
ports:
- name: main
protocol: TCP
port: {{ .Values.extensions.iiot.port }}
targetPort: {{ .Values.extensions.iiot.service.port }} |
Beta Was this translation helpful? Give feedback.
Answered by
luoluoyuyu
Aug 2, 2023
Replies: 3 comments 2 replies
-
Two very important improvements, would be great if you will keep on them @luoluoyuyu 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
-
hi @bossenti |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
luoluoyuyu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi @bossenti
I submitted a pr for this discussion.#1809