diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml new file mode 100644 index 0000000000000000000000000000000000000000..6eb3c74b177a2a03f974a9689ccd8b4270d92d09 --- /dev/null +++ b/k8s/deployment.yaml @@ -0,0 +1,24 @@ +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 diff --git a/k8s/ingress.yaml b/k8s/ingress.yaml new file mode 100644 index 0000000000000000000000000000000000000000..726cdf574a25b0cdefb0cedcd173ce589fb3ab8f --- /dev/null +++ b/k8s/ingress.yaml @@ -0,0 +1,27 @@ +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 diff --git a/k8s/service.yaml b/k8s/service.yaml new file mode 100644 index 0000000000000000000000000000000000000000..05ecc3b2b25f811d7f8701cc0d20ec540fda289e --- /dev/null +++ b/k8s/service.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: Service +metadata: + name: linux-presentation + namespace: kszk-kepzes-site +spec: + selector: + app: linux-presentation + ports: + - port: 80 + targetPort: 80