apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: nginx-hello-world
|
|
labels:
|
|
app: nginx-hello-world
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: nginx-hello-world
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nginx-hello-world
|
|
spec:
|
|
containers:
|
|
- name: nginx-hello-world
|
|
image: "image-registry.openshift-image-registry.svc:5000/miproyecto/nginx-hello-world"
|
|
terminationMessagePath: /dev/termination-log
|
|
terminationMessagePolicy: File
|
|
tty: true
|
|
stdin: true
|
|
serviceAccount: default
|
|
volumeMounts:
|
|
- mountPath: /usr/share/nginx/html
|
|
name: html-volume
|
|
volumes:
|
|
- name: html-volume
|
|
persistentVolumeClaim:
|
|
claimName: miproyecto-claim
|