Skip to content

Instantly share code, notes, and snippets.

@bprashanth
Created July 31, 2015 22:21
Show Gist options
  • Save bprashanth/64c4105d1f15154b4342 to your computer and use it in GitHub Desktop.
Save bprashanth/64c4105d1f15154b4342 to your computer and use it in GitHub Desktop.
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