Last active
July 28, 2020 10:59
-
-
Save bentito/67e6128f6488949c1bc90b032afbfedd to your computer and use it in GitHub Desktop.
Identify minimal setup for using Metering with CRC (mostly complete)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Identify minimal setup for using Metering completely with CRC | |
crc version | |
crc version: 1.11.0+883ca49 | |
OpenShift version: 4.4.5 (embedded in binary) | |
No-fuss CR file that works with CRC for installing Metering | |
cat $METERING_CR_FILE | |
apiVersion: metering.openshift.io/v1 | |
kind: MeteringConfig | |
metadata: | |
name: "operator-metering" | |
annotations: | |
"ansible.operator-sdk/verbosity": "1" | |
spec: | |
storage: | |
type: "hive" | |
hive: | |
type: "sharedPVC" | |
sharedPVC: | |
createPVC: true | |
storageClass: " " | |
size: 25Gi | |
initial list of disabled operators: | |
oc get clusterversion version -ojsonpath='{range .spec.overrides[*]}{.name}{"\n"}{end}' | nl -v 0 | |
0 cluster-monitoring-operator | |
1 machine-config-operator | |
2 etcd-quorum-guard | |
3 machine-api-operator | |
4 cluster-autoscaler-operator | |
5 insights-operator | |
6 prometheus-k8s | |
7 cloud-credential-operator | |
8 csi-snapshot-controller-operator | |
9 cluster-storage-operator | |
10 kube-storage-version-migrator-operator |
Also turning on machine-api-operator
with, for instance:
oc patch clusterversion/version --type='json' -p '[{"op":"remove", "path":"/spec/overrides/2"}]' -oyaml
didn't change the available datasource data.
This is pretty scriptable if you also creating the MeteringConfig custom resource doing something like this:
cat <<EOF | oc apply -f -
apiVersion: metering.openshift.io/v1
kind: MeteringConfig
metadata:
name: "operator-metering"
annotations:
"ansible.operator-sdk/verbosity": "1"
spec:
storage:
type: "hive"
hive:
type: "sharedPVC"
sharedPVC:
createPVC: true
storageClass: " "
size: 25Gi
EOF
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After turning on
prometheus-k8s
,cluster-monitoring-operator
,cluster-storage-operator
I see: