Basic Kubernetes infrastructure; deploying a webapp and a mongo-db on a minikube cluster node.
ng 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions15
README
@@ -1,15 +0,0 @@
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
echo "$(cat kubectl.sha256) kubectl" | sha256sum --check
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
kubectl version --client
kubectl version --client --output=yaml
minikube start –driver=docker
kubectl apply -f mongo-config.yaml
kubectl apply -f mongo-secret.yaml
kubectl apply -f mongo.yaml
kubectl apply -f webapp.yaml
minikube ip
or
kubectl get node -o wide
kubectl get <all|configmap|secret|pod|service>
kubectl describe service <name of service. e.g. webapp-service>
kubectl logs mongo-deployment-85d45f7888-gjvf4 //log of actions on a module
kubectl logs mongo-deployment-85d45f7888-gjvf4 -f //streamed log of a module