origin icon indicating copy to clipboard operation
origin copied to clipboard

Prometheus example stateful set won't deploy.

Open zcatbear opened this issue 9 years ago • 9 comments

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
  1. navigate to origin/examples/prometheus
  2. 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 avatar Nov 13 '17 16:11 zcatbear

@zcatbear I see you are using OpenShift 3.6. Are you also using the prometheus template from the 3.6 branch?

pweil- avatar Nov 14 '17 19:11 pweil-

It seems like the same issue as described in https://github.com/openshift/origin/issues/17167.

simonpasquier avatar Nov 21 '17 09:11 simonpasquier

Yes I was using the prometheus from the 3.6 branch.

zcatbear avatar Nov 22 '17 03:11 zcatbear

I have the same problem

fengbeihong avatar Dec 21 '17 03:12 fengbeihong

I have the same problem and I am using the latest 3.7. Is there any resolution to this yet?

jbodswor avatar Mar 14 '18 06:03 jbodswor

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.

smarterclayton avatar Mar 15 '18 01:03 smarterclayton

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

openshift-bot avatar Jun 13 '18 06:06 openshift-bot

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

openshift-bot avatar Jul 13 '18 06:07 openshift-bot

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

openshift-bot avatar Aug 12 '18 08:08 openshift-bot