variabilisation kubernetes

This commit is contained in:
Valentin CZERYBA 2022-12-10 15:14:00 +01:00
parent 572be625bd
commit 8008b025d0
6 changed files with 190 additions and 18 deletions

View File

@ -5,4 +5,7 @@ quarkus_project: "covas-quarkus"
mailer_host: "smtp.gmail.com"
mailer_from: "valczebackup@gmail.com"
mailer_port: "587"
mailer_port: "587"
port: 8083
targetPort: 8080

View File

@ -1,18 +1,39 @@
$ANSIBLE_VAULT;1.1;AES256
62303334613131393231383663303736313438613735343864663138326464326434396561613630
6134343565363064663931313335613936333039386138360a616333313562386566313563666139
64376131393634346664376465663965396236626663613831306433313735303338393061313663
3738343164626266640a626636356332303961366566363838306161303530613964393531353761
64366265633037363862366334396333323865653963326335356334616234306437333334343538
31666530613337376432323561353036383530653737373434633431616233653962656134393766
31656461373337626531313161346664346139653933613632346162313565623436663430323266
32646464373737323230323736376665326437396363343233646235623638363537393339313437
33353962633365353466643635656464383238636139353436326633633430623261656633336266
63633766633836336662363063306330393463326138616336623365323535313264383161623434
32626237643238396336616533636564646464376232333864396663666563393839643863316338
63616632613230323663353430653430663362626331653230393934313339396432343361383266
33333861636265663863313931343463363034376462363466306339373134363535333164646663
35386533646333656164663065353336333563396430626636326639306330313066326662623663
31666433333135373462306335666662366130363634386564353065626332643432626632303932
39393131643037333765653964376663336164313732336134616466353163653036336639336466
34333738353830336165303333646161386533663033343838316162656638306131
64323034306466353139343765626366333236376138306561336430316565616134356565373865
3330336538643132373635646435646637643735633030660a643538356333356232663664316630
62326138353933333565626363376135393266666162643936643138303438393565383435333737
3239363964386630350a653736393435643239373732646637646433623332623336643338663839
38303433303634613238393233343230386636366137616231623131323861316537623035396630
32366666393633326665643063306132616631383966353737646439643162336435316538346265
66356539643530646338363862633963306634613136363337613738653162333163643130613035
31643330303437616431316165323365376364306664623936356334656362663165623239333231
66616662643539383164613234343733663236613733313633353961303038666266633739323830
64633165633832343130316338376638353631326362336663386431636631396334646430336562
34363666643035643439666362396363663936333763363263393734353438653931363735313032
35356132383131353538653338386566353032356635653233396264333139303632623939323664
64363833393230636666323531323630346361346336393239316661636537313030636532653733
61343338623861626336636636323162343666366238653730386464353736633338313034323633
31366133643561333464653830343465303836366537633866636335373536613430343339366436
64656162316437383264666264346633646238633535386165303936633139356436646162396135
62346163383834343332646437326439343238663334313730656462343530373063386236616135
35333862376466306637623063323631373530383631316561366365326162663466663338616238
36376363646466356565303963393562653534663736343730613536643936663836613732373161
30616232373134376366616263663866313233666437613235643263306332653130383730383937
64613330653735303734656235376262643432383736613939363963643438373239366137336336
61353761376332643961363330643364633230383339383234636234633766363037383565336630
66643431333634646365353233336166626665386339383864303634323335306334666536306339
65396238623236646464346531333736336538336463376632323663373634666464363737623661
35616236363634313130316639386333343264316533353131643431363766393632346531323133
32366132313737326462373635626461666365653339623630623966646663383261663664646338
63346537366463323361616530333834663238353461306133323464643563616335343762663735
34316435386362663564316536613134336337346135616434356433643066303831336533343432
39353938656461376234636561353061303339373039643831643466613861396562376162353161
31616432326136343238613734356432663539393039363530323030613436376536393734333035
33653262316639323935646165333337313466303963306132613730366530346532663833393537
33323839333431373437663039353063343133623831343465303338303437633331396132363634
61656231653133653866663135643436343639326431616432326235643131356136333266653333
62643232313231633234343937383365636431316437313463396432393265376164343836356265
38623335343961616339623961393164366439373439643566393931616237316437613735396634
64656363326465323466396466623734306639613063323437646431343833346337363937363334
33646339636132333735353464646431626564633862366139626636663161653931336634373430
6464626131353032393730623766393631366433636137393165

View File

@ -0,0 +1,97 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f ../docker-compose.yml
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: backend
name: backend
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: backend
strategy: {}
template:
metadata:
annotations:
kompose.cmd: kompose convert -f ../docker-compose.yml
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: backend
spec:
imagePullSecrets:
- name: regcred
containers:
- env:
- name: POSTGRES_DB
valueFrom:
configMapKeyRef:
key: POSTGRES_DB
name: env
- name: POSTGRES_PASSWORD
valueFrom:
configMapKeyRef:
key: POSTGRES_PASSWORD
name: env
- name: POSTGRES_PORT
valueFrom:
configMapKeyRef:
key: POSTGRES_PORT
name: env
- name: POSTGRES_URL
valueFrom:
configMapKeyRef:
key: POSTGRES_URL
name: env
- name: POSTGRES_USER
valueFrom:
configMapKeyRef:
key: POSTGRES_USER
name: env
- name: REDIS_PORT
valueFrom:
configMapKeyRef:
key: REDIS_PORT
name: env
- name: REDIS_URL
valueFrom:
configMapKeyRef:
key: REDIS_URL
name: env
- name: MAILER_FROM
valueFrom:
configMapKeyRef:
key: MAILER_FROM
name: env
- name: MAILER_HOST
valueFrom:
configMapKeyRef:
key: MAILER_HOST
name: env
- name: MAILER_PORT
valueFrom:
configMapKeyRef:
key: MAILER_PORT
name: env
- name: MAILER_USERNAME
valueFrom:
configMapKeyRef:
key: MAILER_USERNAME
name: env
- name: MAILER_PASSWORD
valueFrom:
configMapKeyRef:
key: MAILER_PASSWORD
name: env
image: rg.fr-par.scw.cloud/covas/quarkus-native
name: backend
ports:
- containerPort: 8080
resources: {}
restartPolicy: Always
status: {}

View File

@ -0,0 +1,20 @@
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f ../docker-compose.yml
kompose.version: 1.26.0 (40646f47)
creationTimestamp: null
labels:
io.kompose.service: backend
name: backend
spec:
ports:
- name: "{{ port }}"
port: {{ port }}
targetPort: {{ targetPort }}
type: LoadBalancer
selector:
io.kompose.service: backend
status:
loadBalancer: {}

View File

@ -0,0 +1,20 @@
apiVersion: v1
data:
POSTGRES_DB: {{ postgres_db }}
POSTGRES_PASSWORD: {{ postgres_password }}
POSTGRES_PORT: "{{ postgres_port }}"
POSTGRES_URL: {{ postgres_url }}
POSTGRES_USER: {{ postgres_user }}
REDIS_PORT: "{{ redis_port }}"
REDIS_URL: {{ redis_url }}
MAILER_FROM: {{ mailer_from }}
MAILER_HOST: {{ mailer_host }}
MAILER_PORT: "{{ mailer_port }}"
MAILER_USERNAME: {{ mailer_username }}
MAILER_PASSWORD: {{ mailer_password }}
kind: ConfigMap
metadata:
creationTimestamp: null
labels:
io.kompose.service: backend-env
name: env

View File

@ -0,0 +1,11 @@
apiVersion: v1
data:
.dockerconfigjson: {{ dockerconfigjson }}
kind: Secret
metadata:
creationTimestamp: "2022-11-26T19:19:41Z"
name: regcred
namespace: default
resourceVersion: "17345802593"
uid: {{ uid_secret }}
type: kubernetes.io/dockerconfigjson