@@ -3,11 +3,7 @@ kind: Namespace
33metadata :
44 labels :
55 control-plane : controller-manager
6- app.kubernetes.io/name : namespace
7- app.kubernetes.io/instance : system
8- app.kubernetes.io/component : manager
9- app.kubernetes.io/created-by : postgresql-operator
10- app.kubernetes.io/part-of : postgresql-operator
6+ app.kubernetes.io/name : test
117 app.kubernetes.io/managed-by : kustomize
128 name : system
139---
@@ -18,23 +14,21 @@ metadata:
1814 namespace : system
1915 labels :
2016 control-plane : controller-manager
21- app.kubernetes.io/name : deployment
22- app.kubernetes.io/instance : controller-manager
23- app.kubernetes.io/component : manager
24- app.kubernetes.io/created-by : postgresql-operator
25- app.kubernetes.io/part-of : postgresql-operator
17+ app.kubernetes.io/name : test
2618 app.kubernetes.io/managed-by : kustomize
2719spec :
2820 selector :
2921 matchLabels :
3022 control-plane : controller-manager
23+ app.kubernetes.io/name : test
3124 replicas : 1
3225 template :
3326 metadata :
3427 annotations :
3528 kubectl.kubernetes.io/default-container : manager
3629 labels :
3730 control-plane : controller-manager
31+ app.kubernetes.io/name : test
3832 spec :
3933 # TODO(user): Uncomment the following code to configure the nodeAffinity expression
4034 # according to the platforms which are supported by your solution.
@@ -57,46 +51,48 @@ spec:
5751 # values:
5852 # - linux
5953 securityContext :
54+ # Projects are configured by default to adhere to the "restricted" Pod Security Standards.
55+ # This ensures that deployments meet the highest security requirements for Kubernetes.
56+ # For more details, see: https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted
6057 runAsNonRoot : true
61- # TODO(user): For common cases that do not require escalating privileges
62- # it is recommended to ensure that all your Pods/Containers are restrictive.
63- # More info: https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted
64- # Please uncomment the following code if your project does NOT have to work on old Kubernetes
65- # versions < 1.19 or on vendors versions which do NOT support this field by default (i.e. Openshift < 4.11 ).
66- # seccompProfile:
67- # type: RuntimeDefault
58+ seccompProfile :
59+ type : RuntimeDefault
6860 containers :
69- - command :
70- - /manager
71- args :
72- - --leader-elect
73- image : controller:latest
74- name : manager
75- securityContext :
76- allowPrivilegeEscalation : false
77- capabilities :
78- drop :
79- - " ALL"
80- livenessProbe :
81- httpGet :
82- path : /healthz
83- port : 8081
84- initialDelaySeconds : 15
85- periodSeconds : 20
86- readinessProbe :
87- httpGet :
88- path : /readyz
89- port : 8081
90- initialDelaySeconds : 5
91- periodSeconds : 10
92- # TODO(user): Configure the resources accordingly based on the project requirements.
93- # More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
94- resources :
95- limits :
96- cpu : 500m
97- memory : 128Mi
98- requests :
99- cpu : 10m
100- memory : 64Mi
61+ - command :
62+ - /manager
63+ args :
64+ - --leader-elect
65+ - --health-probe-bind-address=:8081
66+ image : controller:latest
67+ name : manager
68+ ports : []
69+ securityContext :
70+ allowPrivilegeEscalation : false
71+ capabilities :
72+ drop :
73+ - " ALL"
74+ livenessProbe :
75+ httpGet :
76+ path : /healthz
77+ port : 8081
78+ initialDelaySeconds : 15
79+ periodSeconds : 20
80+ readinessProbe :
81+ httpGet :
82+ path : /readyz
83+ port : 8081
84+ initialDelaySeconds : 5
85+ periodSeconds : 10
86+ # TODO(user): Configure the resources accordingly based on the project requirements.
87+ # More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
88+ resources :
89+ limits :
90+ cpu : 500m
91+ memory : 128Mi
92+ requests :
93+ cpu : 10m
94+ memory : 64Mi
95+ volumeMounts : []
96+ volumes : []
10197 serviceAccountName : controller-manager
10298 terminationGracePeriodSeconds : 10
0 commit comments