bug4811: Generated Operator

This commit is contained in:
Alessandro Stoltenberg
2020-06-03 11:56:28 +02:00
parent 57c7daec6e
commit b430bb90a0
9 changed files with 510 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: nginx-deployment
spec:
selector:
matchLabels:
app: nginx
replicas: 1 # tells deployment to run 2 pods matching the template
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.14.2
ports:
- containerPort: 80
name: http-port