Skip to content

Commit

Permalink
fix trust domain. (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
cybwan authored and reaver-flomesh committed Aug 21, 2024
1 parent 71e9d75 commit 2d0e40b
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion charts/connector/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ spec:
initContainers:
- name: init
image: "{{ include "fsmCurl.image" . }}"
command: ["curl", "http://fsm-bootstrap.{{ include "fsm.namespace" . }}.svc.cluster.local:9091/healthz", "--connect-timeout", "2", "--retry", "50", "--retry-connrefused", "--retry-delay", "5"]
command: ["curl", "http://fsm-bootstrap.{{ include "fsm.namespace" . }}:9091/healthz", "--connect-timeout", "2", "--retry", "50", "--retry-connrefused", "--retry-delay", "5"]
resources:
{{- toYaml .Values.fsm.cloudConnector.initResources | nindent 12 }}
containers:
Expand Down
4 changes: 2 additions & 2 deletions charts/fsm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ The following table lists the configurable parameters of the fsm chart and their
| fsm.prometheus.retention | object | `{"time":"15d"}` | Prometheus data rentention configuration |
| fsm.prometheus.retention.time | string | `"15d"` | Prometheus data retention time |
| fsm.prometheus.tolerations | list | `[]` | Node tolerations applied to control plane pods. The specified tolerations allow pods to schedule onto nodes with matching taints. |
| fsm.remoteLogging.address | string | `""` | Address of the remote logging service (must contain the namespace). When left empty, this is computed in helper template to "remote-logging-service.<fsm-namespace>.svc.cluster.local". |
| fsm.remoteLogging.address | string | `""` | Address of the remote logging service (must contain the namespace). When left empty, this is computed in helper template to "remote-logging-service.<fsm-namespace>". |
| fsm.remoteLogging.authorization | string | `""` | The authorization for remote logging service |
| fsm.remoteLogging.enable | bool | `false` | Toggles Sidecar's remote logging functionality on/off for all sidecar proxies in the mesh |
| fsm.remoteLogging.endpoint | string | `""` | Remote logging's API path where the spans will be sent to |
Expand Down Expand Up @@ -464,7 +464,7 @@ The following table lists the configurable parameters of the fsm chart and their
| fsm.sidecar.sidecarDisabledMTLS | bool | `false` | Sidecar runs without mTLS |
| fsm.sidecar.sidecarLogLevel | string | `"error"` | Log level for the proxy sidecar. Non developers should generally never set this value. In production environments the LogLevel should be set to `error` |
| fsm.sidecar.sidecarTimeout | int | `60` | Sets connect/idle/read/write timeout |
| fsm.tracing.address | string | `""` | Address of the tracing collector service (must contain the namespace). When left empty, this is computed in helper template to "jaeger.<fsm-namespace>.svc.cluster.local". Please override for BYO-tracing as documented in tracing.md |
| fsm.tracing.address | string | `""` | Address of the tracing collector service (must contain the namespace). When left empty, this is computed in helper template to "jaeger.<fsm-namespace>". Please override for BYO-tracing as documented in tracing.md |
| fsm.tracing.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].key | string | `"kubernetes.io/os"` | |
| fsm.tracing.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].operator | string | `"In"` | |
| fsm.tracing.affinity.nodeAffinity.requiredDuringSchedulingIgnoredDuringExecution.nodeSelectorTerms[0].matchExpressions[0].values[0] | string | `"linux"` | |
Expand Down
2 changes: 1 addition & 1 deletion charts/fsm/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{{/* Default tracing address */}}
{{- define "fsm.tracingAddress" -}}
{{- $address := printf "jaeger.%s.svc.cluster.local" (include "fsm.namespace" .) -}}
{{- $address := printf "jaeger.%s" (include "fsm.namespace" .) -}}
{{ default $address .Values.fsm.tracing.address}}
{{- end -}}

