1- # Copyright 2021 Google LLC
2- #
3- # Licensed under the Apache License, Version 2.0 (the "License");
4- # you may not use this file except in compliance with the License.
5- # You may obtain a copy of the License at
6- #
7- # http://www.apache.org/licenses/LICENSE-2.0
8- #
9- # Unless required by applicable law or agreed to in writing, software
10- # distributed under the License is distributed on an "AS IS" BASIS,
11- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12- # See the License for the specific language governing permissions and
13- # limitations under the License.
14-
151apiVersion : apps/v1
162kind : Deployment
173metadata :
18- name : digester-controller-manager
19- namespace : digester-system
204 labels :
215 control-plane : controller-manager
226 digester/operation : webhook
237 digester/system : " yes"
8+ name : digester-controller-manager
9+ namespace : digester-system
2410spec :
25- replicas : 3 # kpt-set: ${replicas}
11+ replicas : 3
2612 selector :
2713 matchLabels :
2814 control-plane : controller-manager
2915 digester/operation : webhook
3016 digester/system : " yes"
3117 template :
3218 metadata :
19+ annotations :
20+ prometheus.io/port : " 8888"
3321 labels :
3422 control-plane : controller-manager
3523 digester/operation : webhook
3624 digester/system : " yes"
37- annotations :
38- prometheus.io/port : " 8888" # kpt-set: ${metrics-port}
3925 spec :
40- serviceAccountName : digester-admin
41- nodeSelector :
42- kubernetes.io/os : linux
4326 containers :
44- - name : manager
45- image : k8s-digester # kpt-set: ${image}
46- args :
27+ - args :
4728 - webhook
48- - --cert-dir=/certs # kpt-set: --cert-dir=${cert-dir}
49- - --disable-cert-rotation=false # kpt-set: --disable-cert-rotation=${disable-cert-rotation}
50- - --dry-run=false # kpt-set: --dry-run=${dry-run}
51- - --health-addr=:9090 # kpt-set: --health-addr=:${health-port}
52- - --metrics-addr=:8888 # kpt-set: --metrics-addr=:${metrics-port}
53- - --offline=false # kpt-set: --offline=${offline}
54- - --port=8443 # kpt-set: --port=${port}
55- ports :
56- - name : webhook-server
57- protocol : TCP
58- containerPort : 8443 # kpt-set: ${port}
59- - name : metrics
60- protocol : TCP
61- containerPort : 8888 # kpt-set: ${metrics-port}
62- - name : healthz
63- protocol : TCP
64- containerPort : 9090 # kpt-set: ${health-port}
29+ - --cert-dir=/certs
30+ - --disable-cert-rotation=false
31+ - --dry-run=false
32+ - --health-addr=:9090
33+ - --metrics-addr=:8888
34+ - --offline=false
35+ - --port=8443
6536 env :
6637 - name : DEBUG
67- value : " false" # kpt-set: ${debug}
38+ value : " false"
6839 - name : POD_NAME
6940 valueFrom :
7041 fieldRef :
@@ -74,23 +45,31 @@ spec:
7445 fieldRef :
7546 apiVersion : v1
7647 fieldPath : metadata.namespace
77- resources :
78- requests :
79- cpu : 100m # kpt-set: ${request-cpu}
80- ephemeral-storage : 256Mi # kpt-set: ${request-ephemeral-storage}
81- memory : 256Mi # kpt-set: ${request-memory}
82- volumeMounts :
83- - name : cert
84- readOnly : true
85- mountPath : /certs # kpt-set: ${cert-dir}
48+ image : ghcr.io/google/k8s-digester:v0.1.12@sha256:1bdd3e2442f3f4087502bf525537f32bdf02e595f47c6ae9ed32771d2455b3cb
8649 livenessProbe :
8750 httpGet :
88- port : healthz
8951 path : /healthz
52+ port : healthz
53+ name : manager
54+ ports :
55+ - containerPort : 8443
56+ name : webhook-server
57+ protocol : TCP
58+ - containerPort : 8888
59+ name : metrics
60+ protocol : TCP
61+ - containerPort : 9090
62+ name : healthz
63+ protocol : TCP
9064 readinessProbe :
9165 httpGet :
92- port : healthz
9366 path : /readyz
67+ port : healthz
68+ resources :
69+ requests :
70+ cpu : 100m
71+ ephemeral-storage : 256Mi
72+ memory : 256Mi
9473 securityContext :
9574 allowPrivilegeEscalation : false
9675 capabilities :
@@ -100,6 +79,13 @@ spec:
10079 runAsGroup : 65532
10180 runAsNonRoot : true
10281 runAsUser : 65532
82+ volumeMounts :
83+ - mountPath : /certs
84+ name : cert
85+ readOnly : true
86+ nodeSelector :
87+ kubernetes.io/os : linux
88+ serviceAccountName : digester-admin
10389 volumes :
10490 - name : cert
10591 secret :
0 commit comments