Prometheus example stateful set won't deploy.
Following the example for the prometheus cluster level logging won't deploy. Getting the issue of pod.beta.kubernetes.io/subdomain invalid.
Version
$ oc version
oc v3.6.1+008f2d5
kubernetes v1.6.1+5115d708d7
features: Basic-Auth
Steps To Reproduce
- navigate to
origin/examples/prometheus oc new-app -f prometheus.yaml
Current Result
Everything is created successfully but pods won't deploy. Currently getting the error:
create Pod prometheus-0 in StatefulSet prometheus failed error: Pod "prometheus-0" is invalid: metadata.annotations[pod.beta.kubernetes.io/subdomain]: Invalid value: "": a DNS-1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?')
Expected Result
The pod to start up and be able to navigate to it.
Additional Information
We have tried adding the annotation pod.beta.kubernetes.io/subdomain: "" as well as giving it actual subdomains always with the same issue.
From looking at this kubernetes doc we were able to find this which may explain.
With v1.3, the following annotations are deprecated: pod.beta.kubernetes.io/hostname, pod.beta.kubernetes.io/subdomain, endpoints.beta.kubernetes.io/hostnames-map Yet origin still seems to expect it and does fill out the annotation if not included.
@zcatbear I see you are using OpenShift 3.6. Are you also using the prometheus template from the 3.6 branch?
It seems like the same issue as described in https://github.com/openshift/origin/issues/17167.
Yes I was using the prometheus from the 3.6 branch.
I have the same problem
I have the same problem and I am using the latest 3.7. Is there any resolution to this yet?
The prometheus example from master is targeted at 3.10 and 3.9. You'll need to check out the release-3.7 branch and apply that version against a 3.7 server.
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
/lifecycle rotten /remove-lifecycle stale
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close