Skip to content

Instantly share code, notes, and snippets.

@mark-church
Created August 28, 2018 02:50
Show Gist options
  • Save mark-church/8e7a1a8a5752f67aab3a1b77add77084 to your computer and use it in GitHub Desktop.
Save mark-church/8e7a1a8a5752f67aab3a1b77add77084 to your computer and use it in GitHub Desktop.
kind: Service
apiVersion: v1
metadata:
name: netgen
spec:
selector:
app: netgen
ports:
- protocol: TCP
port: 5000
targetPort: 5000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: netgen
labels:
app: netgen
spec:
replicas: 3
selector:
matchLabels:
app: netgen
template:
metadata:
labels:
app: netgen
spec:
containers:
- name: netshoot
image: nicolaka/netshoot:latest
command:
- "netgen"
- "netgen.default.svc.cluster.local"
- "5000"
ports:
- containerPort: 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment