nginx - deptno/deptno.github.io GitHub Wiki
nginx
Error from server (BadRequest): error when creating "config/nginx-static.yaml": ConfigMap in version "v1" cannot be handled as a ConfigMap: json: cannot unmarshal object into Go struct field ConfigMap.data of type string
Error from server (BadRequest): error when creating "config/nginx-static.yaml": ConfigMap in version "v1" cannot be handled as a ConfigMap: json: cannot unmarshal string into Go struct field ConfigMap.data of type map[string]string
μλμ κ°μ ννμμ μλ¬κ° λ°μνλ€
kind: Config
apiVersion: v1
metadata:
name: nameof
data:
nfs:
server: value
path: value
μλμ κ°μ νμμΌλ‘ μμ νλ€
# ...
data:
nfs: |
server: value
path: value
helm chart μ μ μλ νμ μ μ’ μμ μΌν λ° μ°¨νΈμλ μλμ κ°μ΄ μ μΈλμ΄μλ€
configMap:
name: {{ printf "%s" (tpl .Values.staticSiteConfigmap $) -}}