apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    teleport-role: node
  name: iot-node
  namespace: loadtest
spec:
  replicas: 1
  selector:
    matchLabels:
      teleport-role: node
      node: iot
  template:
    metadata:
      labels:
        teleport-role: node
        node: iot
    spec:
      containers:
        - image: gcr.io/teleport-loadtest/teleport:8.0.0-tross.dev.1
          name: teleport
          args: ["-d", "--insecure"]
          ports:
            - name: nodessh
              containerPort: 3022
              protocol: TCP
          volumeMounts:
            - mountPath: /etc/teleport
              name: config
              readOnly: true
      volumes:
        - configMap:
            name: iot-node-config
          name: config
