-
Notifications
You must be signed in to change notification settings - Fork 385
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
[BUG]kubectl logs cannot be used to view logs on the edge #1948
Comments
apiVersion: raven.openyurt.io/v1beta1
kind: Gateway
metadata:
name: gw-office
spec:
proxyConfig:
Replicas: 1
tunnelConfig:
Replicas: 1
endpoints:
- nodeName: izwz9a9kgjp1kko83o03c3z
underNAT: true
port: 10262
type: proxy
- nodeName: izwz9a9kgjp1kko83o03c3z
underNAT: true
port: 4500
underNAT: true
type: tunnel
---
apiVersion: raven.openyurt.io/v1beta1
kind: Gateway
metadata:
name: gw-cloud
spec:
exposeType: PublicIP
proxyConfig:
Replicas: 1
proxyHTTPPort: 10255,9445
proxyHTTPSPort: 10250,9100
tunnelConfig:
Replicas: 1
endpoints:
- nodeName: master
underNAT: false
port: 10262
type: proxy
publicIP: 8.138.xxx.xxx
- nodeName: master
underNAT: false
port: 4500
type: tunnel
publicIP: 8.138.xxx.xxx
|
root@master:/data/crds# kubectl logs raven-agent-ds-sv796 I0219 01:46:52.519405 1 libreswan.go:385] start pluto successfully |
The environment information is as follows k8s version: 1.23.17 |
raven logs at the edge root@iZwz9a9kgjp1kko83o03c3Z:/var/log/pods/default_raven-agent-ds-bdphj_536e609f-6f2e-45af-901b-5867c75c83cb/raven-agent# cat 0.log |
kubectl get gw gw-cloud -o yaml apiVersion: raven.openyurt.io/v1beta1
kind: Gateway
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"raven.openyurt.io/v1beta1","kind":"Gateway","metadata":{"annotations":{},"name":"gw-cloud"},"spec":{"endpoints":[{"nodeName":"master","port":10262,"publicIP":"8.138.xxx.xxx","type":"proxy","underNAT":false},{"nodeName":"master","port":4500,"publicIP":"8.138.xxx.xxx","type":"tunnel","underNAT":false}],"exposeType":"PublicIP","proxyConfig":{"Replicas":1,"proxyHTTPPort":"10255,9445","proxyHTTPSPort":"10250,9100"},"tunnelConfig":{"Replicas":1}}}
creationTimestamp: "2024-02-19T02:23:09Z"
generation: 1
name: gw-cloud
resourceVersion: "234330"
uid: 862553b0-ada6-4d1e-84b0-ac42429f210e
spec:
endpoints:
- nodeName: master
port: 10262
publicIP: 8.138.xxx.xxx
type: proxy
- nodeName: master
port: 4500
publicIP: 8.138.xxx.xxx
type: tunnel
exposeType: PublicIP
nodeSelector:
matchLabels:
raven.openyurt.io/gateway: gw-cloud
proxyConfig:
Replicas: 1
proxyHTTPPort: 10255,9445
proxyHTTPSPort: 10250,9100
tunnelConfig:
Replicas: 1
status:
nodes:
- nodeName: master
privateIP: 172.24.72.107
subnets:
- 10.244.0.0/24 |
There are no active endpoints in status, you can check the logs of yurt-manager (gateway-pickup-controller ) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
The text was updated successfully, but these errors were encountered: