Skip to content

Instantly share code, notes, and snippets.

@VineethReddy02
Created March 19, 2019 03:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VineethReddy02/e41f79a2a69a94d84b3234e7793b0a69 to your computer and use it in GitHub Desktop.
Save VineethReddy02/e41f79a2a69a94d84b3234e7793b0a69 to your computer and use it in GitHub Desktop.
vineeth@vineeth-Lenovo-Z51-70:~$ minikube start
πŸ˜„ minikube v0.34.1 on linux (amd64)
πŸ”₯ Creating virtualbox VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...
πŸ“Ά "minikube" IP address is 192.168.99.100
🐳 Configuring Docker as the container runtime ...
✨ Preparing Kubernetes environment ...
🚜 Pulling images required by Kubernetes v1.13.3 ...
πŸš€ Launching Kubernetes v1.13.3 using kubeadm ...
πŸ”‘ Configuring cluster permissions ...
πŸ€” Verifying component health .....
πŸ’— kubectl is now configured to use "minikube"
πŸ„ Done! Thank you for using minikube!
vineeth@vineeth-Lenovo-Z51-70:~$ kubectl get pods
No resources found.
vineeth@vineeth-Lenovo-Z51-70:~$ kubectl config get-contexts
CURRENT NAME CLUSTER AUTHINFO NAMESPACE
CLUSTER1 CLUSTER1 clusterUser_KUBE1_CLUSTER1
* minikube minikube minikube
vineeth@vineeth-Lenovo-Z51-70:~$ cd go/src/github.com/zalando/postgres-operator/
vineeth@vineeth-Lenovo-Z51-70:~/go/src/github.com/zalando/postgres-operator$ kubectl create -f manifests/configmap.yaml
configmap/postgres-operator created
vineeth@vineeth-Lenovo-Z51-70:~/go/src/github.com/zalando/postgres-operator$ kubectl create -f manifests/operator-service-account-rbac.yaml
serviceaccount/zalando-postgres-operator created
clusterrole.rbac.authorization.k8s.io/zalando-postgres-operator created
clusterrolebinding.rbac.authorization.k8s.io/zalando-postgres-operator created
vineeth@vineeth-Lenovo-Z51-70:~/go/src/github.com/zalando/postgres-operator$ kubectl create -f manifests/postgres-operator.yaml
deployment.apps/postgres-operator created
vineeth@vineeth-Lenovo-Z51-70:~/go/src/github.com/zalando/postgres-operator$ kubectl get pods
NAME READY STATUS RESTARTS AGE
postgres-operator-ff9459df6-kb79g 1/1 Running 0 26s
vineeth@vineeth-Lenovo-Z51-70:~/go/src/github.com/zalando/postgres-operator$ kubectl create namespace test
namespace/test created
vineeth@vineeth-Lenovo-Z51-70:~/go/src/github.com/zalando/postgres-operator$ kubectl config set-context minikube --namespace=test
Context "minikube" modified.
## I think you are unable to do this
vineeth@vineeth-Lenovo-Z51-70:~/go/src/github.com/zalando/postgres-operator$ kubectl create -f manifests/minimal-postgres-manifest.yaml
postgresql.acid.zalan.do/acid-minimal-cluster created
vineeth@vineeth-Lenovo-Z51-70:~/go/src/github.com/zalando/postgres-operator$ kubectl get pods --all-namespaces -o wide
NAMESPACE NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
default acid-minimal-cluster-0 1/1 Running 0 13m 172.17.0.5 minikube <none> <none>
default acid-minimal-cluster-1 1/1 Running 0 12m 172.17.0.6 minikube <none> <none>
default postgres-operator-ff9459df6-kb79g 1/1 Running 0 16m 172.17.0.4 minikube <none> <none>
kube-system coredns-86c58d9df4-cxmbk 1/1 Running 0 20m 172.17.0.3 minikube <none> <none>
kube-system coredns-86c58d9df4-rwkxr 1/1 Running 0 20m 172.17.0.2 minikube <none> <none>
kube-system etcd-minikube 1/1 Running 0 20m 10.0.2.15 minikube <none> <none>
kube-system kube-addon-manager-minikube 1/1 Running 0 19m 10.0.2.15 minikube <none> <none>
kube-system kube-apiserver-minikube 1/1 Running 0 19m 10.0.2.15 minikube <none> <none>
kube-system kube-controller-manager-minikube 1/1 Running 0 19m 10.0.2.15 minikube <none> <none>
kube-system kube-proxy-p566b 1/1 Running 0 20m 10.0.2.15 minikube <none> <none>
kube-system kube-scheduler-minikube 1/1 Running 0 19m 10.0.2.15 minikube <none> <none>
kube-system storage-provisioner 1/1 Running 0 20m 10.0.2.15 minikube <none> <none>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment