You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. What kops version are you running? The command kops version, will display
this information.
Version 1.21.0
2. What Kubernetes version are you running? kubectl version will print the
version if a cluster is running or provide the Kubernetes version specified as
a kops flag.
This is causing serious issues with nri-prometheus (New Relic's prometheus scrape solution).
time="2021-11-12T00:50:00Z" level=error msg="couldn't parse pod url, skipping: http://10.157.43.174:⎂/metrics" component=KubernetesAPI error="parse \"http://10.157.43.174:⎂/metrics\": invalid port \":⎂\" after host" pod=cilium-cgvt7
This will also prevent people from using an in-cluster Prometheus looking for annotations. While a work around for the in-cluster Prometheus is to drop a PodMonitor - this is not doable for nri-prometheus which relies solely on the Prometheus annotations.
6. What did you expect to happen?
I expected to have the port number translated correctly in the Cilium manifest.
7. Please provide your cluster manifest. Execute kops get --name my.example.com -o yaml to display your cluster manifest.
You may want to remove your cluster name and other sensitive information.
8. Please run the commands with most verbose logging by adding the -v 10 flag.
Paste the logs into this report, or in a gist and provide the gist link here.
N/A
9. Anything else do we need to know?
Nope.
The text was updated successfully, but these errors were encountered:
/kind bug
1. What
kops
version are you running? The commandkops version
, will displaythis information.
2. What Kubernetes version are you running?
kubectl version
will print theversion if a cluster is running or provide the Kubernetes version specified as
a
kops
flag.3. What cloud provider are you using?
4. What commands did you run? What is the simplest way to reproduce this issue?
5. What happened after the commands executed?
The cluster comes up, but all the cilium pods have a UNICODE char as the value of the prometheus port annotation.
kubectl get pods -n kube-system cilium-cgvt7 -o yaml | less
Depending on your terminal encoding you might see this.
The port kops uses by default is
9090
. Which happens to be theUTF-16
decimal value for the character⎂
(https://www.fileformat.info/info/unicode/char/2382/index.htm). Note that<E2><8E><82>
is theUTF-8
hex for⎂
.How did this happen? The cilium template uses
printf
and the%q
token which converts the value to a char not a string.kops/upup/models/cloudup/resources/addons/networking.cilium.io/k8s-1.16-v1.10.yaml.template
Line 594 in 5bfdefb
The line should use the decimal token and pipe to quote.
This is causing serious issues with
nri-prometheus
(New Relic's prometheus scrape solution).This will also prevent people from using an in-cluster Prometheus looking for annotations. While a work around for the in-cluster Prometheus is to drop a
PodMonitor
- this is not doable fornri-prometheus
which relies solely on the Prometheus annotations.6. What did you expect to happen?
I expected to have the port number translated correctly in the Cilium manifest.
7. Please provide your cluster manifest. Execute
kops get --name my.example.com -o yaml
to display your cluster manifest.You may want to remove your cluster name and other sensitive information.
8. Please run the commands with most verbose logging by adding the
-v 10
flag.Paste the logs into this report, or in a gist and provide the gist link here.
N/A
9. Anything else do we need to know?
Nope.
The text was updated successfully, but these errors were encountered: