Deployment files
continuous-integration/drone/tag Build was killed Details

Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
Martyn 2020-05-17 14:36:49 +02:00
parent c33ae9792d
commit 8a18a1f4b7
3 changed files with 57 additions and 1 deletions

View File

@ -23,7 +23,7 @@ steps:
auto_tag: true
auto_tag_suffix: linux-amd64
dockerfile: build/package/Dockerfile
repo: imartyn/LEDController
repo: imartyn/ledcontroller
username:
from_secret: docker_username
password:

View File

@ -0,0 +1,39 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: LEDController
name: LEDController
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
run: LEDController
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
run: LEDController
spec:
containers:
- image: imartyn/LEDController:devel
imagePullPolicy: IfNotPresent
name: LEDController
ports:
- name: web
containerPort: 5353
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30

View File

@ -0,0 +1,17 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
run: LEDController
name: ledcontroller
spec:
externalTrafficPolicy: Cluster
ports:
- port: 80
protocol: TCP
targetPort: 5353
selector:
run: LEDController
sessionAffinity: None
type: LoadBalancer