https://github.com/stoix-dev/stoix-cloud-saver Skip to content Navigation Menu Toggle navigation Sign in * Product + GitHub Copilot Write better code with AI + Security Find and fix vulnerabilities + Actions Automate any workflow + Codespaces Instant dev environments + Issues Plan and track work + Code Review Manage code changes + Discussions Collaborate outside of code + Code Search Find more, search less Explore + All features + Documentation + GitHub Skills + Blog * Solutions By company size + Enterprises + Small and medium teams + Startups By use case + DevSecOps + DevOps + CI/CD + View all use cases By industry + Healthcare + Financial services + Manufacturing + Government + View all industries View all solutions * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} stoix-dev / stoix-cloud-saver Public * Notifications You must be signed in to change notification settings * Fork 0 * Star 12 12 stars 0 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights stoix-dev/stoix-cloud-saver main BranchesTags [ ] Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 76 Commits .github/workflows .github/workflows client client job_service job_service project-infra project-infra services-infra services-infra README.md README.md docker-compose.yml docker-compose.yml image-1.png image-1.png image-2.png image-2.png image.png image.png View all files Repository files navigation * README Pulumi Project Setup and Integration with DigitalOcean CLI (doctl) This document provides a step-by-step guide on how to start and set up a Pulumi project and integrate it with the DigitalOcean CLI (doctl) for managing infrastructure on DigitalOcean. Prerequisites Before you begin, ensure you have the following tools installed on your machine: * Pulumi CLI * Node.js (Required if using JavaScript/TypeScript for Pulumi) * Python (Required if using Python for Pulumi) * doctl (DigitalOcean CLI) * Git In our example we are using the typescript option Step 1: Install Pulumi Follow the official Pulumi installation guide to install Pulumi on your system. You can verify the installation by running: pulumi version Step 2: Set Up a New Pulumi Project in case you need mkdir my-pulumi-project cd my-pulumi-project pulumi new typescript Step 3: Install doctl https://docs.digitalocean.com/reference/doctl/ how-to/install/ doctl version STEP 4: Generate doctl token on the API section on Digital Ocean alt text alt text STEP 5: Export the token just generated: export DIGITALOCEAN_TOKEN="YOUR_TOKEN_HERE" STEP 6: Authenticate doctl with your Digital Ocean token just generated doctl auth init STEP 6.1: Authenticate with docker and digital ocean registry docker login -u "youruser" -p "yourtoken" registry.digitalocean.com STEP 7: Tag the image of your application: docker tag YOUR_IMAGE registry.digitalocean.com/YOUR_REGISTRY/YOUR_IMAGE STEP 8: Push your image to the Digital Ocean Doker Registry docker push registry.digitalocean.com/YOUR_REGISTRY/YOUR_IMAGE STEP 09: Go to the project infra repository and run the following commands to first create the cluster, make sure to have export the env for the digitlocean token e Kubeconfig path: To make sure we are using the right cluster versions run: doctl kubernetes options versions pulumi up doctl kubernetes cluster kubeconfig save the clusteName STEP 10: Run the following command to see if the current cluster is the same you created: kubectl config current-context STEP 11: run the following command to add this a secret to the cluster: kubectl create secret generic digitalocean-dns --from-literal=access-token="yourtoken" --namespace default Step 12: After creating the cluster secret responsible to verify the DNS you can go to the service-infra repo and run: pulumi up About No description, website, or topics provided. Resources Readme Activity Custom properties Stars 12 stars Watchers 1 watching Forks 0 forks Report repository Releases No releases published Packages 0 No packages published Languages * TypeScript 88.7% * Shell 8.4% * JavaScript 1.7% * Other 1.2% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.