Skip to content

giantswarm/prometheus-operator-crd

Repository files navigation

CircleCI

prometheus-operator-crd chart

Giant Swarm offers a prometheus-operator-crd App which can be installed in workload clusters. Here we define the prometheus-operator-crd chart with its templates and default configuration.

What is this app?

This app is a dependency for prometheus-operator-app, which install the required CustomResourceDefinitions.

Why did we add it?

CRD management does not comes out of the box, so we need a separate app/chart in order to be able to fully manage (install/upgrade/delete) the CRDs.

Who can use it?

Anyone can use this.

Installing

There are 3 ways to install this app onto a workload cluster.

  1. Using our web interface
  2. Using our API
  3. Directly creating the App custom resource on the management cluster.

Sample App CR for the management cluster

If you have access to the Kubernetes API on the management cluster, you could create the App CR and ConfigMap directly.

Here is an example that would install the app to workload cluster abc12:

# appCR.yaml
apiVersion: application.giantswarm.io/v1alpha1
kind: App
metadata:
  name: prometheus-operator-crd
  namespace: abc12
spec:
  catalog: control-plane-test-catalog
  config:
    configMap:
      name: abc12-cluster-values
      namespace: abc12
  kubeConfig:
    context:
      name: abc12
    inCluster: false
    secret:
      name: abc12-kubeconfig
      namespace: abc12
  name: prometheus-operator-crd
  namespace: prometheus-operator-crd
  version: 0.1.0

See our full reference page on how to configure applications for more details.

Credits

Upgrade

In order to sync CRDs from upstream, run:

  • Github action crds-upgrade

Screen Shot 2022-10-25 at 2 31 59 PM

OR

  • Run this script:
VERSION=32.4.0 hack/sync.sh