Skip to content

Instantly share code, notes, and snippets.

@mhausenblas
Created April 18, 2017 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mhausenblas/ae2038757a778973d117bdd8816ce449 to your computer and use it in GitHub Desktop.
Save mhausenblas/ae2038757a778973d117bdd8816ce449 to your computer and use it in GitHub Desktop.
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