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

@@ -7,8 +7,9 @@ spec:
app: ghost-blog
ports:
- name: http
port: 2368
port: 80
targetPort: 2368
- name: https
port: 443
targetPort: 2368
type: ClusterIP

View File

@@ -1,11 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: mysql
name: mysql-service
spec:
selector:
app: mysql
ports:
- name: mysql
port: 3306
type: ClusterIP
targetPort: 3306
type: ClusterIP