mirror of
https://github.com/ghndrx/blog-manifest.git
synced 2026-02-10 15:04:58 +00:00
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:
@@ -14,7 +14,16 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: mysql
|
||||
image: mysql:5.7
|
||||
image: mysql:latest
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
resources:
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "500m"
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "250m"
|
||||
env:
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
value: password
|
||||
@@ -23,13 +32,4 @@ spec:
|
||||
- name: MYSQL_USER
|
||||
value: ghost
|
||||
- name: MYSQL_PASSWORD
|
||||
value: password
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
volumeMounts:
|
||||
- name: mysql-data
|
||||
mountPath: /var/lib/mysql
|
||||
volumes:
|
||||
- name: mysql-data
|
||||
configMap:
|
||||
name: mysql-data
|
||||
value: ghostpassword
|
||||
|
||||
Reference in New Issue
Block a user