The latest commit added the ghost-blog-service.yaml file, which includes the 'blog' namespace, and also support for both http and https ports and updated the configurations to include the namespace 'blog' across all the yaml files in the repository.

This commit is contained in:
gregory hendrickson
2023-01-26 01:11:43 -08:00
parent cfd4c4cbba
commit 3a00bf67a3
7 changed files with 87 additions and 72 deletions

View File

@@ -1,37 +1,31 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ghost-blog-ingress
name: ingress-service
namespace: blog
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
proxy_pass_request_headers on;
spec:
tls:
- hosts:
- example.com
secretName: example-com-tls
rules:
- host: example.com
http:
paths:
- path: /
pathType: Prefix
pathRewrite: /
backend:
service:
name: ghost-blog-service
port:
name: http
- host: example.com
http:
paths:
- path: /
pathType: Prefix
pathRewrite: /
backend:
service:
name: ghost-blog-service
port:
name: https
- host: $(VAR_HOST)
http:
paths:
- path: /
pathType: Prefix
pathRewrite: /ghost/
backend:
service:
name: ghost-blog-service
port:
name: http
path: /
tls:
- hosts:
- $(VAR_HOST)
secretName: $(SECRET_NAME)