-
-
Save raino007/712bf418d51946155b877b0dea811450 to your computer and use it in GitHub Desktop.
nginx_deploy.yml
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: 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