Skip to content

Instantly share code, notes, and snippets.

@amcginlay
Created January 14, 2021 17:48
Show Gist options
  • Save amcginlay/2a647a42a9a9a951039fdbc2ee7fb4ea to your computer and use it in GitHub Desktop.
Save amcginlay/2a647a42a9a9a951039fdbc2ee7fb4ea to your computer and use it in GitHub Desktop.
# the minumum manifest required for scaled nginx exposed as a service
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 2
selector:
matchLabels:
app: nginx-pod
template:
metadata:
labels:
app: nginx-pod
spec:
containers:
- name: nginx-container
image: nginx
---
apiVersion: v1
kind: Service
metadata:
name: nginx-svc
spec:
type: ClusterIP
# type: NodePort
# type: LoadBalancer
selector:
app: nginx-pod
ports:
- port: 80
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment