{"id":20551613,"url":"https://github.com/do-community/pulumi-kubernetes","last_synced_at":"2026-04-11T23:45:09.354Z","repository":{"id":90798337,"uuid":"207891765","full_name":"do-community/pulumi-kubernetes","owner":"do-community","description":null,"archived":false,"fork":false,"pushed_at":"2019-09-11T20:00:05.000Z","size":3,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-16T17:00:52.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/do-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-09-11T19:35:08.000Z","updated_at":"2020-07-31T03:14:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"9522e885-cd70-4254-8008-48bdbb0aad54","html_url":"https://github.com/do-community/pulumi-kubernetes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-community%2Fpulumi-kubernetes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-community%2Fpulumi-kubernetes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-community%2Fpulumi-kubernetes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-community%2Fpulumi-kubernetes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/do-community","download_url":"https://codeload.github.com/do-community/pulumi-kubernetes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242157191,"owners_count":20081037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T02:32:27.803Z","updated_at":"2026-04-11T23:45:04.334Z","avatar_url":"https://github.com/do-community.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new)\n\n# DigitalOcean Kubernetes Cluster and Application\n\nThis example provisions a new DigitalOcean Kubernetes cluster, deploys a load-balanced application into it, and then optionally configures DigitalOcean DNS records to give the resulting application a stable domain-based URL.\n\n## Deploying the Example\n\n### Prerequisites\n\nTo follow this example, you will need:\n\n1. [Install Pulumi](https://www.pulumi.com/docs/reference/install/)\n1. [Register for a DigitalOcean Account](https://cloud.digitalocean.com/registrations/new)\n1. [Generate a DigitalOcean personal access token](https://www.digitalocean.com/docs/api/create-personal-access-token/)\n1. [Install `kubectl` for accessing your cluster](https://kubernetes.io/docs/tasks/tools/install-kubectl/)\n\nIf you want to configure the optional DigitalOcean DNS records at the end, you will also need:\n\n1. Obtain a domain name and [configure it to use DigitalOcean nameservers](https://www.digitalocean.com/community/tutorials/how-to-point-to-digitalocean-nameservers-from-common-domain-registrars)\n\n### Steps\n\nAfter cloning this repo, from this working directory, run these commands:\n\n1. Install the required Node.js packages:\n\n    This installs the dependent packages [needed](https://www.pulumi.com/docs/reference/how/) for our Pulumi program.\n\n    ```bash\n    $ npm install\n    ```\n\n1. Create a new Pulumi stack, which is an isolated deployment target for this example:\n\n    ```bash\n    $ pulumi stack init dev\n    ```\n\n1. Configure Pulumi to use your DigitalOcean personal access token:\n\n    ```bash\n    $ pulumi config set digitalocean:token \u003cYOUR_TOKEN_HERE\u003e --secret\n    ```\n\n1. (Optional) If you wish to use a custom domain name, configure it now:\n\n    ```bash\n    $ pulumi config set domainName \u003cYOUR_DOMAIN_NAME\u003e\n    ```\n\n1. Deploy your cluster, application, and optional DNS records by running `pulumi up`.\n\n   This command shows a preview of the resources that will be created and asks you\n   whether to proceed with the deployment. Select \"yes\" to perform the deployment.\n\n    ```bash\n    $ pulumi up\n    Updating (dev):\n\n         Type                                     Name        Status\n     +   pulumi:pulumi:Stack                      do-k8s-dev  created\n     +   └─ digitalocean:index:KubernetesCluster  do-cluster  created\n     +   ├─ pulumi:providers:kubernetes           do-k8s      created\n     +   ├─ kubernetes:apps:Deployment            do-app-dep  created\n     +   └─ kubernetes:core:Service               do-app-svc  created\n     +   ├─ digitalocean:index:Domain             do-domain        created\n     +   └─ digitalocean:index:DnsRecord          do-domain-cname  created\n\n    Outputs:\n     + kubeconfig: \"...\"\n     + ingressIp : \"157.230.199.202\"\n\n    Resources:\n        + 7 created\n\n    Duration: 6m5s\n\n    Permalink: https://app.pulumi.com/.../do-k8s/dev/updates/1\n    ```\n\n   Note that the entire deployment will typically take between 4-8 minutes.\n\n   As part of the update, you'll see some new objects in the output, including\n   a `Deployment` resource for the NGINX app, and a LoadBalancer `Service` to\n   publicly access NGINX, for example.\n\n1. After 3-5 minutes, your cluster will be ready, and the kubeconfig JSON you'll\n   use to connect to the cluster will be available as an output.\n\n   To access your cluster, save your `kubeconfig` stack output to a file and then\n   use that when running the `kubectl` command. For instance, this lists your pods:\n\n    ```bash\n    $ pulumi stack output kubeconfig \u003e kubeconfig\n    $ KUBECONFIG=./kubeconfig kubectl get pods\n    ```\n\n1. Pulumi understands which changes to a given cloud resource can be made in-place,\n   and which require replacement, and computes the minimally disruptive change to\n   achieve the desired state. Let's make a small change:\n\n    ```bash\n    $ pulumi config set appReplicaCount 7\n    ```\n\n   And then rerun `pulumi up`. Notice that it shows the preview of the changes,\n   including a diff of the values changed. Select \"yes\" to perform the update.\n\n1. From here, feel free to experiment a little bit. Once you've finished experimenting,\n   tear down your stack's resources by destroying and removing it:\n\n    ```bash\n    $ pulumi destroy --yes\n    $ pulumi stack rm --yes\n    ```\n\n   This not only removes the underlying DigitalOcean cloud resources, but also\n   deletes the stack and its history from Pulumi also.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-community%2Fpulumi-kubernetes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdo-community%2Fpulumi-kubernetes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-community%2Fpulumi-kubernetes/lists"}