apache / apisix-helm-chart

Apache APISIX Helm Chart
https://apisix.apache.org/
Apache License 2.0
229 stars 209 forks source link

The configmap of apisix ingress controller is in a wrong format #428

Open huweihuang opened 1 year ago

huweihuang commented 1 year ago

the format:

apiVersion: v1
data:
  config.yaml: "# log options\nlog_level: \"info\"\nlog_output: \"stderr\"\ncert_file:
    \"/etc/webhook/certs/cert.pem\"\nkey_file: \"/etc/webhook/certs/key.pem\"\nhttp_listen:
    \":8080\"\nhttps_listen: \":8443\"\ningress_publish_service: \nenable_profiling:
    true\napisix-resource-sync-interval: 300s\nkubernetes:\n  kubeconfig: \"\"\n  resync_interval:
    \"6h\"\n  namespace_selector:\n  - \"\"\n  election_id: \"ingress-apisix-leader\"\n
    \ ingress_class: \"apisix\"\n  ingress_version: \"networking/v1\"\n  watch_endpointslices:
    false\n  apisix_route_version: \"apisix.apache.org/v2\"\n  enable_gateway_api:
    false\n  apisix_version: \"apisix.apache.org/v2\"\n  plugin_metadata_cm: \"\"\napisix:\n
    \ admin_api_version: \"v2\"\n  \n  default_cluster_base_url: http://apisix-admin.ingress-apisix.svc.cluster.local:9180/apisix/admin\n
    \ \n  default_cluster_admin_key: \"edd1c9f034335f136f87ad84b625c8f1\"\n  default_cluster_name:
    \"default\"\n"
kind: ConfigMap
metadata:
tokers commented 1 year ago

@huweihuang This format is correct, APISIX Ingress Controller can parse it normally.

huweihuang commented 1 year ago

You can refer to: https://blog.huweihuang.com/kubernetes-notes/trouble-shooting/configmap-yaml-format/ . The template cannot be viewed humanely due to the blank space at the end of the line.