Skip to content

Instantly share code, notes, and snippets.

@liejuntao001
Created June 11, 2019 15:55
Show Gist options
  • Save liejuntao001/117bbc2650aac7594773ff9dab594ecc to your computer and use it in GitHub Desktop.
Save liejuntao001/117bbc2650aac7594773ff9dab594ecc to your computer and use it in GitHub Desktop.
kind: Service
apiVersion: v1
metadata:
name: testsvc
spec:
selector:
app: test
ports:
- protocol: TCP
port: 8001
targetPort: 8000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: test
labels:
app: test
spec:
replicas: 5
selector:
matchLabels:
app: test
template:
metadata:
labels:
app: test
spec:
containers:
- name: whoami
image: jwilder/whoami
ports:
- containerPort: 8000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment