Created
February 11, 2017 00:05
-
-
Save alansouzati/2aa879fe8d2e950d3e4243134ec0406a to your computer and use it in GitHub Desktop.
Drone sample config for kubernetes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: grommet-drone | |
namespace: drone | |
labels: | |
app: grommet-drone | |
annotations: | |
description: drone with interface | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: grommet-drone | |
spec: | |
restartPolicy: Always | |
volumes: | |
- name: grommet-drone-sqlite | |
emptyDir: {} | |
- name: grommet-drone-docker | |
hostPath: | |
path: /var/run/docker.sock | |
containers: | |
- name: grommet-drone-server | |
image: drone/drone:0.5 | |
imagePullPolicy: Always | |
volumeMounts: | |
- mountPath: /var/lib/drone/ | |
name: grommet-drone-sqlite | |
env: | |
- name: DRONE_OPEN | |
value: "true" | |
- name: DRONE_GITHUB | |
value: "true" | |
- name: DRONE_GITHUB_CLIENT | |
value: CLIENT | |
- name: DRONE_GITHUB_SECRET | |
value: SECRET | |
- name: DRONE_SECRET | |
value: SECRET | |
- name: grommet-drone-agent | |
image: drone/drone:0.5 | |
imagePullPolicy: Always | |
command: [ "/drone", "agent" ] | |
volumeMounts: | |
- mountPath: /var/run/docker.sock | |
name: grommet-drone-docker | |
env: | |
- name: DRONE_SERVER | |
value: ws://localhost:8000/ws/broker | |
- name: DRONE_SECRET | |
value: SECRET |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment