Skip to content

Commit

Permalink
Update nginx.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptcamp authored Sep 10, 2021
1 parent 8f62dd5 commit ef4255b
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions nginx.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,56 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: index-html-configmap
namespace: default
data:
index.html: |
<html>
<h1>Welcome</h1>
</br>
<h1>Hi! I am Deployed in Mnikube </h1>
</html
---

apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-deployment
namespace: default
spec:
selector:
matchLabels:
app: nginx
replicas: 2
template:
metadata:
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
ports:
- containerPort: 80
volumeMounts:
- name: nginx-index-file
mountPath: /usr/share/nginx/html/
volumes:
- name: nginx-index-file
configMap:
name: index-html-configmap
---
apiVersion: v1
kind: Service
metadata:
name: nginx-service
namespace: default
spec:
selector:
app: nginx
type: NodePort
ports:
- port: 80
nodePort: 32000
targetPort: 80

0 comments on commit ef4255b

Please sign in to comment.