Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: v1
- kind: Pod
- metadata:
- creationTimestamp: null
- labels:
- run: pod
- name: pod1
- spec:
- containers:
- - args:
- - sleep
- - "10000"
- image: busybox
- name: pod
- resources: {}
- restartPolicy: Always
- status: {}
- ---
- apiVersion: v1
- kind: Pod
- metadata:
- creationTimestamp: null
- labels:
- run: pod
- name: pod2
- spec:
- containers:
- - args:
- - sleep
- - "10000"
- image: busybox
- name: pod
- resources: {}
- restartPolicy: Always
- status: {}
- ---
- apiVersion: v1
- kind: Service
- metadata:
- creationTimestamp: null
- labels:
- app: dd-service
- name: dd-service
- spec:
- ports:
- - name: 80-80
- port: 80
- protocol: TCP
- targetPort: 80
- selector:
- name: whoami
- type: ClusterIP
- ---
- apiVersion: apps/v1
- kind: DaemonSet
- metadata:
- name: dd-whoami
- namespace: default
- labels:
- k8s-app: whoami
- spec:
- selector:
- matchLabels:
- name: whoami
- template:
- metadata:
- labels:
- name: whoami
- spec:
- containers:
- - name: whoami
- image: containous/whoami
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement