|
1 | 1 | apiVersion: apps/v1
|
2 | 2 | kind: Deployment
|
3 | 3 | metadata:
|
4 |
| - name: '{{ include "helm-chart.fullname" . }}' |
5 |
| - namespace: '{{.Release.Namespace}}' |
6 |
| - labels: |
7 |
| - {{- include "helm-chart.labels" . | nindent 8 }} |
| 4 | + name: '{{ include "helm-chart.fullname" . }}' |
| 5 | + namespace: '{{.Release.Namespace}}' |
| 6 | + labels: |
| 7 | + {{- include "helm-chart.labels" . | nindent 4 }} |
8 | 8 | spec:
|
9 |
| - replicas: {{ .Values.replicas | default 1}} |
10 |
| - selector: |
11 |
| - matchLabels: |
12 |
| - {{- include "helm-chart.selectorLabels" . | nindent 10 }} |
13 |
| - template: |
14 |
| - metadata: |
15 |
| - annotations: |
16 |
| - {{- range keys .Values.podAnnotations }} |
17 |
| - {{ . | quote }}: {{ get $.Values.podAnnotations . | quote}} |
18 |
| - {{- end }} |
19 |
| - labels: |
20 |
| - {{- include "helm-chart.selectorLabels" . | nindent 14}} |
21 |
| - spec: |
22 |
| - {{- with .Values.imagePullSecrets }} |
23 |
| - imagePullSecrets: |
24 |
| - {{- toYaml . | nindent 14 }} |
25 |
| - {{- end }} |
26 |
| - containers: |
27 |
| - - args: |
28 |
| - - --secure-listen-address=0.0.0.0:8443 |
29 |
| - - --upstream=http://127.0.0.1:8080/ |
30 |
| - - --logtostderr=true |
31 |
| - - --v=0 |
32 |
| - image: gcr.io/kubebuilder/kube-rbac-proxy:v0.11.0 |
33 |
| - name: kube-rbac-proxy |
34 |
| - ports: |
35 |
| - - containerPort: 8443 |
36 |
| - name: https |
37 |
| - protocol: TCP |
38 |
| - resources: |
39 |
| - limits: |
40 |
| - cpu: 500m |
41 |
| - memory: 128Mi |
42 |
| - requests: |
43 |
| - cpu: 5m |
44 |
| - memory: 64Mi |
45 |
| - securityContext: |
46 |
| - allowPrivilegeEscalation: false |
47 |
| - - args: |
48 |
| - - --pvc-storage-size={{ .Values.pvcStorageSize }} |
49 |
| - - --health-probe-bind-address=:8081 |
50 |
| - - --metrics-bind-address=127.0.0.1:8080 |
51 |
| - - --leader-elect |
52 |
| - - '--tool-image={{ .Values.toolsImage.repository | default "quay.io/kairos/auroraboot" }}:{{ .Values.toolsImage.tag | default "latest" }}' |
53 |
| - command: |
54 |
| - - /manager |
55 |
| - image: '{{ .Values.image.repository | default "ghcr.io/pluralsh/osbuilder" }}:{{ .Values.image.tag | default .Chart.AppVersion }}' |
56 |
| - livenessProbe: |
57 |
| - httpGet: |
58 |
| - path: /healthz |
59 |
| - port: 8081 |
60 |
| - initialDelaySeconds: 15 |
61 |
| - periodSeconds: 20 |
62 |
| - name: manager |
63 |
| - readinessProbe: |
64 |
| - httpGet: |
65 |
| - path: /readyz |
66 |
| - port: 8081 |
67 |
| - initialDelaySeconds: 5 |
68 |
| - periodSeconds: 10 |
69 |
| - {{- if and .Values.resources .Values.resources.controller }} |
70 |
| - resources: |
71 |
| -{{ toYaml .Values.resources.controller | indent 20 }} |
72 |
| - {{- end }} |
73 |
| - securityContext: |
74 |
| - allowPrivilegeEscalation: false |
75 |
| - securityContext: |
76 |
| - runAsNonRoot: true |
77 |
| - serviceAccountName: '{{ include "helm-chart.serviceAccountName" . }}' |
78 |
| - terminationGracePeriodSeconds: 10 |
79 |
| - {{- with .Values.nodeSelector }} |
80 |
| - nodeSelector: |
81 |
| - {{- toYaml . | nindent 14 }} |
82 |
| - {{- end }} |
83 |
| - {{- with .Values.affinity }} |
84 |
| - affinity: |
85 |
| - {{- toYaml . | nindent 14 }} |
86 |
| - {{- end }} |
87 |
| - {{- with .Values.tolerations }} |
88 |
| - tolerations: |
89 |
| - {{- toYaml . | nindent 14 }} |
90 |
| - {{- end }} |
91 |
| ---- |
92 |
| -apiVersion: apps/v1 |
93 |
| -kind: Deployment |
94 |
| -metadata: |
95 |
| - labels: |
96 |
| - app.kubernetes.io/name: osbuilder-nginx |
97 |
| - name: 'osbuilder-nginx' |
98 |
| - namespace: '{{.Release.Namespace}}' |
99 |
| -spec: |
100 |
| - replicas: 1 |
101 |
| - selector: |
102 |
| - matchLabels: |
103 |
| - app.kubernetes.io/name: osbuilder-nginx |
104 |
| - template: |
105 |
| - metadata: |
106 |
| - labels: |
107 |
| - app.kubernetes.io/name: osbuilder-nginx |
108 |
| - spec: |
109 |
| - containers: |
110 |
| - - image: nginx |
111 |
| - name: nginx |
112 |
| - ports: |
113 |
| - - containerPort: 80 |
114 |
| - volumeMounts: |
115 |
| - - mountPath: /usr/share/nginx/html |
116 |
| - name: nginx-public |
117 |
| - - mountPath: /etc/nginx/conf.d |
118 |
| - name: config |
119 |
| - readOnly: true |
120 |
| - serviceAccountName: '{{ include "helm-chart.serviceAccountName" . }}' |
121 |
| - terminationGracePeriodSeconds: 10 |
122 |
| - securityContext: |
123 |
| - fsGroup: 101 |
124 |
| - volumes: |
125 |
| - - name: nginx-public |
126 |
| - persistentVolumeClaim: |
127 |
| - claimName: osartifactbuilder-operator-nginx-public |
128 |
| - - name: config |
129 |
| - configMap: |
130 |
| - name: nginx-config |
131 |
| - items: |
132 |
| - - key: nginx.conf |
133 |
| - path: default.conf |
| 9 | + replicas: {{ .Values.builder.replicas }} |
| 10 | + selector: |
| 11 | + matchLabels: |
| 12 | + {{- include "helm-chart.selectorLabels" . | nindent 6 }} |
| 13 | + template: |
| 14 | + metadata: |
| 15 | + annotations: |
| 16 | + {{- range keys .Values.builder.podAnnotations }} |
| 17 | + {{ . | quote }}: {{ get $.Values.builder.podAnnotations . | quote}} |
| 18 | + {{- end }} |
| 19 | + labels: |
| 20 | + {{- include "helm-chart.selectorLabels" . | nindent 8 }} |
| 21 | + spec: |
| 22 | + {{- with .Values.builder.imagePullSecrets }} |
| 23 | + imagePullSecrets: |
| 24 | + {{- toYaml . | nindent 14 }} |
| 25 | + {{- end }} |
| 26 | + containers: |
| 27 | + - name: manager |
| 28 | + image: '{{ .Values.builder.image.repository | default "ghcr.io/pluralsh/osbuilder" }}:{{ .Values.builder.image.tag | default .Chart.AppVersion }}' |
| 29 | + command: [ '/manager' ] |
| 30 | + args: |
| 31 | + - --pvc-storage-size={{ .Values.builder.pvcStorageSize }} |
| 32 | + - --health-probe-bind-address=:8081 |
| 33 | + - --metrics-bind-address=127.0.0.1:8080 |
| 34 | + - --leader-elect |
| 35 | + - '--tool-image={{ .Values.builder.toolsImage.repository | default "quay.io/kairos/auroraboot" }}:{{ .Values.builder.toolsImage.tag | default "latest" }}' |
| 36 | + livenessProbe: |
| 37 | + httpGet: |
| 38 | + path: /healthz |
| 39 | + port: 8081 |
| 40 | + initialDelaySeconds: 15 |
| 41 | + periodSeconds: 20 |
| 42 | + readinessProbe: |
| 43 | + httpGet: |
| 44 | + path: /readyz |
| 45 | + port: 8081 |
| 46 | + initialDelaySeconds: 5 |
| 47 | + periodSeconds: 10 |
| 48 | + {{- if and .Values.builder.resources .Values.builder.resources.controller }} |
| 49 | + resources: |
| 50 | + {{- toYaml .Values.builder.resources.controller | nindent 12 }} |
| 51 | + {{- end }} |
| 52 | + securityContext: |
| 53 | + allowPrivilegeEscalation: false |
| 54 | + securityContext: |
| 55 | + runAsNonRoot: true |
| 56 | + serviceAccountName: '{{ include "helm-chart.serviceAccountName" . }}' |
| 57 | + terminationGracePeriodSeconds: 10 |
| 58 | + {{- with .Values.builder.nodeSelector }} |
| 59 | + nodeSelector: |
| 60 | + {{- toYaml . | nindent 14 }} |
| 61 | + {{- end }} |
| 62 | + {{- with .Values.builder.affinity }} |
| 63 | + affinity: |
| 64 | + {{- toYaml . | nindent 14 }} |
| 65 | + {{- end }} |
| 66 | + {{- with .Values.builder.tolerations }} |
| 67 | + tolerations: |
| 68 | + {{- toYaml . | nindent 14 }} |
| 69 | + {{- end }} |
0 commit comments