document how to run this chart in minikube on MacOS
Closed this issue ยท 4 comments
wkloucek commented
We couldn't get it running without #106
On Linux I need https://minikube.sigs.k8s.io/docs/handbook/addons/ingress-dns/ or #106 to be able to log in.
case0sh commented
Steps to use oCIS with minikube on mac (arm64/amd64)
Regarding this issue: The ingress and ingress-dns add-ons are currently only supported on Linux. See kubernetes/minikube#7393
Install dependencies
brew cask install docker
brew install minikube
Start minikube
โ minikube start
๐ minikube v1.31.2 on Darwin 13.4 (arm64)
โจ Automatically selected the docker driver
๐ Using Docker Desktop driver with root privileges
๐ Starting control plane node minikube in cluster minikube
๐ Pulling base image ...
โ minikube was unable to download gcr.io/k8s-minikube/kicbase:v0.0.40, but successfully downloaded docker.io/kicbase/stable:v0.0.40 as a fallback image
๐ฅ Creating docker container (CPUs=2, Memory=4000MB) ...
๐ณ Preparing Kubernetes v1.27.4 on Docker 24.0.4 ...
โช Generating certificates and keys ...
โช Booting up control plane ...
โช Configuring RBAC rules ...
๐ Configuring bridge CNI (Container Networking Interface) ...
๐ Verifying Kubernetes components...
โช Using image gcr.io/k8s-minikube/storage-provisioner:v5
๐ Enabled addons: storage-provisioner, default-storageclass
๐ Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
Mac requires additional configurations
Add domain name to hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 ocis.kube.owncloud.test # domain example
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
Add ingress addon to minikube
โ minikube addons enable ingress
๐ก ingress is an addon maintained by Kubernetes. For any concerns contact minikube on GitHub.
You can view the list of minikube maintainers at: https://github.com/kubernetes/minikube/blob/master/OWNERS
๐ก After the addon is enabled, please run "minikube tunnel" and your ingress resources would be available at "127.0.0.1"
โช Using image registry.k8s.io/ingress-nginx/controller:v1.8.1
โช Using image registry.k8s.io/ingress-nginx/kube-webhook-certgen:v20230407
โช Using image registry.k8s.io/ingress-nginx/kube-webhook-certgen:v20230407
๐ Verifying ingress addon...
๐ The 'ingress' addon is enabled
Start minikube tunnel
โ minikube tunnel
โ
Tunnel successfully started
๐ NOTE: Please do not close this terminal as this process must stay alive for the tunnel to be accessible ...
โ The service/ingress proxy requires privileged ports to be exposed: [80 443]
๐ sudo permission will be asked for it.
๐ Starting tunnel for service proxy.
Password:
wkloucek commented
What I do on Linux:
minikube start --addons=ingress,ingress-dns
- https://minikube.sigs.k8s.io/docs/handbook/addons/ingress-dns/#installation ->
4) (optional) Configure in-cluster DNS server to resolve local DNS names inside cluster
is mandatory in our case - add entries to
/etc/hosts
- install oCIS
wkloucek commented
@case0sh we need to expose hostAliases
as configuration for Mac users and add that to your oCIS install step
wkloucek commented
will be continued in owncloud/docs-ocis#621