60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
|
---
|
||
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: ripe87-webpage
|
||
|
annotations:
|
||
|
kubernetes.io/ingress.class: traefik
|
||
|
traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
||
|
traefik.ingress.kubernetes.io/router.tls: "true"
|
||
|
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
|
||
|
spec:
|
||
|
rules:
|
||
|
- host: ripe87.k-space.ee
|
||
|
http:
|
||
|
paths:
|
||
|
- pathType: Prefix
|
||
|
path: "/"
|
||
|
backend:
|
||
|
service:
|
||
|
name: ripe87-webpage
|
||
|
port:
|
||
|
number: 80
|
||
|
tls:
|
||
|
- hosts:
|
||
|
- "*.k-space.ee"
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: ripe87-webpage
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
selector:
|
||
|
app: ripe87-webpage
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
port: 80
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: ripe87-webpage
|
||
|
labels:
|
||
|
app: ripe87-webpage
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: ripe87-webpage
|
||
|
replicas: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: ripe87-webpage
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: ripe87-webpage
|
||
|
image: harbor.k-space.ee/k-space/ripe87
|
||
|
ports:
|
||
|
- containerPort: 80
|