Created
October 24, 2018 06:03
-
-
Save StefH/121dcd691d1edeca05028dc8a2a934ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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