Update teleport
This commit is contained in:
Binary file not shown.
@@ -1,13 +1,13 @@
|
||||
apiVersion: v2
|
||||
appVersion: 15.3.3
|
||||
appVersion: 15.3.7
|
||||
dependencies:
|
||||
- alias: operator
|
||||
name: teleport-operator
|
||||
repository: ""
|
||||
version: 15.3.3
|
||||
version: 15.3.7
|
||||
description: Teleport is an access platform for your infrastructure
|
||||
icon: https://goteleport.com/static/teleport-symbol-bimi.svg
|
||||
keywords:
|
||||
- Teleport
|
||||
name: teleport-cluster
|
||||
version: 15.3.3
|
||||
version: 15.3.7
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
apiVersion: v2
|
||||
appVersion: 15.3.3
|
||||
appVersion: 15.3.7
|
||||
description: Teleport Operator provides management of select Teleport resources.
|
||||
icon: https://goteleport.com/static/teleport-symbol-bimi.svg
|
||||
keywords:
|
||||
- Teleport
|
||||
name: teleport-operator
|
||||
version: 15.3.3
|
||||
version: 15.3.7
|
||||
|
||||
@@ -87,7 +87,12 @@ teleport.dev/majorVersion: '{{ include "teleport-cluster.majorVersion" . }}'
|
||||
{{/* In most places we want to use the FQDN instead of relying on Kubernetes ndots behaviour
|
||||
for performance reasons */}}
|
||||
{{- define "teleport-cluster.auth.serviceFQDN" -}}
|
||||
{{ include "teleport-cluster.auth.serviceName" . }}.{{ .Release.Namespace }}.svc.cluster.local
|
||||
{{ include "teleport-cluster.auth.serviceName" . }}.{{ .Release.Namespace }}.svc.{{ include "teleport-cluster.clusterDomain" . }}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Returns the cluster domain if set, otherwise fallback to "cluster.local" */}}
|
||||
{{- define "teleport-cluster.clusterDomain" -}}
|
||||
{{ default "cluster.local" .Values.global.clusterDomain }}
|
||||
{{- end -}}
|
||||
|
||||
{{/* Matches the operator template "teleport-cluster.operator.fullname" but can be
|
||||
|
||||
@@ -116,7 +116,7 @@ spec:
|
||||
- teleport
|
||||
- wait
|
||||
- no-resolve
|
||||
- '{{ include "teleport-cluster.auth.previousVersionServiceName" . }}.{{ .Release.Namespace }}.svc.cluster.local'
|
||||
- '{{ include "teleport-cluster.auth.previousVersionServiceName" . }}.{{ .Release.Namespace }}.svc.{{ include "teleport-cluster.clusterDomain" . }}'
|
||||
# propagating through the limits from the main resources section would double the requested amounts
|
||||
# and may prevent scheduling on the cluster. as such, we hardcode small limits for this tiny container.
|
||||
{{- if $proxy.resources }}
|
||||
|
||||
@@ -8,8 +8,8 @@ adds operator permissions to ClusterRole:
|
||||
app.kubernetes.io/instance: RELEASE-NAME
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: teleport-cluster
|
||||
app.kubernetes.io/version: 15.3.3
|
||||
helm.sh/chart: teleport-cluster-15.3.3
|
||||
app.kubernetes.io/version: 15.3.7
|
||||
helm.sh/chart: teleport-cluster-15.3.7
|
||||
teleport.dev/majorVersion: "15"
|
||||
name: RELEASE-NAME
|
||||
rules:
|
||||
|
||||
@@ -1791,6 +1791,68 @@ matches snapshot for volumes.yaml:
|
||||
output: stderr
|
||||
severity: INFO
|
||||
version: v3
|
||||
sets clusterDomain on Configmap:
|
||||
1: |
|
||||
apiVersion: v1
|
||||
data:
|
||||
apply-on-startup.yaml: |
|
||||
---
|
||||
kind: token
|
||||
version: v2
|
||||
metadata:
|
||||
name: RELEASE-NAME-proxy
|
||||
expires: "2050-01-01T00:00:00Z"
|
||||
spec:
|
||||
roles: [Proxy]
|
||||
join_method: kubernetes
|
||||
kubernetes:
|
||||
allow:
|
||||
- service_account: "NAMESPACE:RELEASE-NAME-proxy"
|
||||
teleport.yaml: |-
|
||||
auth_service:
|
||||
authentication:
|
||||
local_auth: true
|
||||
second_factor: "on"
|
||||
type: local
|
||||
webauthn:
|
||||
rp_id: teleport.example.com
|
||||
cluster_name: teleport.example.com
|
||||
enabled: true
|
||||
proxy_listener_mode: separate
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: teleport.example.com
|
||||
listen_addr: 0.0.0.0:3026
|
||||
public_addr: RELEASE-NAME-auth.NAMESPACE.svc.test.com:3026
|
||||
proxy_service:
|
||||
enabled: false
|
||||
ssh_service:
|
||||
enabled: false
|
||||
teleport:
|
||||
auth_server: 127.0.0.1:3025
|
||||
log:
|
||||
format:
|
||||
extra_fields:
|
||||
- timestamp
|
||||
- level
|
||||
- component
|
||||
- caller
|
||||
output: text
|
||||
output: stderr
|
||||
severity: INFO
|
||||
version: v3
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/component: auth
|
||||
app.kubernetes.io/instance: RELEASE-NAME
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: teleport-cluster
|
||||
app.kubernetes.io/version: 15.3.7
|
||||
helm.sh/chart: teleport-cluster-15.3.7
|
||||
teleport.dev/majorVersion: "15"
|
||||
name: RELEASE-NAME-auth
|
||||
namespace: NAMESPACE
|
||||
uses athena as primary backend when configured:
|
||||
1: |
|
||||
|-
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
- --apply-on-startup=/etc/teleport/apply-on-startup.yaml
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
@@ -141,7 +141,7 @@ should set nodeSelector when set in values:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
- --apply-on-startup=/etc/teleport/apply-on-startup.yaml
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
@@ -238,7 +238,7 @@ should set resources when set in values:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
- --apply-on-startup=/etc/teleport/apply-on-startup.yaml
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
@@ -324,7 +324,7 @@ should set securityContext when set in values:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
- --apply-on-startup=/etc/teleport/apply-on-startup.yaml
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
|
||||
@@ -528,3 +528,47 @@ matches snapshot for separate-postgres-listener.yaml:
|
||||
output: stderr
|
||||
severity: INFO
|
||||
version: v3
|
||||
sets clusterDomain on Configmap:
|
||||
1: |
|
||||
apiVersion: v1
|
||||
data:
|
||||
teleport.yaml: |-
|
||||
auth_service:
|
||||
enabled: false
|
||||
proxy_service:
|
||||
enabled: true
|
||||
kube_listen_addr: 0.0.0.0:3026
|
||||
listen_addr: 0.0.0.0:3023
|
||||
mysql_listen_addr: 0.0.0.0:3036
|
||||
public_addr: teleport.example.com:443
|
||||
tunnel_listen_addr: 0.0.0.0:3024
|
||||
ssh_service:
|
||||
enabled: false
|
||||
teleport:
|
||||
auth_server: RELEASE-NAME-auth.NAMESPACE.svc.test.com:3025
|
||||
join_params:
|
||||
method: kubernetes
|
||||
token_name: RELEASE-NAME-proxy
|
||||
log:
|
||||
format:
|
||||
extra_fields:
|
||||
- timestamp
|
||||
- level
|
||||
- component
|
||||
- caller
|
||||
output: text
|
||||
output: stderr
|
||||
severity: INFO
|
||||
version: v3
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/component: proxy
|
||||
app.kubernetes.io/instance: RELEASE-NAME
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: teleport-cluster
|
||||
app.kubernetes.io/version: 15.3.7
|
||||
helm.sh/chart: teleport-cluster-15.3.7
|
||||
teleport.dev/majorVersion: "15"
|
||||
name: RELEASE-NAME-proxy
|
||||
namespace: NAMESPACE
|
||||
|
||||
@@ -1,3 +1,135 @@
|
||||
sets clusterDomain on Deployment Pods:
|
||||
1: |
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
kubernetes.io/deployment: test-annotation
|
||||
kubernetes.io/deployment-different: 3
|
||||
labels:
|
||||
app.kubernetes.io/component: proxy
|
||||
app.kubernetes.io/instance: RELEASE-NAME
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: teleport-cluster
|
||||
app.kubernetes.io/version: 15.3.7
|
||||
helm.sh/chart: teleport-cluster-15.3.7
|
||||
teleport.dev/majorVersion: "15"
|
||||
name: RELEASE-NAME-proxy
|
||||
namespace: NAMESPACE
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/component: proxy
|
||||
app.kubernetes.io/instance: RELEASE-NAME
|
||||
app.kubernetes.io/name: teleport-cluster
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: 30ed507562c0a982e772381732ae0e197e40b79d6d216f82f0e16c368a530b0f
|
||||
kubernetes.io/pod: test-annotation
|
||||
kubernetes.io/pod-different: 4
|
||||
labels:
|
||||
app.kubernetes.io/component: proxy
|
||||
app.kubernetes.io/instance: RELEASE-NAME
|
||||
app.kubernetes.io/managed-by: Helm
|
||||
app.kubernetes.io/name: teleport-cluster
|
||||
app.kubernetes.io/version: 15.3.7
|
||||
helm.sh/chart: teleport-cluster-15.3.7
|
||||
teleport.dev/majorVersion: "15"
|
||||
spec:
|
||||
affinity:
|
||||
podAntiAffinity: null
|
||||
automountServiceAccountToken: false
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command:
|
||||
- teleport
|
||||
- wait
|
||||
- duration
|
||||
- 30s
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: diag
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
name: teleport
|
||||
ports:
|
||||
- containerPort: 3080
|
||||
name: tls
|
||||
protocol: TCP
|
||||
- containerPort: 3023
|
||||
name: sshproxy
|
||||
protocol: TCP
|
||||
- containerPort: 3024
|
||||
name: sshtun
|
||||
protocol: TCP
|
||||
- containerPort: 3026
|
||||
name: kube
|
||||
protocol: TCP
|
||||
- containerPort: 3036
|
||||
name: mysql
|
||||
protocol: TCP
|
||||
- containerPort: 3000
|
||||
name: diag
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
failureThreshold: 12
|
||||
httpGet:
|
||||
path: /readyz
|
||||
port: diag
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
readOnly: true
|
||||
- mountPath: /var/lib/teleport
|
||||
name: data
|
||||
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
|
||||
name: proxy-serviceaccount-token
|
||||
readOnly: true
|
||||
initContainers:
|
||||
- command:
|
||||
- teleport
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.test.com
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
name: wait-auth-update
|
||||
serviceAccountName: RELEASE-NAME-proxy
|
||||
terminationGracePeriodSeconds: 60
|
||||
volumes:
|
||||
- name: proxy-serviceaccount-token
|
||||
projected:
|
||||
sources:
|
||||
- serviceAccountToken:
|
||||
path: token
|
||||
- configMap:
|
||||
items:
|
||||
- key: ca.crt
|
||||
path: ca.crt
|
||||
name: kube-root-ca.crt
|
||||
- downwardAPI:
|
||||
items:
|
||||
- fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
path: namespace
|
||||
- configMap:
|
||||
name: RELEASE-NAME-proxy
|
||||
name: config
|
||||
- emptyDir: {}
|
||||
name: data
|
||||
should provision initContainer correctly when set in values:
|
||||
1: |
|
||||
- command:
|
||||
@@ -5,7 +137,7 @@ should provision initContainer correctly when set in values:
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.cluster.local
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
name: wait-auth-update
|
||||
resources:
|
||||
limits:
|
||||
@@ -69,7 +201,7 @@ should set nodeSelector when set in values:
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
@@ -130,7 +262,7 @@ should set nodeSelector when set in values:
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.cluster.local
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
name: wait-auth-update
|
||||
nodeSelector:
|
||||
environment: security
|
||||
@@ -181,7 +313,7 @@ should set resources for wait-auth-update initContainer when set in values:
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
@@ -249,7 +381,7 @@ should set resources for wait-auth-update initContainer when set in values:
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.cluster.local
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
name: wait-auth-update
|
||||
resources:
|
||||
limits:
|
||||
@@ -289,7 +421,7 @@ should set resources when set in values:
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
@@ -357,7 +489,7 @@ should set resources when set in values:
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.cluster.local
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
name: wait-auth-update
|
||||
resources:
|
||||
limits:
|
||||
@@ -397,7 +529,7 @@ should set securityContext for initContainers when set in values:
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
@@ -465,7 +597,7 @@ should set securityContext for initContainers when set in values:
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.cluster.local
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
name: wait-auth-update
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
@@ -505,7 +637,7 @@ should set securityContext when set in values:
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
lifecycle:
|
||||
preStop:
|
||||
@@ -573,7 +705,7 @@ should set securityContext when set in values:
|
||||
- wait
|
||||
- no-resolve
|
||||
- RELEASE-NAME-auth-v14.NAMESPACE.svc.cluster.local
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.3
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:15.3.7
|
||||
name: wait-auth-update
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
|
||||
@@ -687,3 +687,14 @@ tests:
|
||||
asserts:
|
||||
- matchSnapshot:
|
||||
path: data.teleport\.yaml
|
||||
|
||||
- it: sets clusterDomain on Configmap
|
||||
set:
|
||||
clusterName: teleport.example.com
|
||||
global:
|
||||
clusterDomain: test.com
|
||||
asserts:
|
||||
- matchSnapshot: {}
|
||||
- matchRegex:
|
||||
path: data.teleport\.yaml
|
||||
pattern: 'svc.test.com:3026'
|
||||
@@ -276,3 +276,14 @@ tests:
|
||||
- equal:
|
||||
path: metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
- it: sets clusterDomain on Configmap
|
||||
set:
|
||||
clusterName: teleport.example.com
|
||||
global:
|
||||
clusterDomain: test.com
|
||||
asserts:
|
||||
- matchSnapshot: {}
|
||||
- matchRegex:
|
||||
path: data.teleport\.yaml
|
||||
pattern: 'svc.test.com:3025'
|
||||
@@ -1029,3 +1029,16 @@ tests:
|
||||
- equal:
|
||||
path: spec.template.metadata.labels.baz
|
||||
value: overridden
|
||||
|
||||
- it: sets clusterDomain on Deployment Pods
|
||||
template: proxy/deployment.yaml
|
||||
values:
|
||||
- ../.lint/annotations.yaml
|
||||
set:
|
||||
global:
|
||||
clusterDomain: test.com
|
||||
asserts:
|
||||
- matchSnapshot: {}
|
||||
- matchRegex:
|
||||
path: spec.template.spec.initContainers[0].command[3]
|
||||
pattern: ".svc.test.com$"
|
||||
@@ -6,6 +6,7 @@
|
||||
"authentication",
|
||||
"enterprise",
|
||||
"operator",
|
||||
"global",
|
||||
"podSecurityPolicy",
|
||||
"labels",
|
||||
"chartMode",
|
||||
@@ -289,6 +290,20 @@
|
||||
"$id": "#/properties/installCRDs",
|
||||
"type": "boolean"
|
||||
},
|
||||
"global": {
|
||||
"$id": "#/properties/global",
|
||||
"type": "object",
|
||||
"required": [
|
||||
"clusterDomain"
|
||||
],
|
||||
"properties": {
|
||||
"clusterDomain": {
|
||||
"$id": "#/properties/global/properties/clusterDomain",
|
||||
"type": "string",
|
||||
"default": "cluster.local"
|
||||
}
|
||||
}
|
||||
},
|
||||
"operator": {
|
||||
"$id": "#/properties/operator",
|
||||
"type": "object",
|
||||
|
||||
@@ -276,6 +276,16 @@ operator:
|
||||
podSecurityPolicy:
|
||||
enabled: true
|
||||
|
||||
# The `global` section contains values that are shared between the main chart and all subcharts.
|
||||
global:
|
||||
# The `clusterDomain` value controls the domain suffix used in the Kubernetes
|
||||
# DNS service. This is used to resolve service names in the cluster.
|
||||
# The default value is `cluster.local`.
|
||||
|
||||
# WARNING: Changing this value must match the Kubernetes cluster's configuration
|
||||
# otherwise Teleport will not be able to resolve service names.
|
||||
clusterDomain: cluster.local
|
||||
|
||||
# Labels is a map of key-value pairs about this cluster. Those labels are used
|
||||
# in Teleport to access the Kuebrnetes cluster. They must not be confused with
|
||||
# `extraLabels` which are additional labels to add on Kubernetes resources
|
||||
|
||||
Reference in New Issue
Block a user