[DO-1377] add configMap
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
custom_values.yaml
|
||||
*.tgz
|
||||
@@ -1,6 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: openresty
|
||||
description: A Helm chart for Kubernetes
|
||||
description: OpenResty API gateway
|
||||
|
||||
# A chart can be either an 'application' or a 'library' chart.
|
||||
#
|
||||
@@ -21,4 +21,4 @@ version: 0.1.0
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||
# It is recommended to use it with quotes.
|
||||
appVersion: "1.16.0"
|
||||
appVersion: "1.21.4.1"
|
||||
|
||||
22
templates/configmap.yaml
Normal file
22
templates/configmap.yaml
Normal file
@@ -0,0 +1,22 @@
|
||||
{{ if .Values.configMap.enabled }}
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
labels:
|
||||
app: "{{ template "openresty.fullname" . }}"
|
||||
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
release: "{{ .Release.Name }}"
|
||||
{{- with .Values.configMap.annotations }}
|
||||
annotations:
|
||||
{{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
name: "{{ .Release.Name }}-config"
|
||||
data:
|
||||
{{- with .Values.configMap.apiConfig }}
|
||||
api-gw.conf: {{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
{{- with .Values.configMap.luaScript }}
|
||||
script.lua: {{ toYaml . | indent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
12
values.yaml
12
values.yaml
@@ -5,10 +5,16 @@
|
||||
replicaCount: 1
|
||||
|
||||
image:
|
||||
repository: nginx
|
||||
repository: harbor.avroid.tech/devops/openresty
|
||||
pullPolicy: IfNotPresent
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: ""
|
||||
tag: "1.21.4.1-0-alpine"
|
||||
|
||||
configMap:
|
||||
enabled: false
|
||||
annotations: {}
|
||||
apiConfig: ""
|
||||
luaScript: ""
|
||||
|
||||
imagePullSecrets: []
|
||||
nameOverride: ""
|
||||
@@ -16,7 +22,7 @@ fullnameOverride: ""
|
||||
|
||||
serviceAccount:
|
||||
# Specifies whether a service account should be created
|
||||
create: true
|
||||
create: false
|
||||
# Automatically mount a ServiceAccount's API credentials?
|
||||
automount: true
|
||||
# Annotations to add to the service account
|
||||
|
||||
Reference in New Issue
Block a user