mirror of
https://github.com/KevinMidboe/schleppe-lab.git
synced 2025-10-29 17:50:39 +00:00
CI vault secrets & Kubernetes (#2)
* Define secrets that use vault plugin * Fix drone linting issue * Persist .kube folder as volume between build steps * Split Build and Publish into separate pipelines * Only run publish pipeline when triggered by main * Import .kube/config from vault * echo env variables contents into kube config file * drone-vault not working, curl with token instead * Removed all secrets, look to org secrets * Kubernetes file * Import dockerconfig from vault and apply as kubernetes secret
This commit is contained in:
42
.kubernetes/deployment.yml
Normal file
42
.kubernetes/deployment.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
annotations:
|
||||
deployment.kubernetes.io/revision: '1'
|
||||
labels:
|
||||
app: schleppe-lab
|
||||
name: schleppe-lab
|
||||
namespace: schleppe-lab
|
||||
spec:
|
||||
progressDeadlineSeconds: 600
|
||||
replicas: 2
|
||||
revisionHistoryLimit: 10
|
||||
selector:
|
||||
matchLabels:
|
||||
app: schleppe-lab
|
||||
strategy:
|
||||
rollingUpdate:
|
||||
maxSurge: 25%
|
||||
maxUnavailable: 25%
|
||||
type: RollingUpdate
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
labels:
|
||||
app: schleppe-lab
|
||||
spec:
|
||||
containers:
|
||||
- image: ${IMAGE}
|
||||
imagePullPolicy: Always
|
||||
name: schleppe-lab
|
||||
resources: {}
|
||||
terminationMessagePath: /dev/termination-log
|
||||
terminationMessagePolicy: File
|
||||
imagePullSecrets:
|
||||
- name: ghcr-login-secret
|
||||
dnsPolicy: ClusterFirst
|
||||
restartPolicy: Always
|
||||
schedulerName: default-scheduler
|
||||
securityContext: {}
|
||||
terminationGracePeriodSeconds: 30
|
||||
Reference in New Issue
Block a user