owncloud/ocis-charts

document how to run this chart in minikube on MacOS

Closed this issue ยท 4 comments

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.

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:

What I do on Linux:

@case0sh we need to expose hostAliases as configuration for Mac users and add that to your oCIS install step

will be continued in owncloud/docs-ocis#621