Skip to content

Add Docker-for-mac k8s specific provisioners for StorageClass #126

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 18, 2018

Conversation

StevenACoffman
Copy link
Contributor

@StevenACoffman StevenACoffman commented Jan 18, 2018

Docker for Mac is now shipping with support for both Docker Swarm and Kubernetes built-in. If you install the Edge version of docker, which there is a good walk through of the steps here.

However, the provisioner is slightly different, so I'm adding those here. I didn't update the documentation because it's pretty bleeding edge, so I'm not sure you want to advertise support yet. Not sure if it works with the outside service for instance.

If you've ever installed minikube then you'll have to switch out of that context into the DfM context otherwise kubectl will hang.

kubectl config use-context docker-for-desktop
kubectl apply -f configure/docker-storageclass-zookeeper.yml
kubectl apply -f configure/docker-storageclass-broker.yml
kubectl apply -f zookeeper/00namespace.yml
kubectl apply -f rbac-namespace-default/
kubectl apply -f zookeeper/
kubectl apply -f kafka/
kubectl apply -f kafka/test/

# wait for six minutes or so

kubectl get pods -l test-type=readiness --namespace=test-kafka
NAME                    READY     STATUS    RESTARTS   AGE
kafkacat-b8rl2          3/3       Running   0          25m
produce-consume-zvtnf   3/3       Running   0          25m

Also, if you want to get to a familiar dashboard from Docker-for-mac:

kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
kubectl port-forward -n kube-system $(kubectl get pods -l k8s-app=kubernetes-dashboard -n kube-system -o jsonpath='{.items[*].metadata.name}') 8443:8443

Then open https://localhost:8443 (note the protocol) and you're open for business.

@solsson
Copy link
Contributor

solsson commented Jan 18, 2018

However, the provisioner is slightly different, so I'm adding those here. I didn't update the documentation because it's pretty bleeding edge, so I'm not sure you want to advertise support yet. Not sure if it works with the outside service for instance.

Makes sense. Let's merge the storage classes, and keep the discussion here for now.

@solsson solsson merged commit b6a1004 into Yolean:master Jan 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants