Skip to content

Commit

Permalink
replcaed deprecated 'kubectl run'
Browse files Browse the repository at this point in the history
swapped kubectl run for kubectl create -f - against stable api
  • Loading branch information
sluetze authored Nov 20, 2018
1 parent 0b05bbb commit ff346cd
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions content/en/docs/setup/minikube.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,26 @@ Running pre-create checks...
Creating machine...
Starting local Kubernetes cluster...

$ kubectl run hello-minikube --image=k8s.gcr.io/echoserver:1.10 --port=8080
$ cat << EOF | kubectl create -f -
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-minikube
spec:
selector:
matchLabels:
app: hello-minikube
template:
metadata:
labels:
app: hello-minikube
spec:
containers:
- name: hello-minikube
image: k8s.gcr.io/echoserver:1.10
ports:
- containerPort: 8080
EOF
deployment.apps/hello-minikube created
$ kubectl expose deployment hello-minikube --type=NodePort
service/hello-minikube exposed
Expand Down Expand Up @@ -409,4 +428,4 @@ For more information about Minikube, see the [proposal](https://git.k8s.io/commu

Contributions, questions, and comments are all welcomed and encouraged! Minikube developers hang out on [Slack](https://kubernetes.slack.com) in the #minikube channel (get an invitation [here](http://slack.kubernetes.io/)). We also have the [kubernetes-dev Google Groups mailing list](https://groups.google.com/forum/#!forum/kubernetes-dev). If you are posting to the list please prefix your subject with "minikube: ".

{{% /capture %}}
{{% /capture %}}

0 comments on commit ff346cd

Please sign in to comment.