From 17229ee237b15d3c15780eee9216c5b4568e0f8c Mon Sep 17 00:00:00 2001 From: gregory hendrickson Date: Thu, 26 Jan 2023 12:58:31 -0800 Subject: [PATCH] update --- README.md | 4 ++-- services/mysql-service.yaml | 9 ++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 7d9ad36..56f9a2c 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,8 @@ kubectl apply -f services/ghost-blog-service.yaml kubectl apply -f services/mysql-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-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. diff --git a/services/mysql-service.yaml b/services/mysql-service.yaml index e25c180..549ef61 100644 --- a/services/mysql-service.yaml +++ b/services/mysql-service.yaml @@ -5,9 +5,8 @@ metadata: namespace: blog spec: selector: - app: mysql + app: ghost-blog + tier: mysql ports: - - name: mysql - port: 3306 - targetPort: 3306 - type: ClusterIP + - port: 3306 +clusterIP: None \ No newline at end of file