Skip to content

Instantly share code, notes, and snippets.

@maksim-paskal
Last active February 4, 2020 08:44
Show Gist options
  • Save maksim-paskal/99a56367e3bb32f4fe215effc4823875 to your computer and use it in GitHub Desktop.
Save maksim-paskal/99a56367e3bb32f4fe215effc4823875 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: maintance-pod
spec:
selector:
matchLabels:
app: maintance-pod
replicas: 1
template:
metadata:
labels:
app: maintance-pod
spec:
nodeSelector:
kubernetes.io/hostname: node-name
volumes:
- name: pv-host
hostPath:
path: /
type: Directory
containers:
- name: maintance-pod
image: debian:jessie
command:
- tail
- -f
- /dev/null
volumeMounts:
- mountPath: /host
name: pv-host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment