io.javaoperatorsdk.operator.sample.deployment.yaml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sample-webpage-operator Show documentation
Show all versions of sample-webpage-operator Show documentation
Provisions an nginx Webserver based on a CRD with give html
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: ""
spec:
selector:
matchLabels:
app: ""
replicas: 1
template:
metadata:
labels:
app: ""
spec:
containers:
- name: nginx
image: nginx:1.17.0
ports:
- containerPort: 80
volumeMounts:
- name: html-volume
mountPath: /usr/share/nginx/html
volumes:
- name: html-volume
configMap:
name: ""