Expand Down
2 changes: 1 addition & 1 deletion charts/fsm/templates/fsm-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
initContainers:
- name: init-fsm-controller
image: "{{ include "fsmCurl.image" . }}"
command: ["curl", "http://fsm-bootstrap.{{ include "fsm.namespace" . }}.svc.cluster.local:9091/healthz", "--connect-timeout", "2", "--retry", "50", "--retry-connrefused", "--retry-delay", "5"]
command: ["curl", "http://fsm-bootstrap.{{ include "fsm.namespace" . }}:9091/healthz", "--connect-timeout", "2", "--retry", "50", "--retry-connrefused", "--retry-delay", "5"]
resources:
{{- toYaml .Values.fsm.fsmController.initResources | nindent 12 }}
- name: init-untar
Expand Down
2 changes: 1 addition & 1 deletion charts/fsm/templates/fsm-ingress-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ spec:
{{- end }}
command:
- curl
- http://fsm-controller.{{ include "fsm.namespace" . }}.svc.cluster.local:9091/health/ready
- http://fsm-controller.{{ include "fsm.namespace" . }}:9091/health/ready
- --connect-timeout
- "2"
- --retry
Expand Down
2 changes: 1 addition & 1 deletion charts/fsm/templates/fsm-injector-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ spec:
initContainers:
- name: init-fsm-injector
image: "{{ include "fsmCurl.image" . }}"
command: ["curl", "http://fsm-bootstrap.{{ include "fsm.namespace" . }}.svc.cluster.local:9091/healthz", "--connect-timeout", "2", "--retry", "50", "--retry-connrefused", "--retry-delay", "5"]
command: ["curl", "http://fsm-bootstrap.{{ include "fsm.namespace" . }}:9091/healthz", "--connect-timeout", "2", "--retry", "50", "--retry-connrefused", "--retry-delay", "5"]
resources:
{{- toYaml .Values.fsm.injector.initResources | nindent 12 }}
containers:
Expand Down
6 changes: 3 additions & 3 deletions charts/fsm/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1359,7 +1359,7 @@
"title": "The address schema for tracing",
"description": "Address of the tracing collector",
"examples": [
"jaeger.<fsm-namespace>.svc.cluster.local"
"jaeger.<fsm-namespace>"
]
},
"port": {
Expand Down Expand Up @@ -1476,7 +1476,7 @@
"title": "The address schema for remote logging service",
"description": "Address of the remote logging service",
"examples": [
"remote-logging-service.<fsm-namespace>.svc.cluster.local"
"remote-logging-service.<fsm-namespace>"
]
},
"port": {
Expand Down Expand Up @@ -2646,7 +2646,7 @@
},
"examples": [
{
"host": "vault.default.svc.cluster.local",
"host": "vault.default",
"protocol": "http",
"token": "some-token",
"role": "flomesh"
Expand Down
4 changes: 2 additions & 2 deletions charts/fsm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ fsm:
tracing:
# -- Toggles Sidecar's tracing functionality on/off for all sidecar proxies in the mesh
enable: false
# -- Address of the tracing collector service (must contain the namespace). When left empty, this is computed in helper template to "jaeger.<fsm-namespace>.svc.cluster.local". Please override for BYO-tracing as documented in tracing.md
# -- Address of the tracing collector service (must contain the namespace). When left empty, this is computed in helper template to "jaeger.<fsm-namespace>". Please override for BYO-tracing as documented in tracing.md
address: ""
# -- Port of the tracing collector service
port: 9411
Expand Down Expand Up @@ -590,7 +590,7 @@ fsm:
enable: false
# -- Level of the remote logging service
level: 2
# -- Address of the remote logging service (must contain the namespace). When left empty, this is computed in helper template to "remote-logging-service.<fsm-namespace>.svc.cluster.local".
# -- Address of the remote logging service (must contain the namespace). When left empty, this is computed in helper template to "remote-logging-service.<fsm-namespace>".
address: ""
# -- Port of the remote logging service
port: 30514
Expand Down
2 changes: 1 addition & 1 deletion charts/gateway/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ spec:
imagePullPolicy: {{ .Values.fsm.image.pullPolicy }}
command:
- curl
- {{ printf "http://fsm-controller.%s.svc.cluster.local:9091/health/ready" .Values.fsm.fsmNamespace }}
- {{ printf "http://fsm-controller.%s:9091/health/ready" .Values.fsm.fsmNamespace }}
- --connect-timeout
- "2"
- --retry
Expand Down
2 changes: 1 addition & 1 deletion charts/namespaced-ingress/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
imagePullPolicy: {{ .Values.fsm.image.pullPolicy }}
command:
- curl
- {{ printf "http://fsm-controller.%s.svc.cluster.local:9091/health/ready" .Values.fsm.fsmNamespace }}
- {{ printf "http://fsm-controller.%s:9091/health/ready" .Values.fsm.fsmNamespace }}
- --connect-timeout
- "2"
- --retry
Expand Down

0 comments on commit 2d0e40b

Please sign in to comment.