Jump to content

Search the Community

Showing results for tags 'helm charts'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • General Discussion
    • Artificial Intelligence
    • DevOpsForum News
  • DevOps & SRE
    • DevOps & SRE General Discussion
    • Databases, Data Engineering & Data Science
    • Development & Programming
    • CI/CD, GitOps, Orchestration & Scheduling
    • Docker, Containers, Microservices, Serverless & Virtualization
    • Infrastructure-as-Code
    • Kubernetes & Container Orchestration
    • Linux
    • Logging, Monitoring & Observability
    • Security, Governance, Risk & Compliance
  • Cloud Providers
    • Amazon Web Services
    • Google Cloud Platform
    • Microsoft Azure

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


LinkedIn Profile URL


About Me


Cloud Platforms


Cloud Experience


Development Experience


Current Role


Skills


Certifications


Favourite Tools


Interests

Found 4 results

  1. Quiz #17 was: You’re working in a GitOps environment where developers use Helm charts to manage Kubernetes deployments. One day, a developer makes a change to a Helm chart to adjust the replica count of a deployment. However, after the change is applied, you notice that the deployment’s pod template has also been unexpectedly modified, […]View the full article
  2. With Argo CD or OpenShift GitOps, deploying Helm Charts and leveraging the power of templating is simple. However, while working with different cluster environments, the question sometimes arises: How can I make sure that a new version of a Chart is first deployed on the DEV-environment only before it is installed on the PROD-environment? ... View the full article
  3. AWS unveils new capabilities for cdk8s, allowing seamless synthesis of applications into Helm charts on one hand, and native import of existing Helm charts into cdk8s applications on the other. In addition, cdk8s can now interpret deploy-time tokens of the AWS CDK and CDK For Terraform, all during the cdk8s synthesis phase. Helm stands out as a widely embraced solution for the deployment and management of Kubernetes applications. By converging cdk8s and Helm, users can enjoy a unified workflow for creating and deploying Kubernetes manifests. With the recent addition to the "cdk8s synth" command, you can transform a cdk8s app directly into a Helm Chart, ready to be integrated with Helm deployments. View the full article
  4. One principle of GitOps is to have the desired state declarations as Versioned and Immutable, where Git repositories play an important role as the source of truth. But can you have an alternative to a Git repository for storing and deploying your Kubernetes manifests via GitOps? What if you could package your Kubernetes manifests into a container image instead? What if you can reuse the same authentication and authorization mechanism as your container images? To answer the above questions, an understanding of OCI registries and OCI artifacts is needed. Simply put, OCI registries are the registries that are typically used for container images but can be expanded to store other types of data (aka OCI artifacts) such as Helm charts, Kubernetes manifests, Kustomize overlays, scripts, etc. Using OCI Registries and OCI Artifacts provides you with the following advantages: Less tools to operate: Single artifact registry can store expanded data types apart from container images. In-built release archival system: OCI registries give users two sets of mutable and immutable URLs which are tags and content-addressable ones. Flourishing ecosystem: Standardized and supported by dozen of providers which helps users take advantage of new features and tools developed by large Kubernetes community Given these benefits, and in addition to the support of files stored in Git repositories, we are thrilled to announce two new formats supported by Config Sync 1.13 to deploy OCI artifacts: Sync OCI artifacts from Artifact Registry Sync Helm charts from OCI registries Config Sync is an open source tool that provides GitOps continuous delivery for Kubernetes clusters. The Open Container Initiative (OCI) is an open governance structure for the express purpose of creating open industry standards around container formats and runtimes. OCI artifacts give you the power of storing and distributing different types of data such as Kubernetes manifests, Helm Charts, and Kustomize overlays, in addition to container images via OCI registries. Throughout this blog, you will see how you can leverage the two new formats (OCI artifacts and Helm charts) supported by Config Sync, by using: oras and helm to package and push OCI artifacts Artifact registry as OCI registry to store the OCI artifacts GKE cluster to host the OCI artifacts synced Config Sync installed in that GKE cluster to sync the OCI artifacts Initial setup First, you need to have a common setup for the two scenarios by configuring and securing the access from the GKE cluster with Config Sync to the Artifact Registry repository. Initialize the Google Cloud project you will use throughout this blog: code_block [StructValue([(u'code', u'PROJECT=SET_YOUR_PROJECT_ID_HERE\r\ngcloud config set project $PROJECT'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca253a6c10>)])] Create a GKE cluster with Workload Identity registered in a fleet to enable Config Management: code_block [StructValue([(u'code', u'CLUSTER_NAME=oci-artifacts-cluster\r\nREGION=us-east4\r\ngcloud services enable container.googleapis.com\r\ngcloud container clusters create ${CLUSTER_NAME} \\\r\n --workload-pool=${PROJECT}.svc.id.goog \\\r\n --region ${REGION}\r\ngcloud services enable gkehub.googleapis.com\r\ngcloud container fleet memberships register ${CLUSTER_NAME} \\\r\n --gke-cluster ${REGION}/${CLUSTER_NAME} \\\r\n --enable-workload-identity\r\ngcloud beta container fleet config-management enable'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca263d4e10>)])] Install Config Sync in the GKE cluster: code_block [StructValue([(u'code', u'cat <<EOF > acm-config.yaml\r\napplySpecVersion: 1\r\nspec:\r\n configSync:\r\n enabled: true\r\nEOF\r\ngcloud beta container fleet config-management apply \\\r\n --membership ${CLUSTER_NAME} \\\r\n --config acm-config.yaml'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca263d4cd0>)])] Create an Artifact Registry repository to host OCI artifacts (--repository-format docker): code_block [StructValue([(u'code', u'CONTAINER_REGISTRY_NAME=oci-artifacts\r\ngcloud services enable artifactregistry.googleapis.com\r\ngcloud artifacts repositories create ${CONTAINER_REGISTRY_NAME} \\\r\n --location ${REGION} \\\r\n --repository-format docker'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca15b519d0>)])] Create a dedicated Google Cloud Service Account with the fine granular access to that Artifact Registry repository with the roles/artifactregistry.reader role: code_block [StructValue([(u'code', u'GSA_NAME=oci-artifacts-reader\r\ngcloud iam service-accounts create ${GSA_NAME} \\\r\n --display-name ${GSA_NAME}\r\ngcloud artifacts repositories add-iam-policy-binding ${CONTAINER_REGISTRY_NAME} \\\r\n --location ${REGION} \\\r\n --member "serviceAccount:${GSA_NAME}@${PROJECT}.iam.gserviceaccount.com" \\\r\n --role roles/artifactregistry.reader'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca15b51090>)])] Allow Config Sync to synchronize resources for a specific RootSync: code_block [StructValue([(u'code', u'ROOT_SYNC_NAME=root-sync-oci\r\ngcloud iam service-accounts add-iam-policy-binding \\\r\n --role roles/iam.workloadIdentityUser \\\r\n --member "serviceAccount:${PROJECT}.svc.id.goog[config-management-system/root-reconciler-${ROOT_SYNC_NAME}]" \\\r\n ${GSA_NAME}@${PROJECT}.iam.gserviceaccount.com'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca26ce6cd0>)])] Login to Artifact Registry so you can push OCI artifacts to it in a later step: code_block [StructValue([(u'code', u'gcloud auth configure-docker ${REGION}-docker.pkg.dev'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca26ce61d0>)])] Build and sync an OCI artifact Now that you have completed your setup, let's illustrate our first scenario where you want to sync a Namespace resource as an OCI image. Create a Namespace resource definition: code_block [StructValue([(u'code', u'cat <<EOF> test-namespace.yaml\r\napiVersion: v1\r\nkind: Namespace\r\nmetadata:\r\n name: test\r\nEOF'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca26ce6350>)])] Create an archive of that file: code_block [StructValue([(u'code', u'tar -cf test-namespace.tar test-namespace.yaml'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca26ce6990>)])] Push that artifact to Artifact Registry. In this tutorial, we use oras, but there are other tools that you can use like crane. code_block [StructValue([(u'code', u'oras push \\\r\n ${REGION}-docker.pkg.dev/${PROJECT}/${CONTAINER_REGISTRY_NAME}/my-namespace-artifact:v1 \\\r\n test-namespace.tar'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca26ce6290>)])] Set up Config Sync to deploy this artifact from Artifact Registry: code_block [StructValue([(u'code', u'cat << EOF | kubectl apply -f -\r\napiVersion: configsync.gke.io/v1beta1\r\nkind: RootSync\r\nmetadata:\r\n name: ${ROOT_SYNC_NAME}\r\n namespace: config-management-system\r\nspec:\r\n sourceFormat: unstructured\r\n sourceType: oci\r\n oci:\r\n image: ${REGION}-docker.pkg.dev/${PROJECT}/${CONTAINER_REGISTRY_NAME}/my-namespace-artifact:v1\r\n dir: .\r\n auth: gcpserviceaccount\r\n gcpServiceAccountEmail: ${GSA_NAME}@${PROJECT}.iam.gserviceaccount.com\r\nEOF'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca14f1eb10>)])] Check the status of the sync with the nomos tool: code_block [StructValue([(u'code', u'nomos status --contexts $(k config current-context)'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca14f1ef50>)])] Verify that the Namespace test is synced: code_block [StructValue([(u'code', u'kubectl get ns test'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca14f1e990>)])] And voilà! You just synced a Namespace resource as an OCI artifact with Config Sync. Build and sync a Helm chart Now, let's see how you could deploy a Helm chart hosted in a private Artifact Registry. Create a simple Helm chart: code_block [StructValue([(u'code', u'helm create test-chart'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca25ff7f50>)])] Package the Helm chart: code_block [StructValue([(u'code', u'helm package test-chart --version 0.1.0'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca2434b150>)])] Push the chart to Artifact Registry: code_block [StructValue([(u'code', u'helm push \\\r\n test-chart-0.1.0.tgz \\\r\n oci://${REGION}-docker.pkg.dev/${PROJECT}/${CONTAINER_REGISTRY_NAME}'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca1580b890>)])] Set up Config Sync to deploy this Helm chart from Artifact Registry: code_block [StructValue([(u'code', u'cat << EOF | kubectl apply -f -\r\napiVersion: configsync.gke.io/v1beta1\r\nkind: RootSync\r\nmetadata:\r\n name: ${ROOT_SYNC_NAME}\r\n namespace: config-management-system\r\nspec:\r\n sourceFormat: unstructured\r\n sourceType: helm\r\n helm:\r\n repo: oci://${REGION}-docker.pkg.dev/${PROJECT}/${CONTAINER_REGISTRY_NAME}\r\n chart: test-chart\r\n version: 0.1.0\r\n releaseName: test-chart\r\n namespace: default\r\n auth: gcpserviceaccount\r\n gcpServiceAccountEmail: ${GSA_NAME}@${PROJECT}.iam.gserviceaccount.com\r\nEOF'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca1580b290>)])] Check the status of the sync with the nomos tool: code_block [StructValue([(u'code', u'nomos status --contexts $(k config current-context)'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca1580bc10>)])] Verify that the resources in the Namespace test-chart are synced: code_block [StructValue([(u'code', u'kubectl get all -n default'), (u'language', u''), (u'caption', <wagtail.wagtailcore.rich_text.RichText object at 0x3eca25bd62d0>)])] And voilà! You just synced an Helm chart with Config Sync. Towards more scalability and security In this blog, you synced both an OCI artifact and an Helm chart with Config Sync. OCI registries and OCI artifacts are new kids on the block that can also work alongside with the Git option depending on your needs and use-cases. One of such patterns could be Git still acting as the source of truth for the declarative configs in addition to the well established developer workflow it provides: pull request, code review, branch strategy, etc. The continuous integration pipelines, triggered by pull requests or merges, will run tests against the declarative configs to eventually push the OCI artifacts in an OCI registry. Finally, the continuous reconciliation of GitOps will take it from here and will reconcile between the desired state, now stored in an OCI registry, with the actual state, running in Kubernetes. Your Kubernetes manifests as OCI artifacts are now just seen like any container images for your Kubernetes clusters as they are pulled from OCI registries. This continuous reconciliation from OCI registries, not interacting with Git, has a lot of benefits in terms of scalability, performance and security as you will be able to configure very fine grained access to your OCI artifacts. To get started, check out the two Sync OCI artifacts from Artifact Registry and the Sync Helm charts from OCI registries features today. You could also find this other tutorial showing how you can package and push an Helm chart to GitHub Container Registry with GitHub actions, and then how you can deploy this Helm chart with Config Sync. Attending KubeCon + CloudNativeCon North America 2022 in October? Come check out our session Build and Deploy Cloud Native (OCI) Artifacts, the GitOps Way during the GitOpsCon North America 2022 co-located event on October, 25th. Hope to see you there! Config Sync is open sourced. We are open to contributions and bug fixes if you want to get involved in the development of Config Sync. You can also use the repository to track ongoing work, or build from source to try out bleeding-edge functionalities. Related Article Google Cloud at KubeCon EU: New projects, updated services, and how to connect Engage with experts and learn more about Google Kubernetes Engine at KubeCon EU. Read Article
  • Forum Statistics

    43.3k
    Total Topics
    42.7k
    Total Posts
×
×
  • Create New...