Compare commits

...

3 Commits

Author SHA1 Message Date
Martyn 8a18a1f4b7 Deployment files
continuous-integration/drone/tag Build was killed Details
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
2020-05-17 14:36:49 +02:00
Martyn c33ae9792d copypasta
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
2020-05-17 14:32:46 +02:00
Martyn 0b301c13be copypasta
Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
2020-05-17 14:30:25 +02:00
4 changed files with 57 additions and 3 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

@ -8,7 +8,5 @@ RUN cd /go/src/git.martyn.berlin/martyn/LEDController/; make deps ; make static
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /go/src/git.martyn.berlin/martyn/LEDController /app/
COPY strings.json /app/strings.json
COPY web/ /app/web/
WORKDIR /app
CMD ["/app/LEDController"]

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