Skip to content
Snippets Groups Projects
Verified Commit 9488d474 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

Add k8s config

parent 2f94a87b
No related branches found
No related tags found
No related merge requests found
Pipeline #20979 passed
apiVersion: apps/v1
kind: Deployment
metadata:
name: linux-presentation
namespace: kszk-kepzes-site
spec:
selector:
matchLabels:
app: linux-presentation
template:
metadata:
labels:
app: linux-presentation
spec:
containers:
- name: linux-presentation
image: harbor.sch.bme.hu/kszk/linux-presentation:latest
resources:
limits:
memory: "64Mi"
ports:
- containerPort: 80
imagePullSecrets:
- name: harbor
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: 'true'
nginx.ingress.kubernetes.io/proxy-body-size: 20m
nginx.ingress.kubernetes.io/rewrite-target: /$2
name: linux-presentation
namespace: kszk-kepzes-site
spec:
rules:
- host: ujonc.kszk.bme.hu
http:
paths:
- path: /studies/linux(/|$)(.*)
pathType: Prefix
backend:
service:
name: linux-presentation
port:
number: 80
tls:
- hosts:
- ujonc.kszk.bme.hu
secretName: kszkepzes-cert
apiVersion: v1
kind: Service
metadata:
name: linux-presentation
namespace: kszk-kepzes-site
spec:
selector:
app: linux-presentation
ports:
- port: 80
targetPort: 80
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment