diff --git a/README.md b/README.md index 17fc60e..ab0fa19 100644 --- a/README.md +++ b/README.md @@ -69,4 +69,44 @@ OpenShift Console URL : http://openshift-console-kube-system.apps.127.0.0.1 OpenShift / Kubectl Access : podman exec -it microshift /bin/bash ########################################################################## ``` -> Note : At my homelab it takes about 5 Minutes to complete, your milage may vary \ No newline at end of file +> Note : At my homelab it takes about 5 Minutes to complete, your milage may vary + +## Kube Config File +* Create ~/.kube/config file with the content of the following +```bash +podman exec -it microshift /bin/bash +cat /var/lib/microshift/resources/kubeadmin/kubeconfig +``` + +## Expose API +```yaml +kind: Route +apiVersion: route.openshift.io/v1 +metadata: + annotations: + openshift.io/host.generated: 'true' + selfLink: /apis/route.openshift.io/v1/namespaces/default/routes/api + name: api + namespace: default + labels: + component: apiserver + provider: kubernetes +spec: + host: api-default.cluster.local + to: + kind: Service + name: kubernetes + weight: 100 + port: + targetPort: https + wildcardPolicy: None +status: + ingress: + - host: api-default.apps.127.0.0.1.nip.io + routerName: default + conditions: + - type: Admitted + status: 'True' + wildcardPolicy: None + +``` diff --git a/macos_create_microshift_plus.sh b/macos_create_microshift_plus.sh index 43d1c45..1fb825e 100755 --- a/macos_create_microshift_plus.sh +++ b/macos_create_microshift_plus.sh @@ -3,13 +3,13 @@ start=$(date +'%s') echo "Creating Podman Machine..." -podman machine init --cpus 4 --memory 6000 &> /dev/null +podman machine init --cpus 4 --memory 6000 --rootful &> /dev/null echo "Starting Podman Machine..." podman machine start &> /dev/null -echo "Setting rootful mode..." -podman machine set --rootful +#echo "Setting rootful mode..." +#podman machine set --rootful echo "Launching Microshift..." podman run -d --name microshift --privileged -v microshift-data:/var/lib -p 6443:6443 -p 80:80 -p 8080:8080 quay.io/microshift/microshift-aio:latest &> /dev/null