Skip to content

Commit

Permalink
Merge pull request #242 from boostcampwm-2024/nks-test
Browse files Browse the repository at this point in the history
chore: NKS ingress admin 문제로 인한 버그 수정
  • Loading branch information
dev-taewon-kim authored Dec 3, 2024
2 parents 5f26180 + d07d2ab commit a118ba3
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 15 deletions.
16 changes: 1 addition & 15 deletions .nks/ingress.yaml → .nks/be-ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,13 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: host-ingress
name: be-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/configuration-snippet: |
if ($host = "nks-fe.clovapatra.com") {
try_files $uri /index.html;
}
spec:
ingressClassName: nginx
rules:
- host: "nks-fe.clovapatra.com"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: clovapatra-fe-service
port:
number: 80
- host: "nks-game.clovapatra.com"
http:
paths:
Expand Down
21 changes: 21 additions & 0 deletions .nks/fe-ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: fe-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/try-files: "$uri /index.html"
spec:
ingressClassName: nginx
rules:
- host: "nks-fe.clovapatra.com"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: clovapatra-fe-service
port:
number: 80

0 comments on commit a118ba3

Please sign in to comment.