-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path07-ingress.yaml
44 lines (43 loc) · 1.18 KB
/
07-ingress.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Optional: If you have a domain name, you can create an Ingress resource to expose your Ghost blog to the internet.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ghost-on-kubernetes-ingress
namespace: ghost-on-kubernetes
labels:
app: ghost-on-kubernetes
app.kubernetes.io/name: ghost-on-kubernetes-ingress
app.kubernetes.io/instance: ghost-on-kubernetes
app.kubernetes.io/version: '5.59'
app.kubernetes.io/component: ingress
app.kubernetes.io/part-of: ghost-on-kubernetes
spec:
ingressClassName: traefik # Or your ingress controller
tls:
- hosts:
- yourdomain.tld
# Optional:
# - www.yourdomain.tld
secretName: tls-secret
rules:
- host: yourdomain.tld
http:
paths:
- path: /
pathType: ImplementationSpecific
backend:
service:
name: ghost-on-kubernetes-service
port:
name: ghk8s
# Optional:
# - host: www.yourdomain.tld
# http:
# paths:
# - path: /
# pathType: ImplementationSpecific
# backend:
# service:
# name: ghost-on-kubernetes-service
# port:
# name: ghk8s