This commit is contained in:
parent
2bfc729b61
commit
b2f1b2f7b1
12
charts/templates/configmap.yaml
Normal file
12
charts/templates/configmap.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: {{ .Release.Name }}-index-html-configmap
|
||||
namespace: default
|
||||
data:
|
||||
index.html: |
|
||||
<html>
|
||||
<h1>Welcome</h1>
|
||||
</br>
|
||||
<h1>Hi! I got deployed in {{ .Values.env.name }} Environment using Helm Chart </h1>
|
||||
</html
|
@ -22,4 +22,11 @@ spec:
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
protocol: TCP
|
||||
protocol: TCP
|
||||
volumeMounts:
|
||||
- name: nginx-index-file
|
||||
mountPath: /usr/share/nginx/html/
|
||||
volumes:
|
||||
- name: nginx-index-file
|
||||
configMap:
|
||||
name: index-html-configmap
|
Loading…
Reference in New Issue
Block a user