Skip to content

Instantly share code, notes, and snippets.

@jirkapinkas
Created July 27, 2021 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jirkapinkas/634e7a0062d84e79b28afa2827f47ff4 to your computer and use it in GitHub Desktop.
Save jirkapinkas/634e7a0062d84e79b28afa2827f47ff4 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
labels:
app: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:1.15.11
ports:
- containerPort: 80
volumeMounts:
- name: html
mountPath: /usr/share/nginx/html/
readOnly: true
volumes:
- name: html
hostPath:
path: /data/html
type: Directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment