-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
This PR enhances teleport's intelligence by no longer assuming the cluster domain is `cluster.local`. Since many clusters use a non-default cluster domain, this assumption can disrupt app discovery access. Fixes #39007 Signed-off-by: Tiago Silva <[email protected]>
- Loading branch information
Showing
7 changed files
with
147 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,8 @@ sets Deployment annotations when specified if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -103,6 +105,8 @@ sets Deployment labels when specified if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -163,6 +167,8 @@ sets Pod annotations when specified if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -223,6 +229,8 @@ sets Pod labels when specified if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -300,6 +308,8 @@ should add emptyDir for data when existingDataVolume is not set if action is Upg | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -361,6 +371,8 @@ should add insecureSkipProxyTLSVerify to args when set in values if action is Up | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -421,6 +433,8 @@ should correctly configure existingDataVolume when set if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -479,6 +493,8 @@ should expose diag port if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -551,6 +567,8 @@ should have multiple replicas when replicaCount is set (using .replicaCount, dep | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -623,6 +641,8 @@ should have multiple replicas when replicaCount is set (using highAvailability.r | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -683,6 +703,8 @@ should have one replica when replicaCount is not set if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -743,6 +765,8 @@ should mount extraVolumes and extraVolumeMounts if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -808,6 +832,8 @@ should mount tls.existingCASecretName and set environment when set in values if | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
- name: SSL_CERT_FILE | ||
value: /etc/teleport-tls-ca/ca.pem | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
|
@@ -876,6 +902,8 @@ should mount tls.existingCASecretName and set extra environment when set in valu | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
- name: HTTPS_PROXY | ||
value: http://username:[email protected]:3128 | ||
- name: SSL_CERT_FILE | ||
|
@@ -946,6 +974,8 @@ should provision initContainer correctly when set in values if action is Upgrade | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1042,6 +1072,8 @@ should set SecurityContext if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1122,6 +1154,8 @@ should set affinity when set in values if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1182,6 +1216,8 @@ should set default serviceAccountName when not set in values if action is Upgrad | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1253,6 +1289,8 @@ should set environment when extraEnv set in values if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
- name: HTTPS_PROXY | ||
value: http://username:[email protected]:3128 | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
|
@@ -1315,6 +1353,8 @@ should set image and tag correctly if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:12.2.1 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1375,6 +1415,8 @@ should set imagePullPolicy when set in values if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: Always | ||
livenessProbe: | ||
|
@@ -1435,6 +1477,8 @@ should set nodeSelector if set in values if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1497,6 +1541,8 @@ should set not set priorityClassName when not set in values if action is Upgrade | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1569,6 +1615,8 @@ should set preferred affinity when more than one replica is used if action is Up | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1629,6 +1677,8 @@ should set priorityClassName when set in values if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1690,6 +1740,8 @@ should set probeTimeoutSeconds when set in values if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1760,6 +1812,8 @@ should set required affinity when highAvailability.requireAntiAffinity is set if | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1820,6 +1874,8 @@ should set resources when set in values if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1887,6 +1943,8 @@ should set serviceAccountName when set in values if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
@@ -1947,6 +2005,8 @@ should set tolerations when set in values if action is Upgrade: | |
env: | ||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT | ||
value: "true" | ||
- name: TELEPORT_KUBE_CLUSTER_DOMAIN | ||
value: cluster.local | ||
image: public.ecr.aws/gravitational/teleport-distroless:14.3.21 | ||
imagePullPolicy: IfNotPresent | ||
livenessProbe: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.