Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
589
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.59 KB | None | 0 0
  1. apiVersion: apps/v1
  2. kind: StatefulSet
  3. metadata:
  4.   namespace: default
  5.   name: test-ss
  6. spec:
  7.   selector:
  8.     matchLabels:
  9.       app: test-ss
  10.   serviceName: test-ss
  11.   template:
  12.     metadata:
  13.       labels:
  14.         app: test-ss
  15.     spec:
  16.       nodeSelector:
  17.         kubernetes.io/hostname: srv-1
  18.       volumes:
  19.       - name: test
  20.         hostPath:
  21.           path: /var/lib/docker/v/test/ss
  22.       containers:
  23.       - name: test-ss
  24.         image: nurza/hello
  25.         volumeMounts:
  26.         - name: test
  27.           mountPath: /test
  28. ---
  29. apiVersion: apps/v1
  30. kind: ReplicaSet
  31. metadata:
  32.   name: test-rs
  33.   namespace: default
  34. spec:
  35.   replicas: 1
  36.   selector:
  37.     matchLabels:
  38.       app: test-rs
  39.   template:
  40.     metadata:
  41.       labels:
  42.         app: test-rs
  43.     spec:
  44.       nodeSelector:
  45.         kubernetes.io/hostname: srv-1
  46.       volumes:
  47.       - name: test
  48.         hostPath:
  49.           path: /var/lib/docker/v/test/rs
  50.       containers:
  51.       - name: test-rs
  52.         image: nurza/hello
  53.         volumeMounts:
  54.         - name: test
  55.           mountPath: /test
  56. ---
  57. apiVersion: extensions/v1beta1
  58. kind: DaemonSet
  59. metadata:
  60.   name: test-ds
  61.   namespace: default
  62. spec:
  63.   selector:
  64.     matchLabels:
  65.       app: test-ds
  66.   template:
  67.     metadata:
  68.       labels:
  69.         app: test-ds
  70.     spec:
  71.       nodeSelector:
  72.         kubernetes.io/hostname: srv-1
  73.       volumes:
  74.       - name: test
  75.         hostPath:
  76.           path: /var/lib/docker/v/test/ds
  77.       containers:
  78.       - name: test-ds
  79.         image: nurza/hello
  80.         volumeMounts:
  81.         - name: test
  82.           mountPath: /test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement