For some reason some of the default feature gates are not turned on in rancher.
So deploying Kubeflow or any workload that uses Istio version 1.3.1 with SDS enabled you need to enable TokenRequest and TokenRequestProjection.
- istio-pilot and everything dependent will fail to start in Kubeflow deployment.
- pod events / log similar to "MountVolume.SetUp failed for volume "istio-token" : failed to fetch token: the API server does not have TokenRequest endpoints enabled"
How to prepare Rancher for Istio 1.3 and up (tested on 2.x)
Option 1, use server configuration file (yaml edit)
- Login to your Rancher2.0 UI
- Select relevant cluster
- Click on options and edit
- On cluster options choose "Cluster Options" and edit ad YAML
- go to: "kube-api:"
and add :
- Save the file / configuration
Cluster will reconfigure.
Option 2, feature gates flags via Rancher API
Follow the instructions in this thread.
Post a Comment