Added configurations for deploying Ghost blog on Kubernetes using MySQL and nginx-proxy. Included resource limits for ghost-blog-deployment and mysql-deployment.yaml, created ingress-service.yaml for nginx-proxy with https and http, and added ghost-blog-service.yaml and mysql-service.yaml for connecting the Ghost blog app to the MySQL server. Also added a namespace 'blog' for better organization of resources.

This commit is contained in:
gregory hendrickson
2023-01-26 00:43:29 -08:00
parent 9436402467
commit 658c77d672
6 changed files with 90 additions and 48 deletions

View File

@@ -0,0 +1,37 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ghost-blog-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
kubernetes.io/ingress.class: nginx
cert-manager.io/cluster-issuer: letsencrypt-prod
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