Add teleport

This commit is contained in:
2023-09-09 15:54:27 +08:00
parent ec83286fc7
commit 9467c59c8d
102 changed files with 12224 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: gravitational.io/dedicated
operator: In
values:
- teleport
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- teleport
topologyKey: kubernetes.io/hostname
weight: 1
+27
View File
@@ -0,0 +1,27 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube,app,db
kubeClusterName: test-kube-cluster-name
labels:
cluster: testing
apps:
- name: grafana
uri: http://localhost:3000
labels:
environment: test
databases:
- name: aurora
uri: "postgres-aurora-instance-1.xxx.us-east-1.rds.amazonaws.com:5432"
protocol: "postgres"
labels:
database: staging
annotations:
config:
kubernetes.io/config: "test-annotation"
kubernetes.io/config-different: 2
deployment:
kubernetes.io/deployment: "test-annotation"
kubernetes.io/deployment-different: 3
pod:
kubernetes.io/pod: "test-annotation"
kubernetes.io/pod-different: 4
@@ -0,0 +1,20 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
annotations:
config:
kubernetes.io/config: "test-annotation"
kubernetes.io/config-different: 2
deployment:
kubernetes.io/deployment: "test-annotation"
kubernetes.io/deployment-different: 3
pod:
kubernetes.io/pod: "test-annotation"
kubernetes.io/pod-different: 4
secret:
kubernetes.io/secret: "test-annotation"
kubernetes.io/secret-different: 6
serviceAccount:
kubernetes.io/serviceaccount: "test-annotation"
kubernetes.io/serviceaccount-different: 5
@@ -0,0 +1,15 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: db
awsDatabases:
- types: ["rds"]
regions: ["us-east-1"]
tags:
"*": "*"
- types: ["rds"]
regions: ["us-west-2"]
tags:
"env": "development"
annotations:
serviceAccount:
eks.amazonaws.com/role-arn: arn:aws:iam::1234567890:role/my-rds-autodiscovery-role
@@ -0,0 +1,26 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: db
azureDatabases:
- types: ["mysql", "postgres"]
tags:
"*": "*"
- types: ["mysql"]
tags:
"env": ["dev", "staging"]
"origin": "alice"
regions: ["eastus", "centralus"]
subscriptions: ["subID1", "subID2"]
resource_groups: ["group1", "group2"]
# environment variables can be used to authenticate as the Azure service principal
extraEnv:
- name: AZURE_CLIENT_SECRET
valueFrom:
secretKeyRef:
name: teleport-azure-client-secret
key: client_secret
optional: false
- name: AZURE_TENANT_ID
value: "11111111-2222-3333-4444-555555555555"
- name: AZURE_CLIENT_ID
value: "11111111-2222-3333-4444-555555555555"
@@ -0,0 +1,3 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster-name
+5
View File
@@ -0,0 +1,5 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
caPin: ["sha256:7e12c17c20d9cb504bbcb3f0236be3f446861f1396dcbb44425fe28ec1c108f1"]
@@ -0,0 +1,7 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
clusterRoleName: teleport-kube-agent-test
clusterRoleBindingName: teleport-kube-agent-test
serviceAccountName: teleport-kube-agent-test
+9
View File
@@ -0,0 +1,9 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: db
databases:
- name: aurora
uri: "postgres-aurora-instance-1.xxx.us-east-1.rds.amazonaws.com:5432"
protocol: "postgres"
labels:
database: staging
+15
View File
@@ -0,0 +1,15 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
dnsPolicy: ClusterFirstWithHostNet
dnsConfig:
nameservers:
- 1.2.3.4
searches:
- ns1.svc.cluster-domain.example
- my.dns.search.suffix
options:
- name: ndots
value: "2"
- name: edns0
@@ -0,0 +1,6 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: app
appResources:
- labels:
"*": "*"
@@ -0,0 +1,6 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: db
databaseResources:
- labels:
"*": "*"
@@ -0,0 +1,5 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
existingDataVolume: teleport-kube-agent-data
@@ -0,0 +1,6 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
tls:
existingCASecretName: "helm-lint-existing-tls-secret-ca"
@@ -0,0 +1,5 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
extraArgs: ['--debug']
+7
View File
@@ -0,0 +1,7 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
extraEnv:
- name: HTTPS_PROXY
value: "http://username:password@my.proxy.host:3128"
@@ -0,0 +1,37 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster
extraLabels:
role:
app.kubernetes.io/name: "teleport-kube-agent"
resource: "role"
roleBinding:
app.kubernetes.io/name: "teleport-kube-agent"
resource: "rolebinding"
clusterRole:
app.kubernetes.io/name: "teleport-kube-agent"
resource: "clusterrole"
clusterRoleBinding:
app.kubernetes.io/name: "teleport-kube-agent"
resource: "clusterrolebinding"
config:
app.kubernetes.io/name: "teleport-kube-agent"
resource: "config"
deployment:
app.kubernetes.io/name: "teleport-kube-agent"
resource: "deployment"
pod:
app.kubernetes.io/name: "teleport-kube-agent"
resource: "pod"
podDisruptionBudget:
app.kubernetes.io/name: "teleport-kube-agent"
resource: "poddisruptionbudget"
podSecurityPolicy:
app.kubernetes.io/name: "teleport-kube-agent"
resource: "podsecuritypolicy"
secret:
app.kubernetes.io/name: "teleport-kube-agent"
resource: "secret"
serviceAccount:
app.kubernetes.io/name: "teleport-kube-agent"
resource: "serviceaccount"
@@ -0,0 +1,11 @@
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster-name
hostAliases:
- ip: "127.0.0.1"
hostnames:
- "foo.local"
- "bar.local"
- ip: "10.1.2.3"
hostnames:
- "foo.remote"
- "bar.remote"
@@ -0,0 +1,7 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster-name
storage:
enabled: true
storageClassName: "aws-gp2"
imagePullPolicy: Always
@@ -0,0 +1,5 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
imagePullPolicy: Always
@@ -0,0 +1,7 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
image: public.ecr.aws/gravitational/teleport
imagePullSecrets:
- name: myRegistryKeySecretName
@@ -0,0 +1,17 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
initContainers:
- name: "teleport-init"
image: "alpine"
args: ["echo test"]
# These are just sample values to test the chart.
# They are not intended to be guidelines or suggestions for running teleport.
resources:
limits:
cpu: 2
memory: 4Gi
requests:
cpu: 1
memory: 2Gi
@@ -0,0 +1,5 @@
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster-name
joinParams:
tokenName: iam-token
method: iam
@@ -0,0 +1,5 @@
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster-name
joinParams:
tokenName: xxxxxxx-secret-token-xxxxxxx
method: token
+6
View File
@@ -0,0 +1,6 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster-name
log:
format: json
level: INFO
+8
View File
@@ -0,0 +1,8 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster-name
log:
format: json
level: DEBUG
output: /var/lib/teleport/test.log
extraFields: ["level", "timestamp", "component", "caller"]
@@ -0,0 +1,4 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster-name
logLevel: DEBUG
@@ -0,0 +1,5 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster-name
nodeSelector:
gravitational.io/k8s-role: node
+7
View File
@@ -0,0 +1,7 @@
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster-name
highAvailability:
replicaCount: 3
podDisruptionBudget:
enabled: true
minAvailable: 2
@@ -0,0 +1,7 @@
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster-name
podMonitor:
enabled: true
additionalLabels:
prometheus: default
interval: 30s
@@ -0,0 +1,4 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster
priorityClassName: teleport-kube-agent
@@ -0,0 +1,7 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster-name
# These are just sample values to test the chart.
# They are not intended to be guidelines or suggestions for running teleport.
probeTimeoutSeconds: 5
+13
View File
@@ -0,0 +1,13 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
# These are just sample values to test the chart.
# They are not intended to be guidelines or suggestions for running teleport.
resources:
limits:
cpu: 2
memory: 4Gi
requests:
cpu: 1
memory: 2Gi
@@ -0,0 +1,6 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: helm-lint
securityContext: null
initSecurityContext: null
@@ -0,0 +1,5 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
serviceAccountName: teleport-kube-agent-sa
+6
View File
@@ -0,0 +1,6 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
kubeClusterName: test-kube-cluster-name
storage:
enabled: true
storageClassName: "aws-gp2"
@@ -0,0 +1,13 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
tolerations:
- key: "dedicated"
operator: "Equal"
value: "teleport"
effect: "NoExecute"
- key: "dedicated"
operator: "Equal"
value: "teleport"
effect: "NoSchedule"
+6
View File
@@ -0,0 +1,6 @@
proxyAddr: proxy.example.com:3080
roles: "custom"
updater:
enabled: true
versionServer: https://my-custom-version-server/v1
releaseChannel: custom/preview
+5
View File
@@ -0,0 +1,5 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster-name
teleportVersionOverride: "10.3.5-dev"
+5
View File
@@ -0,0 +1,5 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster-name
teleportVersionOverride: "11.0.1-dev"
+11
View File
@@ -0,0 +1,11 @@
authToken: auth-token
proxyAddr: proxy.example.com:3080
roles: kube
kubeClusterName: test-kube-cluster
extraVolumeMounts:
- name: "my-mount"
mountPath: "/path/to/mount"
extraVolumes:
- name: "my-mount"
secret:
secretName: "mySecret"