Add teleport agent update
This commit is contained in:
@@ -1,3 +1,36 @@
|
||||
adds services listing permission if discovery is enabled:
|
||||
1: |
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: RELEASE-NAME
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- users
|
||||
- groups
|
||||
- serviceaccounts
|
||||
verbs:
|
||||
- impersonate
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- services
|
||||
verbs:
|
||||
- list
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- pods
|
||||
verbs:
|
||||
- get
|
||||
- apiGroups:
|
||||
- authorization.k8s.io
|
||||
resources:
|
||||
- selfsubjectaccessreviews
|
||||
verbs:
|
||||
- create
|
||||
creates a ClusterRole:
|
||||
1: |
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
@@ -25,6 +58,33 @@ creates a ClusterRole:
|
||||
- selfsubjectaccessreviews
|
||||
verbs:
|
||||
- create
|
||||
does not add services listing permission if discovery is disabled:
|
||||
1: |
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
name: RELEASE-NAME
|
||||
rules:
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- users
|
||||
- groups
|
||||
- serviceaccounts
|
||||
verbs:
|
||||
- impersonate
|
||||
- apiGroups:
|
||||
- ""
|
||||
resources:
|
||||
- pods
|
||||
verbs:
|
||||
- get
|
||||
- apiGroups:
|
||||
- authorization.k8s.io
|
||||
resources:
|
||||
- selfsubjectaccessreviews
|
||||
verbs:
|
||||
- create
|
||||
sets ClusterRole labels when specified:
|
||||
1: |
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
|
||||
@@ -9,6 +9,10 @@ does not generate a config for clusterrole.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster
|
||||
@@ -47,6 +51,10 @@ does not generate a config for pdb.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -85,6 +93,10 @@ matches snapshot and tests for annotations.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster
|
||||
@@ -126,6 +138,10 @@ matches snapshot and tests for extra-labels.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster
|
||||
@@ -167,6 +183,10 @@ matches snapshot for affinity.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster
|
||||
@@ -206,6 +226,7 @@ matches snapshot for all-v6.yaml:
|
||||
name: grafana
|
||||
uri: http://localhost:3000
|
||||
enabled: true
|
||||
resources: null
|
||||
auth_service:
|
||||
enabled: false
|
||||
db_service:
|
||||
@@ -216,6 +237,13 @@ matches snapshot for all-v6.yaml:
|
||||
protocol: postgres
|
||||
uri: postgres-aurora-instance-1.xxx.us-east-1.rds.amazonaws.com:5432
|
||||
enabled: true
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
api_endpoint: testjamf.jamfcloud.com/api
|
||||
client_id: teleport-jamf-client-id
|
||||
client_secret_file: /etc/teleport-jamf-api-credentials/credential
|
||||
enabled: true
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -248,6 +276,120 @@ matches snapshot for all-v6.yaml:
|
||||
kubernetes.io/config-different: 2
|
||||
name: RELEASE-NAME
|
||||
namespace: NAMESPACE
|
||||
matches snapshot for app-discovery-full.yaml:
|
||||
1: |
|
||||
apiVersion: v1
|
||||
data:
|
||||
teleport.yaml: |-
|
||||
app_service:
|
||||
apps:
|
||||
- labels:
|
||||
env: test
|
||||
name: test
|
||||
uri: https://console.aws.amazon.com/ec2/v2/home
|
||||
enabled: true
|
||||
resources:
|
||||
- labels:
|
||||
'*': '*'
|
||||
- labels:
|
||||
teleport.dev/kubernetes-cluster: example
|
||||
teleport.dev/origin: discovery-kubernetes
|
||||
auth_service:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
discovery_group: example
|
||||
enabled: true
|
||||
kubernetes:
|
||||
- labels:
|
||||
'*': '*'
|
||||
namespaces:
|
||||
- '*'
|
||||
types:
|
||||
- app
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: false
|
||||
proxy_service:
|
||||
enabled: false
|
||||
ssh_service:
|
||||
enabled: false
|
||||
teleport:
|
||||
join_params:
|
||||
method: token
|
||||
token_name: /etc/teleport-secrets/auth-token
|
||||
log:
|
||||
format:
|
||||
extra_fields:
|
||||
- timestamp
|
||||
- level
|
||||
- component
|
||||
- caller
|
||||
output: text
|
||||
output: stderr
|
||||
severity: INFO
|
||||
proxy_server: teleport.example.com
|
||||
version: v3
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: RELEASE-NAME
|
||||
namespace: NAMESPACE
|
||||
matches snapshot for app-discovery-minimal.yaml:
|
||||
1: |
|
||||
apiVersion: v1
|
||||
data:
|
||||
teleport.yaml: |-
|
||||
app_service:
|
||||
enabled: true
|
||||
resources:
|
||||
- labels:
|
||||
teleport.dev/kubernetes-cluster: test-kube-cluster
|
||||
teleport.dev/origin: discovery-kubernetes
|
||||
auth_service:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
discovery_group: test-kube-cluster
|
||||
enabled: true
|
||||
kubernetes:
|
||||
- labels:
|
||||
'*': '*'
|
||||
namespaces:
|
||||
- '*'
|
||||
types:
|
||||
- app
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster
|
||||
proxy_service:
|
||||
enabled: false
|
||||
ssh_service:
|
||||
enabled: false
|
||||
teleport:
|
||||
join_params:
|
||||
method: token
|
||||
token_name: /etc/teleport-secrets/auth-token
|
||||
log:
|
||||
format:
|
||||
extra_fields:
|
||||
- timestamp
|
||||
- level
|
||||
- component
|
||||
- caller
|
||||
output: text
|
||||
output: stderr
|
||||
severity: INFO
|
||||
proxy_server: proxy.example.com:3080
|
||||
version: v3
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: RELEASE-NAME
|
||||
namespace: NAMESPACE
|
||||
matches snapshot for aws-databases.yaml:
|
||||
1: |
|
||||
apiVersion: v1
|
||||
@@ -272,6 +414,10 @@ matches snapshot for aws-databases.yaml:
|
||||
types:
|
||||
- rds
|
||||
enabled: true
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: false
|
||||
proxy_service:
|
||||
@@ -331,6 +477,10 @@ matches snapshot for azure-databases.yaml:
|
||||
types:
|
||||
- mysql
|
||||
enabled: true
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: false
|
||||
proxy_service:
|
||||
@@ -368,6 +518,10 @@ matches snapshot for backwards-compatibility.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -406,6 +560,10 @@ matches snapshot for ca-pin.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster
|
||||
@@ -452,6 +610,10 @@ matches snapshot for db.yaml:
|
||||
protocol: postgres
|
||||
uri: postgres-aurora-instance-1.xxx.us-east-1.rds.amazonaws.com:5432
|
||||
enabled: true
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: false
|
||||
proxy_service:
|
||||
@@ -492,6 +654,10 @@ matches snapshot for dynamic-app.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: false
|
||||
proxy_service:
|
||||
@@ -532,6 +698,10 @@ matches snapshot for dynamic-db.yaml:
|
||||
resources:
|
||||
- labels:
|
||||
'*': '*'
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: false
|
||||
proxy_service:
|
||||
@@ -569,6 +739,10 @@ matches snapshot for imagepullsecrets.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster
|
||||
@@ -607,6 +781,10 @@ matches snapshot for initcontainers.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster
|
||||
@@ -634,6 +812,94 @@ matches snapshot for initcontainers.yaml:
|
||||
metadata:
|
||||
name: RELEASE-NAME
|
||||
namespace: NAMESPACE
|
||||
matches snapshot for jamf-service-existing-secret.yaml:
|
||||
1: |
|
||||
apiVersion: v1
|
||||
data:
|
||||
teleport.yaml: |-
|
||||
app_service:
|
||||
enabled: false
|
||||
auth_service:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
api_endpoint: https://testjamf.jamfcloud.com/api
|
||||
client_id: teleport-jamf-client-id
|
||||
client_secret_file: /etc/teleport-jamf-api-credentials/credential
|
||||
enabled: true
|
||||
kubernetes_service:
|
||||
enabled: false
|
||||
proxy_service:
|
||||
enabled: false
|
||||
ssh_service:
|
||||
enabled: false
|
||||
teleport:
|
||||
join_params:
|
||||
method: token
|
||||
token_name: /etc/teleport-secrets/auth-token
|
||||
log:
|
||||
format:
|
||||
extra_fields:
|
||||
- timestamp
|
||||
- level
|
||||
- component
|
||||
- caller
|
||||
output: text
|
||||
output: stderr
|
||||
severity: INFO
|
||||
proxy_server: proxy.example.com:3080
|
||||
version: v3
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: RELEASE-NAME
|
||||
namespace: NAMESPACE
|
||||
matches snapshot for jamf-service.yaml:
|
||||
1: |
|
||||
apiVersion: v1
|
||||
data:
|
||||
teleport.yaml: |-
|
||||
app_service:
|
||||
enabled: false
|
||||
auth_service:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
api_endpoint: https://testjamf.jamfcloud.com/api
|
||||
client_id: teleport-jamf-client-id
|
||||
client_secret_file: /etc/teleport-jamf-api-credentials/credential
|
||||
enabled: true
|
||||
kubernetes_service:
|
||||
enabled: false
|
||||
proxy_service:
|
||||
enabled: false
|
||||
ssh_service:
|
||||
enabled: false
|
||||
teleport:
|
||||
join_params:
|
||||
method: token
|
||||
token_name: /etc/teleport-secrets/auth-token
|
||||
log:
|
||||
format:
|
||||
extra_fields:
|
||||
- timestamp
|
||||
- level
|
||||
- component
|
||||
- caller
|
||||
output: text
|
||||
output: stderr
|
||||
severity: INFO
|
||||
proxy_server: proxy.example.com:3080
|
||||
version: v3
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: RELEASE-NAME
|
||||
namespace: NAMESPACE
|
||||
matches snapshot for join-params-iam.yaml:
|
||||
1: |
|
||||
apiVersion: v1
|
||||
@@ -645,6 +911,10 @@ matches snapshot for join-params-iam.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -683,6 +953,10 @@ matches snapshot for join-params-token.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -721,6 +995,10 @@ matches snapshot for log-basic.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -759,6 +1037,10 @@ matches snapshot for log-extra.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -797,6 +1079,10 @@ matches snapshot for log-legacy.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -835,6 +1121,10 @@ matches snapshot for node-selector.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -873,6 +1163,10 @@ matches snapshot for pdb.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -911,6 +1205,10 @@ matches snapshot for resources.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster
|
||||
@@ -949,6 +1247,10 @@ matches snapshot for stateful.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -987,6 +1289,10 @@ matches snapshot for tolerations.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster
|
||||
@@ -1025,6 +1331,10 @@ matches snapshot for v10.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -1063,6 +1373,10 @@ matches snapshot for v11.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster-name
|
||||
@@ -1101,6 +1415,10 @@ matches snapshot for volumes.yaml:
|
||||
enabled: false
|
||||
db_service:
|
||||
enabled: false
|
||||
discovery_service:
|
||||
enabled: false
|
||||
jamf_service:
|
||||
enabled: false
|
||||
kubernetes_service:
|
||||
enabled: true
|
||||
kube_cluster_name: test-kube-cluster
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -25,17 +25,19 @@ should create ServiceAccount for post-delete hook by default:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: post-delete-job
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
restartPolicy: OnFailure
|
||||
serviceAccountName: lint-serviceaccount
|
||||
should not create ServiceAccount for post-delete hook if serviceAccount.create is false:
|
||||
@@ -74,7 +76,7 @@ should not create ServiceAccount for post-delete hook if serviceAccount.create i
|
||||
name: RELEASE-NAME-delete-hook
|
||||
subjects:
|
||||
- kind: ServiceAccount
|
||||
name: RELEASE-NAME-delete-hook
|
||||
name: lint-serviceaccount
|
||||
namespace: NAMESPACE
|
||||
3: |
|
||||
apiVersion: batch/v1
|
||||
@@ -104,17 +106,19 @@ should not create ServiceAccount for post-delete hook if serviceAccount.create i
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: post-delete-job
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
restartPolicy: OnFailure
|
||||
serviceAccountName: lint-serviceaccount
|
||||
should not create ServiceAccount, Role or RoleBinding for post-delete hook if serviceAccount.create and rbac.create are false:
|
||||
@@ -132,17 +136,19 @@ should not create ServiceAccount, Role or RoleBinding for post-delete hook if se
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: post-delete-job
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
restartPolicy: OnFailure
|
||||
serviceAccountName: lint-serviceaccount
|
||||
should set nodeSelector in post-delete hook:
|
||||
@@ -160,46 +166,20 @@ should set nodeSelector in post-delete hook:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: post-delete-job
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
nodeSelector:
|
||||
gravitational.io/k8s-role: node
|
||||
restartPolicy: OnFailure
|
||||
serviceAccountName: RELEASE-NAME-delete-hook
|
||||
should set securityContext in post-delete hook:
|
||||
1: |
|
||||
containers:
|
||||
- args:
|
||||
- kube-state
|
||||
- delete
|
||||
command:
|
||||
- teleport
|
||||
env:
|
||||
- name: KUBE_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
imagePullPolicy: IfNotPresent
|
||||
name: post-delete-job
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
restartPolicy: OnFailure
|
||||
serviceAccountName: RELEASE-NAME-delete-hook
|
||||
|
||||
@@ -19,6 +19,16 @@ generates a secret when authToken is provided:
|
||||
auth-token: |
|
||||
sample-auth-token-dont-use-this
|
||||
type: Opaque
|
||||
generates a secret when jamfCredentialsSecret.create is true:
|
||||
1: |
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: teleport-jamf-api-credentials
|
||||
namespace: NAMESPACE
|
||||
stringData:
|
||||
credential: secret-jamf-client-secret
|
||||
type: Opaque
|
||||
generates a secret when joinParams.tokenName is provided:
|
||||
1: |
|
||||
apiVersion: v1
|
||||
|
||||
@@ -16,7 +16,7 @@ sets Pod annotations when specified:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -43,10 +43,12 @@ sets Pod annotations when specified:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -84,7 +86,7 @@ sets Pod labels when specified:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -111,10 +113,12 @@ sets Pod labels when specified:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -154,7 +158,7 @@ sets StatefulSet labels when specified:
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: db49feab9b174f73188febc30d2b01d27b16e5a76b586c6e87e6e62eb43620a2
|
||||
checksum/config: 9e9cb2e4d76c492bccf0b1e2be4a5acffc8fe747484eb62e615c5ed8dc8c3fc6
|
||||
labels:
|
||||
app: RELEASE-NAME
|
||||
app.kubernetes.io/name: teleport-kube-agent
|
||||
@@ -176,7 +180,7 @@ sets StatefulSet labels when specified:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -203,10 +207,12 @@ sets StatefulSet labels when specified:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -241,18 +247,22 @@ sets by default a container security context:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
2: |
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
should add insecureSkipProxyTLSVerify to args when set in values:
|
||||
1: |
|
||||
containers:
|
||||
@@ -272,7 +282,7 @@ should add insecureSkipProxyTLSVerify to args when set in values:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -299,10 +309,12 @@ should add insecureSkipProxyTLSVerify to args when set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -340,7 +352,7 @@ should add volumeClaimTemplate for data volume when using StatefulSet and action
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -367,10 +379,12 @@ should add volumeClaimTemplate for data volume when using StatefulSet and action
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -408,7 +422,7 @@ should add volumeClaimTemplate for data volume when using StatefulSet and is Fre
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
checksum/config: 6e010c147e8d81d244e7aafdcee7e652cdb4d5640fb7f14d0e1ebb7832f943a5
|
||||
checksum/config: 5784fa709686cf9d0818ad218ab23bb886fa3877e4a84eb1bdeb25acbe8e6b3c
|
||||
labels:
|
||||
app: RELEASE-NAME
|
||||
spec:
|
||||
@@ -428,7 +442,7 @@ should add volumeClaimTemplate for data volume when using StatefulSet and is Fre
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -455,10 +469,12 @@ should add volumeClaimTemplate for data volume when using StatefulSet and is Fre
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -506,7 +522,7 @@ should add volumeMount for data volume when using StatefulSet:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -533,10 +549,12 @@ should add volumeMount for data volume when using StatefulSet:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -574,7 +592,7 @@ should expose diag port:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -601,10 +619,12 @@ should expose diag port:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -642,7 +662,7 @@ should generate Statefulset when storage is disabled and mode is a Upgrade:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -669,10 +689,12 @@ should generate Statefulset when storage is disabled and mode is a Upgrade:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -724,7 +746,7 @@ should have multiple replicas when replicaCount is set (using .replicaCount, dep
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -751,10 +773,12 @@ should have multiple replicas when replicaCount is set (using .replicaCount, dep
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -804,7 +828,7 @@ should have multiple replicas when replicaCount is set (using highAvailability.r
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -831,10 +855,12 @@ should have multiple replicas when replicaCount is set (using highAvailability.r
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -872,7 +898,7 @@ should have one replica when replicaCount is not set:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -899,10 +925,12 @@ should have one replica when replicaCount is not set:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -940,7 +968,7 @@ should install Statefulset when storage is disabled and mode is a Fresh Install:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -967,10 +995,12 @@ should install Statefulset when storage is disabled and mode is a Fresh Install:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1010,7 +1040,7 @@ should mount extraVolumes and extraVolumeMounts:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -1037,10 +1067,12 @@ should mount extraVolumes and extraVolumeMounts:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1065,7 +1097,7 @@ should mount extraVolumes and extraVolumeMounts:
|
||||
- name: my-mount
|
||||
secret:
|
||||
secretName: mySecret
|
||||
should mount tls.existingCASecretName and set environment when set in values:
|
||||
should mount jamfCredentialsSecret if it already exists and when role is jamf:
|
||||
1: |
|
||||
containers:
|
||||
- args:
|
||||
@@ -1083,9 +1115,7 @@ should mount tls.existingCASecretName and set environment when set in values:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
- name: SSL_CERT_FILE
|
||||
value: /etc/teleport-tls-ca/ca.pem
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -1112,10 +1142,170 @@ should mount tls.existingCASecretName and set environment when set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
readOnly: true
|
||||
- mountPath: /etc/teleport-secrets
|
||||
name: auth-token
|
||||
readOnly: true
|
||||
- mountPath: /var/lib/teleport
|
||||
name: data
|
||||
- mountPath: /etc/teleport-jamf-api-credentials
|
||||
name: jamf-api-credentials
|
||||
readOnly: true
|
||||
securityContext:
|
||||
fsGroup: 9807
|
||||
serviceAccountName: RELEASE-NAME
|
||||
volumes:
|
||||
- configMap:
|
||||
name: RELEASE-NAME
|
||||
name: config
|
||||
- name: auth-token
|
||||
secret:
|
||||
secretName: teleport-kube-agent-join-token
|
||||
- emptyDir: {}
|
||||
name: data
|
||||
- name: jamf-api-credentials
|
||||
secret:
|
||||
secretName: existing-teleport-jamf-secret
|
||||
should mount jamfCredentialsSecret.name when role is jamf:
|
||||
1: |
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
env:
|
||||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT
|
||||
value: "true"
|
||||
- name: TELEPORT_REPLICA_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
- name: KUBE_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: diag
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
name: teleport
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
name: diag
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
failureThreshold: 12
|
||||
httpGet:
|
||||
path: /readyz
|
||||
port: diag
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
readOnly: true
|
||||
- mountPath: /etc/teleport-secrets
|
||||
name: auth-token
|
||||
readOnly: true
|
||||
- mountPath: /var/lib/teleport
|
||||
name: data
|
||||
- mountPath: /etc/teleport-jamf-api-credentials
|
||||
name: jamf-api-credentials
|
||||
readOnly: true
|
||||
securityContext:
|
||||
fsGroup: 9807
|
||||
serviceAccountName: RELEASE-NAME
|
||||
volumes:
|
||||
- configMap:
|
||||
name: RELEASE-NAME
|
||||
name: config
|
||||
- name: auth-token
|
||||
secret:
|
||||
secretName: teleport-kube-agent-join-token
|
||||
- emptyDir: {}
|
||||
name: data
|
||||
- name: jamf-api-credentials
|
||||
secret:
|
||||
secretName: teleport-jamf-api-credentials
|
||||
should mount tls.existingCASecretName and set environment when set in values:
|
||||
1: |
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
env:
|
||||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT
|
||||
value: "true"
|
||||
- name: TELEPORT_REPLICA_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
- name: KUBE_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
- name: SSL_CERT_FILE
|
||||
value: /etc/teleport-tls-ca/ca.pem
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: diag
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
name: teleport
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
name: diag
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
failureThreshold: 12
|
||||
httpGet:
|
||||
path: /readyz
|
||||
port: diag
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1165,7 +1355,7 @@ should mount tls.existingCASecretName and set extra environment when set in valu
|
||||
value: /etc/teleport-tls-ca/ca.pem
|
||||
- name: HTTPS_PROXY
|
||||
value: http://username:password@my.proxy.host:3128
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -1192,10 +1382,12 @@ should mount tls.existingCASecretName and set extra environment when set in valu
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1241,7 +1433,7 @@ should not add emptyDir for data when using StatefulSet:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -1268,10 +1460,12 @@ should not add emptyDir for data when using StatefulSet:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1309,7 +1503,7 @@ should provision initContainer correctly when set in values:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -1343,10 +1537,12 @@ should provision initContainer correctly when set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1372,78 +1568,12 @@ should provision initContainer correctly when set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
readOnly: true
|
||||
- mountPath: /etc/teleport-secrets
|
||||
name: auth-token
|
||||
readOnly: true
|
||||
- mountPath: /var/lib/teleport
|
||||
name: RELEASE-NAME-teleport-data
|
||||
securityContext:
|
||||
fsGroup: 9807
|
||||
serviceAccountName: RELEASE-NAME
|
||||
volumes:
|
||||
- configMap:
|
||||
name: RELEASE-NAME
|
||||
name: config
|
||||
- name: auth-token
|
||||
secret:
|
||||
secretName: teleport-kube-agent-join-token
|
||||
should set SecurityContext:
|
||||
1: |
|
||||
containers:
|
||||
- args:
|
||||
- --diag-addr=0.0.0.0:3000
|
||||
env:
|
||||
- name: TELEPORT_INSTALL_METHOD_HELM_KUBE_AGENT
|
||||
value: "true"
|
||||
- name: TELEPORT_REPLICA_NAME
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.name
|
||||
- name: KUBE_NAMESPACE
|
||||
valueFrom:
|
||||
fieldRef:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: diag
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
name: teleport
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
name: diag
|
||||
protocol: TCP
|
||||
readinessProbe:
|
||||
failureThreshold: 12
|
||||
httpGet:
|
||||
path: /readyz
|
||||
port: diag
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 1
|
||||
securityContext:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1501,7 +1631,7 @@ should set affinity when set in values:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -1528,10 +1658,12 @@ should set affinity when set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1569,7 +1701,7 @@ should set default serviceAccountName when not set in values:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -1596,10 +1728,12 @@ should set default serviceAccountName when not set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1650,7 +1784,7 @@ should set environment when extraEnv set in values:
|
||||
value: RELEASE-NAME
|
||||
- name: HTTPS_PROXY
|
||||
value: http://username:password@my.proxy.host:3128
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -1677,10 +1811,12 @@ should set environment when extraEnv set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1745,10 +1881,12 @@ should set image and tag correctly:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1786,7 +1924,7 @@ should set imagePullPolicy when set in values:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: Always
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -1813,10 +1951,12 @@ should set imagePullPolicy when set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1854,7 +1994,7 @@ should set nodeSelector if set in values:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -1881,10 +2021,12 @@ should set nodeSelector if set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -1936,7 +2078,7 @@ should set preferred affinity when more than one replica is used:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -1963,10 +2105,12 @@ should set preferred affinity when more than one replica is used:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -2004,7 +2148,7 @@ should set probeTimeoutSeconds when set in values:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -2031,10 +2175,12 @@ should set probeTimeoutSeconds when set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -2082,7 +2228,7 @@ should set required affinity when highAvailability.requireAntiAffinity is set:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -2109,10 +2255,12 @@ should set required affinity when highAvailability.requireAntiAffinity is set:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -2150,7 +2298,7 @@ should set resources when set in values:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -2184,10 +2332,12 @@ should set resources when set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -2225,7 +2375,7 @@ should set serviceAccountName when set in values:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -2252,10 +2402,12 @@ should set serviceAccountName when set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -2293,7 +2445,7 @@ should set storage.requests when set in values and action is an Upgrade:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -2320,10 +2472,12 @@ should set storage.requests when set in values and action is an Upgrade:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -2361,7 +2515,7 @@ should set storage.storageClassName when set in values and action is an Upgrade:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -2388,10 +2542,12 @@ should set storage.storageClassName when set in values and action is an Upgrade:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
@@ -2429,7 +2585,7 @@ should set tolerations when set in values:
|
||||
fieldPath: metadata.namespace
|
||||
- name: RELEASE_NAME
|
||||
value: RELEASE-NAME
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-distroless:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -2456,10 +2612,12 @@ should set tolerations when set in values:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
volumeMounts:
|
||||
- mountPath: /etc/teleport
|
||||
name: config
|
||||
|
||||
@@ -27,7 +27,7 @@ sets the affinity:
|
||||
- --base-image=public.ecr.aws/gravitational/teleport-distroless
|
||||
- --version-server=https://my-custom-version-server/v1
|
||||
- --version-channel=custom/preview
|
||||
image: public.ecr.aws/gravitational/teleport-kube-agent-updater:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-kube-agent-updater:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -57,10 +57,12 @@ sets the affinity:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
serviceAccountName: RELEASE-NAME-updater
|
||||
sets the tolerations:
|
||||
1: |
|
||||
@@ -71,7 +73,7 @@ sets the tolerations:
|
||||
- --base-image=public.ecr.aws/gravitational/teleport-distroless
|
||||
- --version-server=https://my-custom-version-server/v1
|
||||
- --version-channel=custom/preview
|
||||
image: public.ecr.aws/gravitational/teleport-kube-agent-updater:13.3.8
|
||||
image: public.ecr.aws/gravitational/teleport-kube-agent-updater:16.1.7
|
||||
imagePullPolicy: IfNotPresent
|
||||
livenessProbe:
|
||||
failureThreshold: 6
|
||||
@@ -101,10 +103,12 @@ sets the tolerations:
|
||||
allowPrivilegeEscalation: false
|
||||
capabilities:
|
||||
drop:
|
||||
- all
|
||||
- ALL
|
||||
readOnlyRootFilesystem: true
|
||||
runAsNonRoot: true
|
||||
runAsUser: 9807
|
||||
seccompProfile:
|
||||
type: RuntimeDefault
|
||||
serviceAccountName: RELEASE-NAME-updater
|
||||
tolerations:
|
||||
- effect: NoExecute
|
||||
|
||||
Reference in New Issue
Block a user