Skip to content
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

Update macos_create_microshift_plus.sh #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
> 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

```
6 changes: 3 additions & 3 deletions macos_create_microshift_plus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down