Skip to content

Commit

Permalink
add ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed May 18, 2024
1 parent fbed58c commit 11ed483
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .k8s/base/ingress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: louper-ingress
spec:
rules:
- host: louper.dev
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: louper
port:
number: 3000
ingressClassName: nginx
1 change: 1 addition & 0 deletions .k8s/base/kustomization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ kind: Kustomization
resources:
- deployment.yml
- service.yml
- ingress.yml
20 changes: 20 additions & 0 deletions .k8s/staging/ingress-patch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# apiVersion: networking.k8s.io/v1
# kind: Ingress
# metadata:
# name: louper-ingress
# spec:
# rules:
# - host: louper.dev
# http:
# paths:
# - path: /
# pathType: Prefix
# backend:
# service:
# name: louper
# port:
# number: 3000
# ingressClassName: nginx
- op: replace
path: /spec/rules/0/host
value: staging.louper.dev
4 changes: 4 additions & 0 deletions .k8s/staging/kustomization.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ patches:
kind: Deployment
name: louper-deployment
path: deployment-patch.yml
- target:
kind: Ingress
name: louper-ingress
path: ingress-patch.yml
transformers:
- |-
apiVersion: builtin
Expand Down

0 comments on commit 11ed483

Please # to comment.