66 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
			
		
		
	
	
			66 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			YAML
		
	
	
	
| ---
 | |
| apiVersion: apps/v1
 | |
| kind: Deployment
 | |
| metadata:
 | |
|   name: jenkins-operator
 | |
|   labels:
 | |
|     control-plane: controller-manager
 | |
| spec:
 | |
|   selector:
 | |
|     matchLabels:
 | |
|       control-plane: controller-manager
 | |
|   replicas: 1
 | |
|   template:
 | |
|     metadata:
 | |
|       labels:
 | |
|         control-plane: controller-manager
 | |
|     spec:
 | |
|       serviceAccountName: jenkins-operator
 | |
|       securityContext:
 | |
|         runAsUser: 65532
 | |
|       containers:
 | |
|       - command:
 | |
|         - /manager
 | |
|         args:
 | |
|         - --leader-elect
 | |
|         - --validate-security-warnings 
 | |
|         image: {DOCKER_REGISTRY}:{GITCOMMIT}
 | |
|         name: jenkins-operator
 | |
|         imagePullPolicy: IfNotPresent
 | |
|         securityContext:
 | |
|           allowPrivilegeEscalation: false
 | |
|         livenessProbe:
 | |
|           httpGet:
 | |
|             path: /healthz
 | |
|             port: 8081
 | |
|           initialDelaySeconds: 15
 | |
|           periodSeconds: 20
 | |
|         readinessProbe:
 | |
|           httpGet:
 | |
|             path: /readyz
 | |
|             port: 8081
 | |
|           initialDelaySeconds: 5
 | |
|           periodSeconds: 10
 | |
|         resources:
 | |
|           limits:
 | |
|             cpu: 200m
 | |
|             memory: 200Mi
 | |
|           requests:
 | |
|             cpu: 100m
 | |
|             memory: 80Mi
 | |
|         env:
 | |
|           - name: WATCH_NAMESPACE
 | |
|             valueFrom:
 | |
|               fieldRef:
 | |
|                 fieldPath: metadata.namespace
 | |
|         volumeMounts:
 | |
|           - mountPath: /tmp/k8s-webhook-server/serving-certs
 | |
|             name: cert       
 | |
|       volumes:
 | |
|       - name: cert
 | |
|         secret:
 | |
|           defaultMode: 420
 | |
|           secretName: webhook-server-cert
 | |
|       terminationGracePeriodSeconds: 10
 | |
| ---
 |