Merge pull request #2409 from cjlarose/add-deploy-instructions-for-docker-for-mac
Add deployment instructions for Docker for Mac (Edge)
This commit is contained in:
commit
0b17e31114
2 changed files with 41 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
- [Install without RBAC roles](#install-without-rbac-roles)
|
- [Install without RBAC roles](#install-without-rbac-roles)
|
||||||
- [Install with RBAC roles](#install-with-rbac-roles)
|
- [Install with RBAC roles](#install-with-rbac-roles)
|
||||||
- [Custom Provider](#custom-provider)
|
- [Custom Provider](#custom-provider)
|
||||||
|
- [Docker for Mac](#docker-for-mac)
|
||||||
- [minikube](#minikube)
|
- [minikube](#minikube)
|
||||||
- [AWS](#aws)
|
- [AWS](#aws)
|
||||||
- [GCE - GKE](#gce---gke)
|
- [GCE - GKE](#gce---gke)
|
||||||
|
@ -62,6 +63,28 @@ curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/wi
|
||||||
|
|
||||||
There are cloud provider specific yaml files.
|
There are cloud provider specific yaml files.
|
||||||
|
|
||||||
|
### Docker for Mac
|
||||||
|
|
||||||
|
Kubernetes is available for Docker for Mac's Edge channel. Switch to the [Edge
|
||||||
|
channel][edge] and [enable Kubernetes][enable].
|
||||||
|
|
||||||
|
[edge]: https://docs.docker.com/docker-for-mac/install/
|
||||||
|
[enable]: https://docs.docker.com/docker-for-mac/#kubernetes
|
||||||
|
|
||||||
|
Patch the nginx ingress controller deployment to add the flag `--publish-service`
|
||||||
|
|
||||||
|
```console
|
||||||
|
kubectl patch deployment -n ingress-nginx nginx-ingress-controller --type='json' \
|
||||||
|
--patch="$(curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/publish-service-patch.yaml)"
|
||||||
|
```
|
||||||
|
|
||||||
|
Create a service
|
||||||
|
|
||||||
|
```console
|
||||||
|
curl https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/docker-for-mac/service.yaml \
|
||||||
|
| kubectl apply -f -
|
||||||
|
```
|
||||||
|
|
||||||
### minikube
|
### minikube
|
||||||
|
|
||||||
For standard usage:
|
For standard usage:
|
||||||
|
|
18
deploy/provider/docker-for-mac/service.yaml
Normal file
18
deploy/provider/docker-for-mac/service.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
kind: Service
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: ingress-nginx
|
||||||
|
namespace: ingress-nginx
|
||||||
|
labels:
|
||||||
|
app: ingress-nginx
|
||||||
|
spec:
|
||||||
|
type: LoadBalancer
|
||||||
|
selector:
|
||||||
|
app: ingress-nginx
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
port: 80
|
||||||
|
targetPort: http
|
||||||
|
- name: https
|
||||||
|
port: 443
|
||||||
|
targetPort: https
|
Loading…
Reference in a new issue