update deployment

main
adb-sh 2 years ago
parent 6a0a286f46
commit 58c9b39445

@ -10,8 +10,8 @@ steps:
registry: docker.cybre.town
repo: docker.cybre.town/adb/ecape2023-mixlab-events
tags:
- "latest"
- "${DRONE_COMMIT_SHA:0:8}"
- "latest"
username:
from_secret: docker_username
password:

2
.gitignore vendored

@ -1 +1 @@
./_site
./_site/*

@ -0,0 +1,67 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: escape2023-mixlab-events
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: escape2023-mixlab-events
template:
metadata:
labels:
app: escape2023-mixlab-events
spec:
containers:
- name: escape2023-mixlab-events
image: docker.cybre.town/adb/ecape2023-mixlab-events:latest
imagePullPolicy: Always
resources:
limits:
memory: "50Mi"
cpu: "50m"
ports:
- containerPort: 8080
imagePullSecrets:
- name: docker-cybre-town-adb
---
apiVersion: v1
kind: Service
metadata:
name: escape2023-mixlab-events
namespace: default
spec:
selector:
app: escape2023-mixlab-events
ports:
- port: 8080
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: escape2023-mixlab-events
namespace: default
labels:
name: escape2023-mixlab-events
annotations:
cert-manager.io/cluster-issuer: letsencrypt-issuer
spec:
tls:
- secretName: "deploy-cat-cert"
hosts:
- escape2023.mixlab.events
rules:
- host: escape2023.mixlab.events
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: escape2023-mixlab-events
port:
number: 8080
Loading…
Cancel
Save