adding the label to gvisor and ingress, and documentation

pull/9400/head
Sharif Elgamal 2020-10-05 16:02:26 -07:00
parent 523acbc0f2
commit 7646be3d37
4 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,7 @@ metadata:
labels:
addonmanager.kubernetes.io/mode: Reconcile
kubernetes.io/minikube-addons: gvisor
gcp-auth-skip-secret: "true"
spec:
hostPID: true
containers:

View File

@ -34,6 +34,7 @@ metadata:
kubernetes.io/bootstrapping: rbac-defaults
app.kubernetes.io/part-of: kube-system
addonmanager.kubernetes.io/mode: Reconcile
gcp-auth-skip-secret: "true"
rules:
- apiGroups:
- ""

View File

@ -44,6 +44,7 @@ spec:
app.kubernetes.io/instance: ingress-nginx
app.kubernetes.io/component: controller
addonmanager.kubernetes.io/mode: Reconcile
gcp-auth-skip-secret: "true"
spec:
serviceAccountName: ingress-nginx
containers:

View File

@ -23,6 +23,10 @@ Add your manifest YAML's to the directory you have created:
`cp *.yaml deploy/addons/<addon name>`
Note: If the addon never needs authentication to GCP, then consider adding the following label to the pod's yaml:
`gcp-auth-skip-secret: "true"`
To make the addon appear in `minikube addons list`, add it to `pkg/addons/config.go`. Here is the entry used by the `registry` addon, which will work for any addon which does not require custom code:
```go