Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy Otomi on GKE cluster via GitHub Actions #1553

Open
ElderMatt opened this issue Mar 11, 2024 · 8 comments
Open

Deploy Otomi on GKE cluster via GitHub Actions #1553

ElderMatt opened this issue Mar 11, 2024 · 8 comments

Comments

@ElderMatt
Copy link
Contributor

ElderMatt commented Mar 11, 2024

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
@dennisvankekem
Copy link
Contributor

dennisvankekem commented Mar 11, 2024

this command will remove the monitoring stack

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

@dennisvankekem
Copy link
Contributor

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
Copy link
Contributor

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

@dennisvankekem
Copy link
Contributor

dennisvankekem commented Mar 11, 2024

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

@j-zimnowoda j-zimnowoda added on hold Waiting for another party to do something and removed on hold Waiting for another party to do something labels Mar 11, 2024
@j-zimnowoda j-zimnowoda changed the title Change release pipeline Deploy Otomi on GKE cluster via GitHub Actions Mar 12, 2024
@j-zimnowoda
Copy link
Contributor

--project=otomi-cloud

@j-zimnowoda
Copy link
Contributor

@j-zimnowoda
Copy link
Contributor

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
Copy link
Contributor

Thanks @dennisvankekem for sharing shell snippets!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants