This commit is contained in:
gregory hendrickson
2023-01-26 12:58:31 -08:00
parent e26a5e58b4
commit 17229ee237
2 changed files with 6 additions and 7 deletions

View File

@@ -26,7 +26,8 @@ kubectl apply -f services/ghost-blog-service.yaml
kubectl apply -f services/mysql-service.yaml kubectl apply -f services/mysql-service.yaml
kubectl apply -f services/traefik-proxy-service.yaml kubectl apply -f services/traefik-proxy-service.yaml
kubectl apply -f services/LoadBalancer-traefik.yaml
kubectl apply -f services/ingress-service.yaml
kubectl apply -f ~/config-map_secrets/ghost-blog-config-map.yaml kubectl apply -f ~/config-map_secrets/ghost-blog-config-map.yaml
kubectl apply -f ~/config-map_secrets/ghost-blog-secrets.yaml kubectl apply -f ~/config-map_secrets/ghost-blog-secrets.yaml
@@ -35,7 +36,6 @@ kubectl apply -f ~/config-map_secrets/mysql-secrets.yaml
kubectl apply -f services/ingress-service.yaml
This will create the necessary resources in the cluster, including a deployment for the Ghost app, a service for connecting to the MySQL server, and an ingress service for routing traffic to the Ghost app via the nginx-proxy with https and http. This will create the necessary resources in the cluster, including a deployment for the Ghost app, a service for connecting to the MySQL server, and an ingress service for routing traffic to the Ghost app via the nginx-proxy with https and http.

View File

@@ -5,9 +5,8 @@ metadata:
namespace: blog namespace: blog
spec: spec:
selector: selector:
app: mysql app: ghost-blog
tier: mysql
ports: ports:
- name: mysql - port: 3306
port: 3306 clusterIP: None
targetPort: 3306
type: ClusterIP