Skip to content

Instantly share code, notes, and snippets.

@guidoffm
Created August 5, 2018 14:12
Show Gist options
  • Save guidoffm/8fbef0f0824d5057c42a9e6efe67d3fc to your computer and use it in GitHub Desktop.
Save guidoffm/8fbef0f0824d5057c42a9e6efe67d3fc to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx
spec:
replicas: 5
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: nginx
labels:
name: nginx
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
selector:
app: nginx
type: ClusterIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment