otomi-core icon indicating copy to clipboard operation
otomi-core copied to clipboard

Deploy Otomi on GKE cluster via GitHub Actions

Open ElderMatt opened this issue 11 months ago • 8 comments

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

ElderMatt avatar Mar 11 '24 10:03 ElderMatt

this command will remove the monitoring stack

gcloud container clusters update $CLUSTER_NAME --disable-managed-prometheus --region=$COMPUTE_REGION

dennisvankekem avatar Mar 11 '24 12:03 dennisvankekem

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

dennisvankekem avatar Mar 11 '24 12:03 dennisvankekem

we want a static service account that we can use to create google resources and set DNS

dennisvankekem avatar Mar 11 '24 12:03 dennisvankekem

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

dennisvankekem avatar Mar 11 '24 12:03 dennisvankekem

--project=otomi-cloud

j-zimnowoda avatar Mar 12 '24 15:03 j-zimnowoda

Hey team! Please add your planning poker estimate with Zenhub @Ani1357 @dennisvankekem @ElderMatt @ferruhcihan @merll

j-zimnowoda avatar Mar 15 '24 07:03 j-zimnowoda

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.

j-zimnowoda avatar Mar 15 '24 08:03 j-zimnowoda

Thanks @dennisvankekem for sharing shell snippets!

j-zimnowoda avatar Mar 15 '24 08:03 j-zimnowoda