/
DirectorySecurity AdvisoriesPricing
Sign inRequest a trial
Directory
cloud-provider-gcp-cloud-controller-manager logo

cloud-provider-gcp-cloud-controller-manager

Last changed

Request a free trial

Contact our team to test out this image for free. Please also indicate any other images you would like to evaluate.

Request trial
Tags
Overview
Comparison
Provenance
Specifications
SBOM
Vulnerabilities
Advisories

Chainguard Container for cloud-provider-gcp-cloud-controller-manager

Kubernetes cloud controller manager for Google Cloud Platform (GCP), managing cloud-specific resources and integrations.

Chainguard Containers are regularly-updated, secure-by-default container images.

Download this Container Image

For those with access, this container image is available on cgr.dev:

docker pull cgr.dev/ORGANIZATION/cloud-provider-gcp-cloud-controller-manager:latest

Be sure to replace the ORGANIZATION placeholder with the name used for your organization's private repository within the Chainguard Registry.

Compatibility Notes

Chainguard's cloud-provider-gcp-cloud-controller-manager image is compatible with the upstream Cloud Provider GCP cloud-controller-manager image. This image contains only the minimum set of dependencies needed to run the Cloud Provider GCP Cloud Controller Manager.

Usage

The GCP cloud controller manager is a Kubernetes controller that interfaces with Google Cloud Platform APIs to manage cloud-specific resources such as load balancers, persistent volumes, and node management.

You can use the cloud-provider-gcp-cloud-controller-manager as drop-in replacement for upstream image.

Required Fields in service-account.json

Ensure your service account file contains the following fields: type, project_id, private_key_id, private_key, client_email, client_id, auth_uri, token_uri.

Create Configuration

kubectl create secret generic gcp-ccm-config \
  -n kube-system \
  --from-file=credentials.json=/path/to/service-account.json \
  --from-file=gce.conf=/path/to/gce.conf

Deploy Cloud Controller Manager

apiVersion: apps/v1
kind: Deployment
metadata:
  name: gcp-cloud-controller-manager
  namespace: kube-system
spec:
  replicas: 1
  selector:
    matchLabels:
      app: gcp-ccm
  template:
    metadata:
      labels:
        app: gcp-ccm
    spec:
      containers:
        - name: cloud-controller-manager
          image: cgr.dev/ORGANIZATION/cloud-provider-gcp-cloud-controller-manager
          command: ["/cloud-controller-manager"]
          args:
            - --cloud-provider=gce
            - --cloud-config=/etc/gcp/config/gce.conf
          env:
            - name: GOOGLE_APPLICATION_CREDENTIALS
              value: /etc/gcp/config/credentials.json
          volumeMounts:
            - name: gcp-config
              mountPath: /etc/gcp/config
              readOnly: true
      volumes:
        - name: gcp-config
          secret:
            secretName: gcp-ccm-config
kubectl apply -f gcp-cloud-controller-manager.yaml

Test LoadBalancer Service

apiVersion: v1
kind: Service
metadata:
  name: test-lb
spec:
  type: LoadBalancer
  selector:
    app: test-app
  ports:
    - port: 80
      targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: test-app
spec:
  replicas: 1
  selector:
    matchLabels:
      app: test-app
  template:
    metadata:
      labels:
        app: test-app
    spec:
      containers:
        - name: app
          image: nginx:alpine
          ports:
            - containerPort: 8080
kubectl apply -f test-lb-app.yaml

Verify

kubectl get pods -n kube-system -l app=gcp-ccm

Expected Output:

NAME                                               READY   STATUS    RESTARTS   AGE
gcp-cloud-controller-manager-d6b768dd9-abcde       1/1     Running   0          2m
kubectl get svc test-lb

Expected Output:

NAME      TYPE           CLUSTER-IP     EXTERNAL-IP     PORT(S)        AGE
test-lb   LoadBalancer   10.106.37.54   34.123.45.67    80:30190/TCP   3m

Documentation and Resources

What are Chainguard Containers?

Chainguard Containers are minimal container images that are secure by default.

In many cases, the Chainguard Containers tagged as :latest contain only an open-source application and its runtime dependencies. These minimal container images typically do not contain a shell or package manager. Chainguard Containers are built with Wolfi, our Linux undistro designed to produce container images that meet the requirements of a more secure software supply chain.

The main features of Chainguard Containers include:

For cases where you need container images with shells and package managers to build or debug, most Chainguard Containers come paired with a -dev variant.

Although the -dev container image variants have similar security features as their more minimal versions, they feature additional software that is typically not necessary in production environments. We recommend using multi-stage builds to leverage the -dev variants, copying application artifacts into a final minimal container that offers a reduced attack surface that won’t allow package installations or logins.

Learn More

To better understand how to work with Chainguard Containers, please visit Chainguard Academy and Chainguard Courses.

In addition to Containers, Chainguard offers VMs and Libraries. Contact Chainguard to access additional products.

Trademarks

This software listing is packaged by Chainguard. The trademarks set forth in this offering are owned by their respective companies, and use of them does not imply any affiliation, sponsorship, or endorsement by such companies.

Licenses

Chainguard container images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" tag of this image:

  • Apache-2.0

  • LGPL-2.1-or-later

  • MIT

  • MPL-2.0

For a complete list of licenses, please refer to this Image's SBOM.

Software license agreement

Compliance

A FIPS validated version of this image is available for FedRAMP compliance. STIG is included with FIPS image.


Related images
cloud-provider-gcp-cloud-controller-manager-fips logoFIPS
cloud-provider-gcp-cloud-controller-manager-fips

Category
application

Safe Source for Open Sourceâ„¢
Contact us
© 2025 Chainguard. All Rights Reserved.
Private PolicyTerms of Use

Products

Chainguard ContainersChainguard LibrariesChainguard VMs