feat: Ingress + cert-manager + HTTPS 설정
Some checks failed
Build and Push Images / build-backend (push) Has been cancelled

This commit is contained in:
qorgh529
2026-04-10 20:38:31 +09:00
parent 08f345fad7
commit dedb7af440
3 changed files with 42 additions and 2 deletions

View File

@@ -34,10 +34,9 @@ metadata:
name: frontend-service name: frontend-service
namespace: web-portal namespace: web-portal
spec: spec:
type: NodePort type: ClusterIP
selector: selector:
app: frontend app: frontend
ports: ports:
- port: 80 - port: 80
targetPort: 80 targetPort: 80
nodePort: 30090

14
k8s/07-clusterissuer.yaml Executable file
View File

@@ -0,0 +1,14 @@
apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: cyanburu@gmail.com
privateKeySecretRef:
name: letsencrypt-prod-key
solvers:
- http01:
ingress:
class: nginx

27
k8s/08-ingress.yaml Executable file
View File

@@ -0,0 +1,27 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web-portal-ingress
namespace: web-portal
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-read-timeout: "60"
nginx.ingress.kubernetes.io/proxy-connect-timeout: "10"
spec:
ingressClassName: nginx
tls:
- hosts:
- cyanburu.com
secretName: web-portal-tls
rules:
- host: cyanburu.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: frontend-service
port:
number: 80