Fix ADC service discovery configuration syntax
Fixed service discovery configuration to use correct ADC syntax. The namespace should be included in the service_name, not as a separate namespace_id field. Error: ✖ Unrecognized key: "namespace_id" → at services[0].upstream Fix: - Changed from: service_name: my-service + namespace_id: namespace - Changed to: service_name: namespace/my-service This matches the ADC/API7 expected format for Kubernetes service discovery: "namespace/service-name" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -20,11 +20,10 @@ data:
|
|||||||
{{- if .Values.api7.serviceDiscovery.enabled }}
|
{{- if .Values.api7.serviceDiscovery.enabled }}
|
||||||
# Use Kubernetes Service Discovery
|
# Use Kubernetes Service Discovery
|
||||||
discovery_type: kubernetes
|
discovery_type: kubernetes
|
||||||
service_name: {{ include "api7ee.fullname" . }}-web
|
|
||||||
{{- if .Values.api7.serviceDiscovery.namespace }}
|
{{- if .Values.api7.serviceDiscovery.namespace }}
|
||||||
namespace_id: {{ .Values.api7.serviceDiscovery.namespace }}
|
service_name: {{ .Values.api7.serviceDiscovery.namespace }}/{{ include "api7ee.fullname" . }}-web
|
||||||
{{- else }}
|
{{- else }}
|
||||||
namespace_id: {{ .Release.Namespace }}
|
service_name: {{ .Release.Namespace }}/{{ include "api7ee.fullname" . }}-web
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
# Static nodes configuration
|
# Static nodes configuration
|
||||||
@@ -69,11 +68,10 @@ data:
|
|||||||
{{- if .Values.api7.serviceDiscovery.enabled }}
|
{{- if .Values.api7.serviceDiscovery.enabled }}
|
||||||
# Use Kubernetes Service Discovery
|
# Use Kubernetes Service Discovery
|
||||||
discovery_type: kubernetes
|
discovery_type: kubernetes
|
||||||
service_name: {{ include "api7ee.fullname" . }}-api
|
|
||||||
{{- if .Values.api7.serviceDiscovery.namespace }}
|
{{- if .Values.api7.serviceDiscovery.namespace }}
|
||||||
namespace_id: {{ .Values.api7.serviceDiscovery.namespace }}
|
service_name: {{ .Values.api7.serviceDiscovery.namespace }}/{{ include "api7ee.fullname" . }}-api
|
||||||
{{- else }}
|
{{- else }}
|
||||||
namespace_id: {{ .Release.Namespace }}
|
service_name: {{ .Release.Namespace }}/{{ include "api7ee.fullname" . }}-api
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
# Static nodes configuration
|
# Static nodes configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user