Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Kubernetes Services Demystified
apiVersion: v1
kind: ReplicationController
metadata:
name: sise
spec:
replicas: 1
selector:
app: sise
template:
metadata:
name: sise
labels:
app: sise
spec:
containers:
- name: sise
image: mhausenblas/simpleservice:0.4.0
ports:
- containerPort: 9876
apiVersion: v1
kind: Service
metadata:
labels:
name: simpleservice
name: simpleservice
spec:
ports:
- port: 80
targetPort: 9876
selector:
app: sise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.