[Hawkular-dev] openshift - using cluster up but building from source
John Mazzitelli
mazz at redhat.com
Wed Feb 22 00:16:16 EST 2017
> $ oc process -f metrics.yaml \
> -v IMAGE_PREFIX="jpkroehling/origin-" \
> -v IMAGE_VERSION="dev" \
> -v HAWKULAR_METRICS_HOSTNAME=hawkular-metrics.example.com \
> -v USE_PERSISTENT_STORAGE=false \
> -v CASSANDRA_NODES=2 | oc create -n openshift-infra -f -
OK, has anyone tried this on the latest code? (that is, 1.5 alpha 3 OR master).
I have a feeling in the latest code this "metrics.yaml" isn't all that you need now. There is more that is needed. Because if you only create the entities within metrics.yaml, you get errors from this oc create:
"Error from server (Forbidden): pods "metrics-deployer-" is forbidden: service account openshift-infra/metrics-deployer was not found, retry after the service account is created"
OK, so I then try the following: before this "oc process -f metrics.yaml" I run this extra command:
$ oc create -n openshift-infra -f metrics-deployer-setup.yaml
Which all results in:
serviceaccount "metrics-deployer" created
pod "metrics-deployer-3k89r" created
Sounds good right? Well, go to the UI Console and see that metrics deployer has an error:
MountVolume.SetUp failed for volume "kubernetes.io/secret/2a843217-f8bd-11e6-95ab-54ee7549ae45-secret" (spec.Name: "secret") pod "2a843217-f8bd-11e6-95ab-54ee7549ae45" (UID: "2a843217-f8bd-11e6-95ab-54ee7549ae45") with: secrets "metrics-deployer" not found
More information about the hawkular-dev
mailing list