otomi-core
otomi-core copied to clipboard
Deploy Otomi on GKE cluster via GitHub Actions
Additions
- Add Google as cloud provider
- Need to remove the auto-added monitoring stack before Otomi is installed
Changes
- The Github workflow
integration.yaml
is getting too convoluted.- Separate Scaleways/DigitalOcean/Google Jobs from
integration.yaml
and put them into their own files and include them
- Separate Scaleways/DigitalOcean/Google Jobs from
this command will remove the monitoring stack
gcloud container clusters update $CLUSTER_NAME --disable-managed-prometheus --region=$COMPUTE_REGION
We can set DNS if we have a NS record from the main domain to google
DNS config
Create Cloud DNS Zone
Create a DNS zone which will contain the managed DNS records. If using your own domain that was registered with a third-party domain registrar, you should point your domain's name servers to the values under the nameServers
key. Please consult your registrar's documentation on how to do that. This tutorial will use example domain of example.com
.
gcloud dns managed-zones create $DNS_ZONE_NAME --dns-name $DOMAIN_NAME \
--description "Automatically managed zone by kubernetes.io/external-dns"
Make a note of the nameservers that were assigned to your new zone.
gcloud dns record-sets list \
--zone $DNS_ZONE_NAME --name $DOMAIN_NAME --type NS
we want a static service account that we can use to create google resources and set DNS
create cluster, note the
--logging NONE \
--monitoring NONE \
gcloud container clusters create $CLUSTER_NAME \
--enable-autoscaling \
--enable-network-policy \
--num-nodes 1 \
--min-nodes 1 \
--max-nodes 2 \
--machine-type $MACHINE_TYPE \
--logging NONE \
--monitoring NONE \
--region $COMPUTE_REGION
--project=otomi-cloud
Hey team! Please add your planning poker estimate with Zenhub @Ani1357 @dennisvankekem @ElderMatt @ferruhcihan @merll
I see a lot of options here but let's start small. Let's have just k8s cluster in google without monitoring stack. IMHO DNS zone is important but out of scope right now.
Thanks @dennisvankekem for sharing shell snippets!