style(helm chart): define named ports on pods and target them in Services (#873)
Named ports improve flexibility and reduce configuration errors Fix https://github.com/specklesystems/speckle-server/issues/868
This commit is contained in:
Родитель
9227fd7a1b
Коммит
fd9c891c74
|
@ -33,6 +33,11 @@ spec:
|
|||
- name: main
|
||||
image: speckle/speckle-server:{{ .Values.docker_image_tag }}
|
||||
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 3000
|
||||
protocol: TCP
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: {{ .Values.server.requests.cpu }}
|
||||
|
|
|
@ -36,6 +36,11 @@ spec:
|
|||
- name: main
|
||||
image: speckle/speckle-fileimport-service:{{ .Values.docker_image_tag }}
|
||||
|
||||
ports:
|
||||
- name: metrics
|
||||
containerPort: 9093
|
||||
protocol: TCP
|
||||
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 60
|
||||
|
|
|
@ -23,6 +23,12 @@ spec:
|
|||
containers:
|
||||
- name: main
|
||||
image: speckle/speckle-frontend:{{ .Values.docker_image_tag }}
|
||||
|
||||
ports:
|
||||
- name: www
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: {{ .Values.frontend.requests.cpu }}
|
||||
|
|
|
@ -33,6 +33,11 @@ spec:
|
|||
- name: main
|
||||
image: speckle/speckle-monitor-deployment:{{ .Values.docker_image_tag }}
|
||||
|
||||
ports:
|
||||
- name: metrics
|
||||
containerPort: 9092
|
||||
protocol: TCP
|
||||
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
|
|
|
@ -34,6 +34,11 @@ spec:
|
|||
- name: main
|
||||
image: speckle/speckle-preview-service:{{ .Values.docker_image_tag }}
|
||||
|
||||
ports:
|
||||
- name: metrics
|
||||
containerPort: 9094
|
||||
protocol: TCP
|
||||
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 60
|
||||
|
|
|
@ -34,6 +34,11 @@ spec:
|
|||
- name: main
|
||||
image: speckle/speckle-webhook-service:{{ .Values.docker_image_tag }}
|
||||
|
||||
ports:
|
||||
- name: metrics
|
||||
containerPort: 9095
|
||||
protocol: TCP
|
||||
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 60
|
||||
|
|
|
@ -14,7 +14,7 @@ spec:
|
|||
- protocol: TCP
|
||||
name: web
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
targetPort: http
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
@ -32,7 +32,7 @@ spec:
|
|||
- protocol: TCP
|
||||
name: www
|
||||
port: 80
|
||||
targetPort: 80
|
||||
targetPort: www
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
@ -50,7 +50,7 @@ spec:
|
|||
- protocol: TCP
|
||||
name: web
|
||||
port: 9094
|
||||
targetPort: 9094
|
||||
targetPort: metrics
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
@ -68,7 +68,7 @@ spec:
|
|||
- protocol: TCP
|
||||
name: web
|
||||
port: 9093
|
||||
targetPort: 9093
|
||||
targetPort: metrics
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
@ -86,7 +86,7 @@ spec:
|
|||
- protocol: TCP
|
||||
name: web
|
||||
port: 9095
|
||||
targetPort: 9095
|
||||
targetPort: metrics
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
@ -104,4 +104,4 @@ spec:
|
|||
- protocol: TCP
|
||||
name: web
|
||||
port: 9092
|
||||
targetPort: 9092
|
||||
targetPort: metrics
|
||||
|
|
Загрузка…
Ссылка в новой задаче