From ef83947a019a8beb64e0db363bab8775bb7f14cb Mon Sep 17 00:00:00 2001 From: mo khan Date: Tue, 30 Jun 2020 15:29:00 -0600 Subject: Add replicas --- README.md | 23 +++++++++++++++++++++++ webapp.yaml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 21401b2..6c83c3b 100644 --- a/README.md +++ b/README.md @@ -29,3 +29,26 @@ service/webapp exposed |-----------|--------|-------------|-----------------------------| 🎉 Opening service default/webapp in default browser... ``` + +```bash +モ kubectl get pods,services +NAME READY STATUS RESTARTS AGE +pod/webapp-c7c56d6dc-l2lkn 1/1 Running 0 6m16s + +NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE +service/kubernetes ClusterIP 10.96.0.1 443/TCP 13m +service/webapp LoadBalancer 10.99.200.252 8080:30420/TCP 4m14s + +モ kubectl delete deploy webapp +deployment.apps "webapp" deleted +モ kubectl delete service webapp +service "webapp" deleted +モ kubectl apply -f webapp.yaml +deployment.apps/webapp created + +モ virsh list --all + + Id Name State + ------------------------------ + 3 minikube running +``` diff --git a/webapp.yaml b/webapp.yaml index 0421b58..64cf795 100644 --- a/webapp.yaml +++ b/webapp.yaml @@ -6,7 +6,7 @@ metadata: app: webapp name: webapp spec: - replicas: 1 + replicas: 3 selector: matchLabels: app: webapp -- cgit v1.2.3