Skip to content

Instantly share code, notes, and snippets.

@lucasponce
Created August 14, 2019 08:48
Show Gist options
  • Save lucasponce/4f9812ceb4443000f8a4185ae1811240 to your computer and use it in GitHub Desktop.
Save lucasponce/4f9812ceb4443000f8a4185ae1811240 to your computer and use it in GitHub Desktop.
OC 3.11 with Istio upstream
# if running selinux
sudo setenforce 0
oc cluster up
oc login -u system:admin
oc adm policy add-cluster-role-to-user cluster-admin admin
oc login -u admin -p admin
oc adm policy add-scc-to-user anyuid -z istio-ingress-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z default -n istio-system
oc adm policy add-scc-to-user anyuid -z prometheus -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-egressgateway-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-citadel-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-ingressgateway-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-cleanup-old-ca-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-mixer-post-install-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-mixer-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-pilot-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-sidecar-injector-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-galley-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-cleanup-secrets-service-account -n istio-system
oc adm policy add-scc-to-user anyuid -z istio-security-post-install-account -n istio-system
# Assuming istio 1.2.2 untared in ~
for i in ~/istio-1.2.2/install/kubernetes/helm/istio-init/files/crd*yaml; do kubectl apply -f $i; done
oc apply -f ~/istio-1.2.2/install/kubernetes/istio-demo.yaml
oc expose service prometheus -n istio-system
oc expose service grafana -n istio-system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment