no envsubst

This commit is contained in:
Nikola Kubiczek 2023-09-25 20:55:45 +02:00
parent 15453c99e5
commit 3b4c248a17
Signed by: yaemiku
GPG Key ID: ADC039636B3E4AAB
2 changed files with 12 additions and 12 deletions

View File

@ -28,9 +28,9 @@ deploy:
when: always when: always
extends: [.kube-context] extends: [.kube-context]
image: image:
name: registry.yaemiku.dev/yaemiku/kubectl name: bitnami/kubectl:latest
entrypoint: [""] entrypoint: [""]
script: script:
- ls - ls
- cat $CI_PROJECT_PATH/deployment.yaml | envsubst | kubectl apply -f - - kubectl apply -f $CI_PROJECT_PATH/deployment.yaml
- kubectl get pods - kubectl get pods

View File

@ -1,20 +1,20 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: $CI_PROJECT_NAME name: hamburger
spec: spec:
selector: selector:
matchLabels: matchLabels:
app: $CI_PROJECT_NAME app: hamburger
replicas: 1 replicas: 1
template: template:
metadata: metadata:
labels: labels:
app: $CI_PROJECT_NAME app: hamburger
spec: spec:
containers: containers:
- name: $CI_PROJECT_NAME - name: hamburger
image: "$REGISTRY/$REGISTRY_USERNAME/$CI_PROJECT_NAME" image: registry.yaemiku.dev/yaemiku/hamburger
ports: ports:
- name: app-port - name: app-port
containerPort: 3000 containerPort: 3000
@ -32,20 +32,20 @@ spec:
apiVersion: v1 apiVersion: v1
kind: Service kind: Service
metadata: metadata:
name: $CI_PROJECT_NAME name: hamburger
spec: spec:
ports: ports:
- name: app-svc-port - name: app-svc-port
port: 80 port: 80
targetPort: app-port targetPort: app-port
selector: selector:
app: $CI_PROJECT_NAME app: hamburger
--- ---
apiVersion: traefik.containo.us/v1alpha1 apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute kind: IngressRoute
metadata: metadata:
name: $CI_PROJECT_NAME name: hamburger
spec: spec:
entryPoints: entryPoints:
- websecure - websecure
@ -54,10 +54,10 @@ spec:
match: Host(`yaemiku.dev`) || Host(`www.yaemiku.dev`) match: Host(`yaemiku.dev`) || Host(`www.yaemiku.dev`)
services: services:
- kind: Service - kind: Service
name: $CI_PROJECT_NAME name: hamburger
port: app-svc-port port: app-svc-port
tls: tls:
secretName: $CI_PROJECT_NAME-tls secretName: hamburger-tls
certResolver: letsencrypt-prod certResolver: letsencrypt-prod
domains: domains:
- main: yaemiku.dev - main: yaemiku.dev