Created
July 31, 2015 22:21
-
-
Save bprashanth/64c4105d1f15154b4342 to your computer and use it in GitHub Desktop.
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: | |
name: mysvc | |
labels: | |
app: nginx | |
spec: | |
ports: | |
- port: 80 | |
protocol: TCP | |
name: http | |
selector: | |
app: nginx | |
--- | |
apiVersion: v1 | |
kind: ReplicationController | |
metadata: | |
name: nginxrc | |
app: nginx | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: nginx | |
spec: | |
containers: | |
- name: nginx | |
image: nginx | |
ports: | |
- containerPort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment