Skip to content

Instantly share code, notes, and snippets.

@bezelga
Last active September 30, 2017 23:32
Show Gist options
  • Save bezelga/eed92fa64c6e3b7eae7e7f2a9d068e5b to your computer and use it in GitHub Desktop.
Save bezelga/eed92fa64c6e3b7eae7e7f2a9d068e5b to your computer and use it in GitHub Desktop.
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: server
spec:
replicas: 1
template:
metadata:
labels:
name: server
spec:
containers:
- name: server
image: drone/drone:0.7
imagePullPolicy: Always
env:
- name: "DRONE_HOST"
value: CHANGE_ME
- name: "DRONE_OPEN"
value: CHANGE_ME
- name: "DRONE_GITHUB"
value: CHANGE_ME
- name: "DRONE_GITHUB_CLIENT"
value: CHANGE_ME
- name: "DRONE_GITHUB_SECRET"
value:CHANGE_ME
- name: "DRONE_SECRET"
value: CHANGE_ME
volumeMounts:
- mountPath: /var/lib/drone
name: drone-lib
volumes:
- name: drone-lib
hostPath:
path: /var/lib/drone
---
apiVersion: v1
kind: Service
metadata:
name: server
labels:
name: server
spec:
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 8000
selector:
name: server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment