This commit is contained in:
@@ -42,15 +42,40 @@ spec:
|
|||||||
targetPort: 80
|
targetPort: 80
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
---
|
---
|
||||||
|
# apiVersion: networking.k8s.io/v1
|
||||||
|
# kind: Ingress
|
||||||
|
# metadata:
|
||||||
|
# namespace: alex-elixir-demo
|
||||||
|
# name: frontend
|
||||||
|
# spec:
|
||||||
|
# ingressClassName: nginx
|
||||||
|
# rules:
|
||||||
|
# - host: elixir-demo.alex-kube.duckdns.org
|
||||||
|
# http:
|
||||||
|
# paths:
|
||||||
|
# - path: /
|
||||||
|
# pathType: Prefix
|
||||||
|
# backend:
|
||||||
|
# service:
|
||||||
|
# name: frontend
|
||||||
|
# port:
|
||||||
|
# number: 80
|
||||||
|
# ---
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
namespace: alex-elixir-demo
|
namespace: alex-elixir-demo
|
||||||
name: frontend
|
name: frontend
|
||||||
|
annotations:
|
||||||
|
cert-manager.io/cluster-issuer: cloudflare-issuer
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
|
tls:
|
||||||
|
- hosts:
|
||||||
|
- elixir-demo.alexmickelson.guru
|
||||||
|
secretName: elixir-demo-tls
|
||||||
rules:
|
rules:
|
||||||
- host: elixir-demo.alex-kube.duckdns.org
|
- host: elixir-demo.alexmickelson.guru
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
Reference in New Issue
Block a user