41 lines
1.0 KiB
YAML
41 lines
1.0 KiB
YAML
apiVersion: argoproj.io/v1alpha1
|
|
kind: Workflow
|
|
metadata:
|
|
generateName: tests-teleport-tbot-
|
|
namespace: hosting-mngt
|
|
spec:
|
|
entrypoint: exec
|
|
serviceAccountName: argo-runner
|
|
templates:
|
|
- name: exec
|
|
volumes:
|
|
- name: identity-output
|
|
emptyDir: {}
|
|
- name: hosting-mngt-tbot-config
|
|
configMap:
|
|
name: hosting-mngt-tbot-config
|
|
|
|
container:
|
|
image: alpine
|
|
command: [sh, -c]
|
|
args:
|
|
- |
|
|
ls -lah /opt/machine-id
|
|
volumeMounts:
|
|
- name: identity-output
|
|
mountPath: /opt/machine-id
|
|
|
|
initContainers:
|
|
- name: get-identity
|
|
image: public.ecr.aws/gravitational/teleport-distroless:18.11.4
|
|
command: ["tbot"]
|
|
args:
|
|
- "start"
|
|
- "--config=/config/tbot.yaml"
|
|
- "--oneshot"
|
|
volumeMounts:
|
|
- name: identity-output
|
|
mountPath: /opt/machine-id
|
|
- name: hosting-mngt-tbot-config
|
|
mountPath: /config
|