A seed project to create an application deployment in this case I will use it to deploy the seed react project
- Create a cluster
$ gcloud container clusters create --preemptible --machine-type n1-standard-1 --max-nodes 3 [cluster_name]
- Deploy the sample google app
$ kubectl run web --image=gcr.io/google-samples/hello-app:1.0 --port=8080
- Create a service
$ kubectl expose deployment web --target-port=8080 --type=ClusterIP
- Traefik
- Create Traefik Role Bindings
$ kubectl apply -f traefik-rbac.yaml
- If you encounter an error you migh need to give your user access:
$ kubectl create clusterrolebinding cluster-admin-binding --clusterrole=cluster-admin --user=[[email protected]]
- Create Traefik DaemonSet
$
reference: Traefik