switch back to nginx-ingress

This commit is contained in:
gregory hendrickson
2023-01-27 15:28:28 -08:00
parent 367a60c5c7
commit e0f98eef0a
5 changed files with 141 additions and 59 deletions

View File

@@ -0,0 +1,21 @@
apiVersion: v1
kind: Service
metadata:
name: nginx-ingress-service
namespace: blog
spec:
selector:
app: ghost-blog
ports:
- name: http
port: 80
targetPort: 2368
- name: https
port: 443
targetPort: 2368
type: LoadBalancer
annotations:
# Enable SSL/TLS termination on the load balancer
service.beta.kubernetes.io/google-load-balancer-ssl-cert: "YOUR_SSL_CERT_NAME"
service.beta.kubernetes.io/google-load-balancer-backend-protocol: "HTTPS"
service.beta.kubernetes.io/google-load-balancer-frontend-protocol: "HTTPS"

View File

@@ -1,16 +0,0 @@
apiVersion: v1
kind: Service
metadata:
labels:
name: nginx-service
name: nginx-service
namespace: blog
spec:
ports:
- name: http-redirect
port: 80
- name: ghost-https
port: 443
selector:
app: nginx-proxy
type: LoadBalancer