-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathdeployment.yaml
More file actions
51 lines (51 loc) · 1.81 KB
/
Copy pathdeployment.yaml
File metadata and controls
51 lines (51 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "aws-sigv4-proxy-admission-controller.fullname" . }}-webhook-deployment
namespace: {{ .Release.Namespace }}
labels:
app: {{ template "aws-sigv4-proxy-admission-controller.fullname" . }}
{{ include "aws-sigv4-proxy-admission-controller.labels" . | indent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ template "aws-sigv4-proxy-admission-controller.fullname" . }}
template:
metadata:
labels:
app: {{ template "aws-sigv4-proxy-admission-controller.fullname" . }}
spec:
serviceAccountName: {{ template "aws-sigv4-proxy-admission-controller.serviceAccountName" . }}
containers:
- name: {{ template "aws-sigv4-proxy-admission-controller.fullname" . }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- -tlsCertFile=/etc/webhook/certs/cert.pem
- -tlsKeyFile=/etc/webhook/certs/key.pem
ports:
- containerPort: {{ .Values.webhookService.targetPort }}
volumeMounts:
- name: webhook-certs
mountPath: /etc/webhook/certs
readOnly: true
env:
- name: AWS-SIGV4-PROXY-IMAGE
value: {{ .Values.env.awsSigV4ProxyImage }}
volumes:
- name: webhook-certs
secret:
secretName: {{ template "aws-sigv4-proxy-admission-controller.fullname" . }}-webhook-certs
{{- with .Values.nodeSelector }}
nodeSelector:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{ toYaml . | indent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
{{- end }}