Skip to content

Instantly share code, notes, and snippets.

@aivarasko
Last active June 16, 2019 14:51
Show Gist options
  • Select an option

  • Save aivarasko/9cd038d1218a98263c9cb012cd2b9c9f to your computer and use it in GitHub Desktop.

Select an option

Save aivarasko/9cd038d1218a98263c9cb012cd2b9c9f to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment