|
1 | 1 | apiVersion: apps/v1 |
2 | 2 | kind: Deployment |
3 | 3 | metadata: |
4 | | - name: envoy-gateway |
| 4 | + name: {{ include "eg.fullname" . }} |
5 | 5 | namespace: {{ include "eg.namespace" . }} |
6 | 6 | {{- with .Values.deployment.annotations }} |
7 | 7 | annotations: |
8 | 8 | {{- toYaml . | nindent 4 }} |
9 | 9 | {{- end }} |
10 | 10 | labels: |
11 | | - control-plane: envoy-gateway |
| 11 | + control-plane: {{ include "eg.fullname" . }} |
12 | 12 | {{- include "eg.labels" . | nindent 4 }} |
13 | 13 | spec: |
14 | 14 | {{- if not .Values.hpa.enabled }} |
15 | 15 | replicas: {{ .Values.deployment.replicas }} |
16 | 16 | {{- end }} |
17 | 17 | selector: |
18 | 18 | matchLabels: |
19 | | - control-plane: envoy-gateway |
| 19 | + control-plane: {{ include "eg.fullname" . }} |
20 | 20 | {{- include "eg.selectorLabels" . | nindent 6 }} |
21 | 21 | template: |
22 | 22 | metadata: |
|
25 | 25 | {{- toYaml . | nindent 8 }} |
26 | 26 | {{- end }} |
27 | 27 | labels: |
28 | | - control-plane: envoy-gateway |
| 28 | + control-plane: {{ include "eg.fullname" . }} |
29 | 29 | {{- include "eg.selectorLabels" . | nindent 8 }} |
30 | 30 | {{- with .Values.deployment.pod.labels }} |
31 | 31 | {{- toYaml . | nindent 8 }} |
|
67 | 67 | port: 8081 |
68 | 68 | initialDelaySeconds: 15 |
69 | 69 | periodSeconds: 20 |
70 | | - name: envoy-gateway |
| 70 | + name: {{ include "eg.fullname" . }} |
71 | 71 | ports: |
72 | 72 | {{- range .Values.deployment.ports }} |
73 | 73 | - containerPort: {{ .port }} |
@@ -98,13 +98,13 @@ spec: |
98 | 98 | {{- with .Values.deployment.priorityClassName }} |
99 | 99 | priorityClassName: {{ . | quote }} |
100 | 100 | {{- end }} |
101 | | - serviceAccountName: envoy-gateway |
| 101 | + serviceAccountName: {{ include "eg.fullname" . }} |
102 | 102 | terminationGracePeriodSeconds: 10 |
103 | 103 | volumes: |
104 | 104 | - configMap: |
105 | 105 | defaultMode: 420 |
106 | | - name: envoy-gateway-config |
| 106 | + name: {{ include "eg.fullname" . }}-config |
107 | 107 | name: envoy-gateway-config |
108 | 108 | - name: certs |
109 | 109 | secret: |
110 | | - secretName: envoy-gateway |
| 110 | + secretName: {{ include "eg.fullname" . }} |
0 commit comments