diff --git a/examples/kubernetes-multi-service/README.md b/examples/kubernetes-multi-service/README.md new file mode 100644 index 0000000000000..dd9944f4b227e --- /dev/null +++ b/examples/kubernetes-multi-service/README.md @@ -0,0 +1,77 @@ +--- +name: Develop multiple services in Kubernetes +description: Get started with Kubernetes development. +tags: [cloud, kubernetes] +--- + +# Authentication + +This template has several ways to authenticate to a Kubernetes cluster. + +## kubeconfig (Coder host) + +If the Coder host has a local `~/.kube/config`, this can be used to authenticate with Coder. Make sure this is on the same user running the `coder` service. + +## ServiceAccount + +Create a ServiceAccount and role on your cluster to authenticate your template with Coder. + +1. Run the following command on a device with Kubernetes context: + + ```sh + CODER_NAMESPACE=default + kubectl apply -n $CODER_NAMESPACE -f - <