Skip to content

Commit

Permalink
chore: add env SERVICE_PORT for collecting metrics by the oteld (#5527)…
Browse files Browse the repository at this point in the history
… (#5533)

(cherry picked from commit b96ed50)
  • Loading branch information
sophon-zt authored and kubeJocker committed Nov 7, 2023
1 parent fac704c commit 4a9be37
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deploy/apecloud-mysql/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ spec:
- containerPort: 13306
name: paxos
env:
- name: SERVICE_PORT
value: "3306"
- name: MYSQL_ROOT_HOST
value: {{ .Values.auth.rootHost | default "%" | quote }}
- name: MYSQL_ROOT_USER
Expand Down Expand Up @@ -235,6 +237,8 @@ spec:
value: "$(KB_CLUSTER_NAME)-vtcontroller-headless"
- name: VTCTLD_WEB_PORT
value: "15000"
- name: SERVICE_PORT
value: "$(VTTABLET_PORT)"
- name: MYSQL_ROOT_USER
valueFrom:
secretKeyRef:
Expand Down
2 changes: 2 additions & 0 deletions deploy/mongodb/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ spec:
command:
- /scripts/replicaset-setup.sh
env:
- name: SERVICE_PORT
value: "27017"
- name: MONGODB_ROOT_USER
valueFrom:
secretKeyRef:
Expand Down
2 changes: 2 additions & 0 deletions deploy/postgresql/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ spec:
- name: patroni
containerPort: 8008
env: ## refer https://github.com/zalando/spilo/blob/master/ENVIRONMENT.rst
- name: SERVICE_PORT
value: "5432"
- name: DCS_ENABLE_KUBERNETES_API
value: "true"
- name: KUBERNETES_USE_CONFIGMAPS
Expand Down
10 changes: 10 additions & 0 deletions deploy/pulsar/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ spec:
- name: PULSAR_LOG_LEVEL
value: DEBUG
{{- end }}
- name: SERVICE_PORT
value: "8080"
- name: POD_NAME
value: $(KB_POD_NAME)
- name: PULSAR_PREFIX_brokerServicePort
Expand Down Expand Up @@ -340,6 +342,8 @@ spec:
- name: PULSAR_LOG_LEVEL
value: DEBUG
{{- end }}
- name: SERVICE_PORT
value: "8080"
- name: brokerWebServiceURL
value: http://$(brokerSVC):80
- name: brokerServiceURL
Expand Down Expand Up @@ -486,6 +490,8 @@ spec:
- name: PULSAR_LOG_LEVEL
value: DEBUG
{{- end }}
- name: SERVICE_PORT
value: "8000"
- name: cluster_domain
value: {{ .Values.clusterDomain }}
lifecycle:
Expand Down Expand Up @@ -653,6 +659,8 @@ spec:
- name: PULSAR_LOG_LEVEL
value: DEBUG
{{- end }}
- name: SERVICE_PORT
value: "8000"
- name: httpServerEnabled
value: "true"
- name: httpServerPort
Expand Down Expand Up @@ -755,6 +763,8 @@ spec:
- name: PULSAR_LOG_LEVEL
value: DEBUG
{{- end }}
- name: SERVICE_PORT
value: "8000"
- name: EXTERNAL_PROVIDED_SERVERS
value: "false"
- name: OPTS
Expand Down
8 changes: 8 additions & 0 deletions deploy/redis/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ spec:
- name: pod-info
mountPath: /kb-podinfo
env:
- name: SERVICE_PORT
value: "6379"
- name: REDIS_REPL_USER
value: "kbreplicator"
- name: REDIS_REPL_PASSWORD
Expand All @@ -82,6 +84,12 @@ spec:
name: $(CONN_CREDENTIAL_SECRET_NAME)
key: password
optional: false
- name: REDIS_DEFAULT_USER
valueFrom:
secretKeyRef:
name: $(CONN_CREDENTIAL_SECRET_NAME)
key: username
optional: false
- name: REDIS_DEFAULT_PASSWORD
valueFrom:
secretKeyRef:
Expand Down

0 comments on commit 4a9be37

Please sign in to comment.