Skip to content

Instantly share code, notes, and snippets.

@raino007
Created October 9, 2022 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save raino007/712bf418d51946155b877b0dea811450 to your computer and use it in GitHub Desktop.
Save raino007/712bf418d51946155b877b0dea811450 to your computer and use it in GitHub Desktop.
nginx_deploy.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx
labels:
app: nginx
spec:
replicas: 1
selector:
matchLabels:
app: nginx
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx
ports:
- containerPort: 80
##SVC Exposing as clusterIP
---
apiVersion: v1
kind: Service
metadata:
labels:
app: nginx
name: nginx
spec:
ports:
- port: 80
protocol: TCP
selector:
app: nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment