Nexus in Kubernetes with Google Cloud Storage storage

Dear community,

could you please suggest what is the proper way to install Nexus in Kubernetes with a community plugin for Google Cloud Storage capability?

I saw the GCS plugin repository - this plugin would be installed like a “.kar” file.

From a cursory glance, the official helm chart doesn’t have any way to install/configure such plugins.
So I need to perform installation and rebuild the official image for Kubernetes. I’m a bit confused about the idea of customizing the Nexus container image and supporting it.

Kindly ask to guide me :slight_smile: I’d really appreciate it

Best regards,
Pasha

you can try sth like that

deployment:
  initContainers:
    - name: install-plugins
      image: curlimages/curl
      imagePullPolicy: IfNotPresent
      command: ['/bin/sh']
      args:
        - "-c"
        - "curl -o /opt/sonatype/nexus/deploy/nexus-blobstore-google-cloud-0.37.0.kar https://repo1.maven.org/maven2/org/sonatype/nexus/plugins/nexus-blobstore-google-cloud/0.37.0/nexus-blobstore-google-cloud-0.37.0.kar && chown 200:200 /opt/sonatype/nexus/deploy/nexus-blobstore-google-cloud-0.37.0.kar"
      volumeMounts:
        - mountPath: "/opt/sonatype/nexus/deploy"
          name: plugins
          subPath: deploy
  additionalVolumes:
    - name: plugins
      emptyDir: {}
  additionalVolumeMounts:
    - mountPath: /opt/sonatype/nexus/deploy
      name: plugins
      subPath: deploy