mirror of
https://github.com/gravitational/teleport.git
synced 2026-11-01 21:52:02 +08:00
- Allow the namespace to be configurable - Remove grafana deployment, all metrics are shipped out to cloud grafana - Misc fixes to makefiles/deployments
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
teleport-role: node
|
|
name: node
|
|
namespace: ${NAMESPACE}
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
teleport-role: node
|
|
node: regular
|
|
template:
|
|
metadata:
|
|
labels:
|
|
teleport-role: node
|
|
node: regular
|
|
spec:
|
|
containers:
|
|
- image: ${TELEPORT_IMAGE}
|
|
name: teleport
|
|
args: ["-d", "--insecure", "--diag-addr=0.0.0.0:3434"]
|
|
ports:
|
|
- name: nodessh
|
|
containerPort: 3022
|
|
protocol: TCP
|
|
- name: diag
|
|
containerPort: 3434
|
|
protocol: TCP
|
|
readinessProbe:
|
|
failureThreshold: 3
|
|
httpGet:
|
|
path: /healthz
|
|
port: 3434
|
|
scheme: HTTP
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 30
|
|
successThreshold: 1
|
|
timeoutSeconds: 2
|
|
livenessProbe:
|
|
failureThreshold: 3
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
successThreshold: 1
|
|
tcpSocket:
|
|
port: 3434
|
|
timeoutSeconds: 1
|
|
volumeMounts:
|
|
- mountPath: /etc/teleport
|
|
name: config
|
|
readOnly: true
|
|
volumes:
|
|
- configMap:
|
|
name: node-config
|
|
name: config
|