Created
April 18, 2017 10:45
-
-
Save mhausenblas/ae2038757a778973d117bdd8816ce449 to your computer and use it in GitHub Desktop.
Kubernetes Services Demystified
This file contains 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: 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 |
This file contains 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: | |
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