2023-05-15 17:51:16 -07:00

17 KiB
Raw Permalink Blame History

title, layout, url, meta_desc, aliases, hero, video_section, kubernetes_overview, superpowers, detail_sections, contact_us_form
title layout url meta_desc aliases hero video_section kubernetes_overview superpowers detail_sections contact_us_form
Kubernetes with Pulumi kubernetes /kubernetes Pulumi provides a single infrastructure as code workflow for Kubernetes and underlying infrastructure, using general-purpose languages and YAML.
/cloudnative
title body cta_text
Kubernetes Superpowers Pulumi lets you use a single infrastructure as code workflow for managing cloud native resources and infrastructure with software engineering. Eliminate complex YAML, JSON, and DSLs by using your favorite programming languages and automate deployments to AWS, Azure, Google Coud, and 100+ providers. See what's new
title subtitle youtube_video_id video_title
Pulumi In Action Watch how easy it is to set up Amazon Elastic Kubernetes Service (EKS) in 5 minutes with Pulumi. yA40w1ryMu8 Watch how easy it is to setup Amazon Elastic Kubernetes Service (EKS) in 5 minutes with Pulumi.
title description ide list cta cta_url
Cloud Native Engineering with Pulumi Pulumi streamlines Kubernetes cluster configuration, management, and app workload deployments to your clusters. With Pulumi for Kubernetes you can:
tabs
title language code
index.ts typescript import * as pulumi from "@pulumi/pulumi"; import * as kubernetes from "@pulumi/kubernetes"; // Create a K8s namespace. const devNamespace = new kubernetes.core.v1.Namespace("devNamespace", { metadata: { name: "dev", }, }); // Deploy the K8s nginx-ingress Helm chart into the created namespace. const nginxIngress = new kubernetes.helm.v3.Chart("nginx-ingress", { chart: "nginx-ingress", namespace: devNamespace.metadata.name, fetchOpts:{ repo: "https://charts.helm.sh/stable/", }, });
title language code
__main__.py python import pulumi_kubernetes as kubernetes # Create a K8s namespace. dev_namespace = kubernetes.core.v1.Namespace( "devNamespace", metadata={ "name": "dev", }) # Deploy the K8s nginx-ingress Helm chart into the created namespace. nginx_ingress = kubernetes.helm.v3.Chart( "nginx-ingress", kubernetes.helm.v3.ChartOpts( chart="nginx-ingress", namespace=dev_namespace.metadata["name"], fetch_opts=kubernetes.helm.v3.FetchOpts( repo="https://charts.helm.sh/stable/", ), ), )
title language code
main.go go package main import ( corev1 "github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/core/v1" "github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/helm/v3" metav1 "github.com/pulumi/pulumi-kubernetes/sdk/v2/go/kubernetes/meta/v1" "github.com/pulumi/pulumi/sdk/v2/go/pulumi" ) func main() { pulumi.Run(func(ctx *pulumi.Context) error { // Create a K8s namespace. ns, err := corev1.NewNamespace(ctx, "devNamespace", &corev1.NamespaceArgs{ Metadata: &metav1.ObjectMetaArgs{ Name: pulumi.String("dev"), }, }) if err != nil { return err } // Deploy the K8s nginx-ingress Helm chart into the created namespace. _, err = helm.NewChart(ctx, "nginx-ingress", helm.ChartArgs{ Chart: pulumi.String("nginx-ingress"), Namespace: ns.Metadata.ApplyT(func(metadata interface{}) string { return *metadata.(*metav1.ObjectMeta).Name }).(pulumi.StringOutput), FetchArgs: helm.FetchArgs{ Repo: pulumi.String("https://charts.helm.sh/stable/"), }, }) if err != nil { return err } return nil }) }
title language code
MyStack.cs csharp using Pulumi; using Kubernetes = Pulumi.Kubernetes; class MyStack : Stack { public MyStack() { // Create a K8s namespace. var devNamespace = new Kubernetes.Core.V1.Namespace("devNamespace", new Kubernetes.Types.Inputs.Core.V1.NamespaceArgs { Metadata = new Kubernetes.Types.Inputs.Meta.V1.ObjectMetaArgs { Name = "dev", }, }); // Deploy the K8s nginx-ingress Helm chart into the created namespace. var nginx = new Kubernetes.Helm.V3.Chart("nginx-ingress", new Kubernetes.Helm.ChartArgs { Chart = "nginx-ingress", Namespace = devNamespace.Metadata.Apply(x => x.Name), FetchOptions = new Kubernetes.Helm.ChartFetchArgs { Repo = "https://charts.helm.sh/stable/" }, }); } }
title language code
Main.java java package com.pulumi.example.infra; import com.pulumi.Context; import com.pulumi.Exports; import com.pulumi.Pulumi; import com.pulumi.kubernetes.core_v1.Namespace; import com.pulumi.kubernetes.core_v1.NamespaceArgs; import com.pulumi.kubernetes.meta_v1.inputs.ObjectMetaArgs; import com.pulumi.kubernetes.helm.sh_v3.Release; import com.pulumi.kubernetes.helm.sh_v3.ReleaseArgs; import com.pulumi.kubernetes.helm.sh_v3.inputs.RepositoryOptsArgs; public class Main { public static void main(String[] args) { Pulumi.run(Main::stack); } private static Exports stack(Context ctx) { var devNamespace = new Namespace("devNamespace", NamespaceArgs.builder() .metadata(ObjectMetaArgs.builder() .name("dev") .build()) .build()); var nginxIngress = new Release("nginx-ingress", ReleaseArgs.builder() .chart("nginx-ingress) .namespace(devNamespace.metadata.name) .repositoryOpts(RepositoryOptsArgs.builder() .repo("https://charts.helm.sh/stable/") .build()) .build()); return ctx.exports(); } }
title language code
Pulumi.yaml yaml name: simple-kubernetes runtime: yaml resources: devNamespace: type: kubernetes:core:Namespace properties: metadata: name: "dev" nginxIngress: type: kubernetes:helm.sh:Chart properties: chart: "nginx-ingress" namespace: ${devNamespace.metadata.name} fetchOpts: repo: "https://charts.helm.sh/stable/"
Manage Kubernetes clusters on all major cloud providers.
Increase productivity using the full ecosystem of dev tools such as IDE auto-completion, type & error checking, linting, refactoring, and test frameworks to validate Kubernetes clusters, app workloads, or both.
Automate Kubernetes deployments with CI/CD integrations for [Flux](/blog/pulumi-kubernetes-new-2022/#integration-with-flux-sources), [Spinnaker](/blog/unlocking-spinnaker-with-pulumi/), [Octopus](/blog/deploying-with-octopus-and-pulumi/), [GitHub Actions](/blog/continuous-delivery-to-any-cloud-using-github-actions-and-pulumi/), [GitLab](/blog/continuous-delivery-with-gitlab-and-pulumi-on-amazon-eks/), [Azure DevOps](/blog/cd-made-easy-with-pulumi-and-azure-pipelines/) and [more](/docs/using-pulumi/continuous-delivery/).
Seamlessly manage both Kubernetes and cloud resources using GitOps with the [Pulumi Kubernetes Operator](/docs/using-pulumi/continuous-delivery/pulumi-kubernetes-operator/).
Use Kubernetes [Server-Side Apply](/registry/packages/kubernetes/how-to-guides/managing-resources-with-server-side-apply/) to safely manage shared Kubernetes resources with Pulumi and your existing controllers.
Learn More /blog/new-kubernetes-superpowers
title cta cta_url icon_type description
Run On Any Cloud Learn more /docs/clouds/kubernetes/get-started/ cloud Support for all clouds including Amazon Elastic Kubernetes Service (EKS), Azure Kubernetes Service (AKS), Google Kubernetes Engine (GKE), DigitalOcean Kubernetes (DOKS), and more, with dozens of integrations with popular infrastructure service providers.
title cta cta_url icon_type description
Reduce Provisioning Time Learn more /docs/clouds/kubernetes/get-started/ provisioning With Pulumi you are able to take advantage of the features of programming languages, helping you reduce boilerplate code and ultimately ship Kubernetes infrastructure and applications faster with greater consistency.
title cta cta_url icon_type description
Automate Delivery Learn more /docs/using-pulumi/continuous-delivery/ delivery You can integrate Pulumi directly with your favorite CI/CD and SCM systems to continuously deliver Kubernetes infrastructure and applications. Improve the velocity and visibility into your deployments from simple to complex global environments.
title cta cta_url icon_type description
Smart Architecture Learn more /docs/concepts/ architecture YAML and templated DSLs force you to write the same boilerplate code over and over. Pulumis Kubernetes library allows you to codify those patterns and best practices so you can stop reinventing the wheel and start inventing the platforms of the future.
title cta cta_url icon_type description
Be Proactive, Not Reactive Learn more /docs/using-pulumi/crossguard policy When you enable Pulumi's Policy as Code feature, you instantly gain the power to prevent mistakes from being deployed. Enforce security, compliance, cost controls, and best practices using policies defined in modern languages.
title cta cta_url icon_type description
Reduce Deployment Complexity Learn more /docs/using-pulumi/testing testing Deploying untested code can lead to some unexpected results. Pulumi lets you take advantage of common tools, frameworks, and techniques to unit, integration, and property test your Kubernetes infrastructure. Ensure your infrastructure is correct before and after deployment.
title description cta cta_url items
Continue using the tools you love Pulumi has first-class support for popular Kubernetes tools, such as Helm, Kustomize, YAML, Secret Managers, Open Policy Agent (OPA), Custom Resource Definitions (CRDs), and Server-Side Apply (SSA). Learn More /blog/new-kubernetes-superpowers
title icon icon_color description
Everything In One Place cloud-with-nodes violet Easily make the best use of existing Kubernetes tools such as Helm, and reduce the friction caused by multiple deployment tools and models across complex architectures.
title icon icon_color description
Efficient Adoption lightning yellow Theres no need to rewrite your existing Kubernetes configurations to get started with Pulumi. You can efficiently adopt existing K8s resources to deploy your application to save time and effort.
title icon icon_color description
Secrets Management security salmon Use Pulumi to ensure secret data is encrypted in transit, at rest, and physically anywhere it gets stored. Bring your own preferred cloud encryption provider or use Pulumi's native secrets provider.
title icon icon_color description
Pulumi Kubernetes Operator pen fuchsia Deploy both Kubernetes resources and cloud infrastructure from within the Kubernetes resource model using a GitOps workflow. Use Pulumi's Flux integration and many other CI/CD integrations.
title description cta cta_url items
Kubernetes Best Practices with Pulumi Crosswalk Create, deploy, and manage production-ready infrastructure leveraging hosted Kubernetes offerings such as Amazon Elastic Kubernetes Service (EKS), Azure Kubernetes Service (AKS), or Google Kubernetes Engine (GKE). Learn More /docs/clouds/kubernetes/guides/
title icon icon_color description
Day 2 and Beyond cycle blue By using Pulumi Crosswalk for Kubernetes, you can benefit from tried-and-true “Day Two and beyond” integrations and playbooks, improving your infrastructure security, manageability, and cost effectiveness.
title icon icon_color description
Accessible Kubernetes collab purple Through Pulumi's Crosswalk for Kubernetes library extensions, the authorship experience has improved to make the Kubernetes API more accessible and approachable to operators and developers of all backgrounds.
title icon icon_color description
Focus on Delivering Value nodes salmon With Pulumi you'll focus more on functionality and business logic of your Kubernetes infrastructure and applications, and less on low-level implementation details.
title icon icon_color description
Avoid Pitfalls code yellow Discover solutions to the hardest Kubernetes problems to avoid mitigating pitfalls around infrastructure, security, governance, reliability, and maintainability of the K8s cluster, its workloads, and underlying resources.
section_id hubspot_form_id headline quote
contact 30017141-1093-4b94-b0eb-20aabc08447b Want a demo?
title name name_title content
See why the worlds best engineering teams use Pulumi + Kubernetes to enable true collaboration between developers and operators. Fernando Carletti Head of DevOps, Credijusto Pulumi enables our teams to deploy, scale and manage Kubernetes clusters in a fraction of the time that it took them previously, by giving them the ability to work with the languages they already know, bypassing YAML and unwieldy DSLs. It helps bring together application and infrastructure developers by eliminating silos and reducing friction in their workflows and interactions. We're excited that Pulumi Crosswalk for Kubernetes will simplify our infrastructure provisioning even further, advancing application lifecycle management throughout our organization.