Deployment files
continuous-integration/drone/tag Build was killed
Details
continuous-integration/drone/tag Build was killed
Details
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
parent
c33ae9792d
commit
8a18a1f4b7
|
@ -23,7 +23,7 @@ steps:
|
||||||
auto_tag: true
|
auto_tag: true
|
||||||
auto_tag_suffix: linux-amd64
|
auto_tag_suffix: linux-amd64
|
||||||
dockerfile: build/package/Dockerfile
|
dockerfile: build/package/Dockerfile
|
||||||
repo: imartyn/LEDController
|
repo: imartyn/ledcontroller
|
||||||
username:
|
username:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
password:
|
password:
|
||||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue