- Use k8s @ Google Kubernetes Engine
- Aptomi comes with a script that can create a k8s cluster @ GKE for you
- Open Google Cloud Console
- Create a new project
- APIs & Services -> Dashboard -> Enable APIs and Services
- Google Kubernetes Engine API -> Enable
- Google Compute Engine API -> Enable
- Install Google Cloud SDK
curl https://sdk.cloud.google.com | bash
- Authenticate
gcloud auth login
- Set your project ID
gcloud config set project <YOUR_PROJECT_ID>
-
Run the provided script, which will create a k8s cluster via the GKE API:
curl https://raw.githubusercontent.com/Aptomi/aptomi/master/tools/demo-gke.sh | bash /dev/stdin up
-
Import it into Aptomi under name
k8s-example
:aptomictl login -u admin -p admin aptomictl gen cluster -n k8s-example -c demo-gke | aptomictl policy apply -f -
You are now ready to run our examples!
Example | Description |
---|---|
twitter-analytics | Twitter Analytics Application, multiple services, multi-cloud, based on Helm |
guestbook | K8S Guestbook Application, multi-cloud, based on K8S YAMLs |
After you are done with examples, it's a good idea to destroy the cluster so you don't continue to spend money with GKE:
curl https://raw.githubusercontent.com/Aptomi/aptomi/master/tools/demo-gke.sh | bash /dev/stdin down
If you want to delete all workloads from the cluster and start running examples from scratch, use can use:
curl https://raw.githubusercontent.com/Aptomi/aptomi/master/tools/demo-gke.sh | bash /dev/stdin cleanup