Skip to content

Instantly share code, notes, and snippets.

@bezelga
Last active October 3, 2017 00:23
Show Gist options
  • Save bezelga/d4e018b1ca25259edd37ca834bc5ccc9 to your computer and use it in GitHub Desktop.
Save bezelga/d4e018b1ca25259edd37ca834bc5ccc9 to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: agent
spec:
replicas: 1
template:
metadata:
labels:
name: agent
spec:
containers:
- name: agent
image: drone/drone:0.7
imagePullPolicy: Always
command:
- "/drone"
- "agent"
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-socket
env:
- name: "DRONE_SERVER"
value: ws://$(SERVER_SERVICE_HOST):$(SERVER_SERVICE_PORT)/ws/broker
- name: "DRONE_SECRET"
value: CHANGE_ME
volumes:
- name: docker-socket
hostPath:
path: /var/run/docker.sock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment