Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add env SERVICE_PORT for collecting metrics by the oteld (#5527) #5533

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions deploy/apecloud-mysql/templates/clusterdefinition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,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 @@ -107,6 +107,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 @@ -143,6 +143,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 @@ -331,6 +333,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 @@ -482,6 +486,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 @@ -649,6 +655,8 @@ spec:
- name: PULSAR_LOG_LEVEL
value: DEBUG
{{- end }}
- name: SERVICE_PORT
value: "8000"
- name: httpServerEnabled
value: "true"
- name: httpServerPort
Expand Down Expand Up @@ -751,6 +759,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