Skip to content

Instantly share code, notes, and snippets.

@StefH
Created October 24, 2018 06:03
Show Gist options
  • Save StefH/121dcd691d1edeca05028dc8a2a934ce to your computer and use it in GitHub Desktop.
Save StefH/121dcd691d1edeca05028dc8a2a934ce to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Service
metadata:
name: default-subdomain
spec:
selector:
name: busybox
clusterIP: None
ports:
- name: foo # Actually, no port is needed.
port: 1234
targetPort: 1234
---
apiVersion: v1
kind: Pod
metadata:
name: busybox1
labels:
name: busybox
spec:
hostname: busybox-1
subdomain: default-subdomain
containers:
- image: busybox
command:
- sleep
- "3600"
name: busybox
---
apiVersion: v1
kind: Pod
metadata:
name: busybox2
labels:
name: busybox
spec:
hostname: busybox-2
subdomain: default-subdomain
containers:
- image: busybox
command:
- sleep
- "3600"
name: busybox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment