Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1
- kind: StatefulSet
- metadata:
- namespace: default
- name: test-ss
- spec:
- selector:
- matchLabels:
- app: test-ss
- serviceName: test-ss
- template:
- metadata:
- labels:
- app: test-ss
- spec:
- nodeSelector:
- kubernetes.io/hostname: srv-1
- volumes:
- - name: test
- hostPath:
- path: /var/lib/docker/v/test/ss
- containers:
- - name: test-ss
- image: nurza/hello
- volumeMounts:
- - name: test
- mountPath: /test
- ---
- apiVersion: apps/v1
- kind: ReplicaSet
- metadata:
- name: test-rs
- namespace: default
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: test-rs
- template:
- metadata:
- labels:
- app: test-rs
- spec:
- nodeSelector:
- kubernetes.io/hostname: srv-1
- volumes:
- - name: test
- hostPath:
- path: /var/lib/docker/v/test/rs
- containers:
- - name: test-rs
- image: nurza/hello
- volumeMounts:
- - name: test
- mountPath: /test
- ---
- apiVersion: extensions/v1beta1
- kind: DaemonSet
- metadata:
- name: test-ds
- namespace: default
- spec:
- selector:
- matchLabels:
- app: test-ds
- template:
- metadata:
- labels:
- app: test-ds
- spec:
- nodeSelector:
- kubernetes.io/hostname: srv-1
- volumes:
- - name: test
- hostPath:
- path: /var/lib/docker/v/test/ds
- containers:
- - name: test-ds
- image: nurza/hello
- volumeMounts:
- - name: test
- mountPath: /test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement