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