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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hej, We have used otel version opentelemetry-collector-contrib:0.72.0 and trying to use the port-forward for the svc we got the error .
apiVersion: apps/v1 kind: Deployment metadata: annotations: labels: app.kubernetes.io/instance: allen-otel-staging app.kubernetes.io/managed-by: Helm app.kubernetes.io/name: otel app.kubernetes.io/version: 0.72.0 helm.sh/chart: otel-0.49.3 name: allen-otel-staging namespace: zz-developer-portal spec: progressDeadlineSeconds: 600 replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app.kubernetes.io/instance: allen-otel-staging app.kubernetes.io/name: otel component: standalone-collector strategy: rollingUpdate: maxSurge: 25% maxUnavailable: 25% type: RollingUpdate template: metadata: annotations: checksum/config: 016bc9a4fc274e01843d11a15fb9778a8768eec01a3f269ab210a9760533bc32 kubectl.kubernetes.io/restartedAt: "2024-01-26T15:16:01Z" creationTimestamp: null labels: app.kubernetes.io/instance: allen-otel-staging app.kubernetes.io/name: otel component: standalone-collector spec: containers: - command: - /otelcol-contrib - --config=/conf/relay.yaml env: - name: MY_POD_IP valueFrom: fieldRef: apiVersion: v1 fieldPath: status.podIP image: otel/opentelemetry-collector-contrib:0.72.0 imagePullPolicy: IfNotPresent livenessProbe: failureThreshold: 3 httpGet: path: / port: 13133 scheme: HTTP periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 name: otel ports: - containerPort: 8888 name: metrics protocol: TCP - containerPort: 4317 name: otlp protocol: TCP - containerPort: 4318 name: otlp-http protocol: TCP readinessProbe: failureThreshold: 3 httpGet: path: / port: 13133 scheme: HTTP periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 resources: limits: cpu: 256m memory: 512Mi securityContext: {} terminationMessagePath: /dev/termination-log terminationMessagePolicy: File volumeMounts: - mountPath: /conf name: otel-configmap dnsPolicy: ClusterFirst imagePullSecrets: - name: image-pull-secret nodeSelector: apps: run restartPolicy: Always schedulerName: default-scheduler securityContext: {} serviceAccount: allen-otel-staging serviceAccountName: allen-otel-staging terminationGracePeriodSeconds: 30 volumes: - configMap: defaultMode: 420 items: - key: relay path: relay.yaml name: allen-otel-staging name: otel-configmap
SVC
`apiVersion: v1
kind: Service
metadata:
annotations:
labels:
app.kubernetes.io/instance: allen-otel-staging
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: otel
app.kubernetes.io/version: 0.72.0
component: standalone-collector
helm.sh/chart: otel-0.49.3
name: allen-otel-staging
namespace: zz-developer-portal
spec:
clusterIP: 100.70.103.24
clusterIPs:
internalTrafficPolicy: Cluster
ipFamilies:
ipFamilyPolicy: SingleStack
ports:
port: 8888
protocol: TCP
targetPort: 8888
name: otlp
port: 4317
protocol: TCP
targetPort: 4317
port: 4318
protocol: TCP
targetPort: 4318
selector:
app.kubernetes.io/instance: allen-otel-staging
app.kubernetes.io/name: otel
component: standalone-collector
sessionAffinity: None
type: ClusterIP
`
kubectl port-forward svc/allen-otel-staging 8082:4318
Forwarding from 127.0.0.1:8082 -> 4318
Forwarding from [::1]:8082 -> 4318
Handling connection for 8082
Handling connection for 8082
E0201 16:21:05.134037 53755 portforward.go:409] an error occurred forwarding 8082 -> 4318: error forwarding port 4318 to pod c744e6c282945bff054014fc543b375c4f31d64bfab7ed5daaf6c8e616e07a52, uid : failed to execute portforward in network namespace "/var/run/netns/cni-149c6022-8bc3-e85f-96fd-5d69dfc6385e": failed to connect to localhost:4318 inside namespace "c744e6c282945bff054014fc543b375c4f31d64bfab7ed5daaf6c8e616e07a52", IPv4: dial tcp4 127.0.0.1:4318: connect: connection refused IPv6 dial tcp6 [::1]:4318: connect: cannot assign requested address
error: lost connection to pod
Beta Was this translation helpful? Give feedback.
All reactions