Created
March 28, 2019 14:55
-
-
Save xeviknal/2170672a62e51a4c4ca78b291b3aad61 to your computer and use it in GitHub Desktop.
Install knative into minishift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Enable admission controller webhooks | |
# The configuration stanzas below look weird and are just to workaround for: | |
# https://bugzilla.redhat.com/show_bug.cgi?id=1635918 | |
minishift openshift config set --target=kube --patch '{ | |
"admissionConfig": { | |
"pluginConfig": { | |
"ValidatingAdmissionWebhook": { | |
"configuration": { | |
"apiVersion": "apiserver.config.k8s.io/v1alpha1", | |
"kind": "WebhookAdmission", | |
"kubeConfigFile": "/dev/null" | |
} | |
}, | |
"MutatingAdmissionWebhook": { | |
"configuration": { | |
"apiVersion": "apiserver.config.k8s.io/v1alpha1", | |
"kind": "WebhookAdmission", | |
"kubeConfigFile": "/dev/null" | |
} | |
} | |
} | |
} | |
}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
minishift profile set kiali | |
minishift config set memory 12GB | |
minishift config set cpus 3 | |
minishift config set vm-driver kvm | |
minishift config set image-caching true | |
minishift config set openshift-version v3.11.0 | |
minishift addon enable admin-user | |
minishift addon enable admissions-webhook | |
minishift addon disable anyuid | |
minishift start | |
minishift ssh -- sudo setenforce 0 | |
sleep 20 | |
minishift addon apply anyuid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment