-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
failed calling webhook "mopentelemetrycollector.kb.io" #652
Comments
This might be related to #521. |
Or not: perhaps we just need to better qualify the selector? opentelemetry-operator/config/webhook/service.yaml Lines 12 to 13 in e7bb958
opentelemetry-operator/config/manager/manager.yaml Lines 10 to 23 in e7bb958
|
May be a good idea to add something like "app.kubernetes.io/name=simplest-collector"... |
This sounds like a good first issue. Would you like to try it out, @rbaumgar? |
@jpkrohling sorry looked at wrong pod. So I added the last line to the service
Works perfect! |
Adding some debug info k get all -n opentelemetry-operator-system 130 ↵ ploffay@fedora
NAME READY STATUS RESTARTS AGE
pod/opentelemetry-operator-controller-manager-79b77945bf-bw5lq 2/2 Running 0 15m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/opentelemetry-operator-controller-manager-metrics-service ClusterIP 10.111.133.184 <none> 8443/TCP 15m
service/opentelemetry-operator-webhook-service ClusterIP 10.97.165.245 <none> 443/TCP 15m
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/opentelemetry-operator-controller-manager 1/1 1 1 15m
NAME DESIRED CURRENT READY AGE
replicaset.apps/opentelemetry-operator-controller-manager-79b77945bf 1 1 1 15m
k describe service/opentelemetry-operator-webhook-service -n opentelemetry-operator-system ploffay@fedora
Name: opentelemetry-operator-webhook-service
Namespace: opentelemetry-operator-system
Labels: <none>
Annotations: <none>
Selector: control-plane=controller-manager
Type: ClusterIP
IP Family Policy: SingleStack
IP Families: IPv4
IP: 10.97.165.245
IPs: 10.97.165.245
Port: <unset> 443/TCP
TargetPort: 9443/TCP
Endpoints: 172.17.0.6:9443
Session Affinity: None
Events: <none> k describe deployment.apps/opentelemetry-operator-controller-manager -n opentelemetry-operator-system 130 ↵ ploffay@fedora
Name: opentelemetry-operator-controller-manager
Namespace: opentelemetry-operator-system
CreationTimestamp: Wed, 09 Feb 2022 10:00:26 +0100
Labels: control-plane=controller-manager
Annotations: deployment.kubernetes.io/revision: 1
Selector: control-plane=controller-manager
Replicas: 1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 25% max unavailable, 25% max surge
Pod Template:
Labels: control-plane=controller-manager
Service Account: opentelemetry-operator-controller-manager
Containers:
kube-rbac-proxy:
Image: gcr.io/kubebuilder/kube-rbac-proxy:v0.8.0
Port: 8443/TCP
Host Port: 0/TCP
Args:
--secure-listen-address=0.0.0.0:8443
--upstream=http://127.0.0.1:8080/
--logtostderr=true
--v=0
Limits:
cpu: 500m
memory: 128Mi
Requests:
cpu: 5m
memory: 64Mi
Environment: <none>
Mounts: <none>
manager:
Image: docker.io/pavolloffay/opentelemetry-operator:810
Port: 9443/TCP
Host Port: 0/TCP
Args:
--metrics-addr=127.0.0.1:8080
--enable-leader-election
Limits:
cpu: 200m
memory: 256Mi
Requests:
cpu: 100m
memory: 64Mi
Liveness: http-get http://:8081/healthz delay=15s timeout=1s period=20s #success=1 #failure=3
Readiness: http-get http://:8081/readyz delay=5s timeout=1s period=10s #success=1 #failure=3
Environment: <none>
Mounts:
/tmp/k8s-webhook-server/serving-certs from cert (ro)
Volumes:
cert:
Type: Secret (a volume populated by a Secret)
SecretName: opentelemetry-operator-controller-manager-service-cert
Optional: false
Conditions:
Type Status Reason
---- ------ ------
Available True MinimumReplicasAvailable
Progressing True NewReplicaSetAvailable
OldReplicaSets: <none>
NewReplicaSet: opentelemetry-operator-controller-manager-79b77945bf (1/1 replicas created)
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ScalingReplicaSet 15m deployment-controller Scaled up replica set opentelemetry-operator-controller-manager-79b77945bf to 1 |
full error message
Reason:
--> the service is also pointing to the wrong pods from the other operators...
Sometimes it does not work, sometimes it works, depended which pod the service is selecting!
The text was updated successfully, but these errors were encountered: