60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
|
---
|
||
|
apiVersion: networking.k8s.io/v1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: signs
|
||
|
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: signs.k-space.ee
|
||
|
http:
|
||
|
paths:
|
||
|
- pathType: Prefix
|
||
|
path: "/"
|
||
|
backend:
|
||
|
service:
|
||
|
name: signs-webpage
|
||
|
port:
|
||
|
number: 80
|
||
|
tls:
|
||
|
- hosts:
|
||
|
- "*.k-space.ee"
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: signs-webpage
|
||
|
spec:
|
||
|
type: ClusterIP
|
||
|
selector:
|
||
|
app: signs-webpage
|
||
|
ports:
|
||
|
- protocol: TCP
|
||
|
port: 80
|
||
|
---
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: signs-webpage
|
||
|
labels:
|
||
|
app: signs-webpage
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: signs-webpage
|
||
|
replicas: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: signs-webpage
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: signs-webpage
|
||
|
image: harbor.k-space.ee/k-space/signs
|
||
|
ports:
|
||
|
- containerPort: 80
|