Minikube Operations: Difference between revisions
Jump to navigation
Jump to search
Line 72: | Line 72: | ||
=Enable Pod Security Policies= | =Enable Pod Security Policies= | ||
{{External|https://minikube.sigs.k8s.io/docs/tutorials/using_psp/}} | {{External|https://minikube.sigs.k8s.io/docs/tutorials/using_psp/}} | ||
<syntaxhighlight lang='bash'> | |||
minikube stop | |||
minikube start --extra-config=apiserver.enable-admission-plugins=PodSecurityPolicy --addons=pod-security-policy | |||
</syntaxhighlight lang='bash'> |
Revision as of 05:08, 3 September 2020
External
Internal
Overview
Administration is done with minikube
.
Start
minikube start
minikube v1.12.3 on Darwin 10.14.6
✨ Automatically selected the docker driver
👍 Starting control plane node minikube in cluster minikube
🚜 Pulling base image ...
💾 Downloading Kubernetes v1.18.3 preload ...
> preloaded-images-k8s-v5-v1.18.3-docker-overlay2-amd64.tar.lz4: 510.91 MiB
🔥 Creating docker container (CPUs=2, Memory=8100MB) ...
🐳 Preparing Kubernetes v1.18.3 on Docker 19.03.8 ...
🔎 Verifying Kubernetes components...
🌟 Enabled addons: default-storageclass, storage-provisioner
🏄 Done! kubectl is now configured to use "minikube"
❗ /usr/local/bin/kubectl is version 1.16.6-beta.0, which may be incompatible with Kubernetes 1.18.3.
💡 You can also use 'minikube kubectl -- get pods' to invoke a matching version
Start with Admission Controller Enabled
See [[]] below.
Status
minikube status
minikube
type: Control Plane
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured
Stop
minikube stop
✋ Stopping node "minikube" ...
🛑 Powering off "minikube" via SSH ...
🛑 1 nodes stopped.
Dashboard
minikube dashboard
Version
minikube version
Delete
minikube delete --all
Enable Pod Security Policies
<syntaxhighlight lang='bash'> minikube stop minikube start --extra-config=apiserver.enable-admission-plugins=PodSecurityPolicy --addons=pod-security-policy </syntaxhighlight lang='bash'>