1.

What kind of object do you create, when your dashboard like application, queries the Kubernetes API to get some data?

Answer»

You should be creating serviceAccount. A service account creates a token and TOKENS are stored inside a secret OBJECT. By default Kubernetes automatically mounts the default service account. However, we can disable this property by setting automountServiceAccountToken: false in our spec. ALSO, note each namespace will have a service account

apiVersion: v1 KIND: ServiceAccount metadata: name: my-sa automountServiceAccountToken: false


Discussion

No Comment Found

Related InterviewSolutions