Skip to content

Instantly share code, notes, and snippets.

@aizatto
Last active April 7, 2020 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aizatto/66f7c423b25df50ecf4ba1024fe92ad4 to your computer and use it in GitHub Desktop.
Save aizatto/66f7c423b25df50ecf4ba1024fe92ad4 to your computer and use it in GitHub Desktop.
gocd agent
apiVersion: v1
kind: Pod
metadata:
name: gocd-agent-{{ POD_POSTFIX }}
labels:
app: web
spec:
serviceAccountName: default
containers:
- name: gocd-agent-container-{{ CONTAINER_POSTFIX }}
image: gocd/gocd-agent-docker-dind:v20.2.0
securityContext:
privileged: true
volumeMounts:
- name: ssh-secrets
mountPath: /home/go/.ssh
env:
- name: DOCKER_BUILDKIT
value: 1
volumes:
- name: ssh-secrets
secret:
secretName: gocd-agent-ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment