-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
add docs about enable kubectl logs feature #1914
add docs about enable kubectl logs feature #1914
Conversation
@@ -95,6 +95,48 @@ Host has mosquit+ already installed and running. Hence skipping the installation | |||
KubeEdge edgecore is running, For logs visit: /var/log/kubeedge/edgecore.log | |||
``` | |||
|
|||
### Enable `kubectl logs` Feature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logs and metric feature ?
@fisherxu PTAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kadisi ,metric
may need wait for a new release of metric-server
. Otherwise user need to make a choice between kubelet
or edgecore
.
docs/setup/keadm.md
Outdated
```bash | ||
wget https://raw.githubusercontent.com/kubeedge/kubeedge/master/build/tools/certgen.sh | ||
chmod +x certgen.sh | ||
./certgen.sh stream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where set this?
if [ -z ${CLOUDCOREIPS} ]; then
echo "You must set CLOUDCOREIPS Env,The environment variable is set to specify the IP addresses of all cloudcore"
echo "If there are more than one IP need to be separated with space."
exit 1
fi
docs/setup/keadm.md
Outdated
+ Set `CLOUDCOREIP` env. The environment variable is set to specify the IP address of cloudcore, or a VIP if you have a highly available cluster. | ||
|
||
```bash | ||
export CLOUDCOREIP="172.20.12.45" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not use your ip for safety, 192.168.0.1 is enough.
docs/setup/keadm.md
Outdated
** Note: ** You need to set the cloudcoreip variable first | ||
|
||
```bash | ||
iptables -t nat -A OUTPUT -p tcp --dport 10350 -j DNAT --to $CLOUDCOREIP:10003 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10350 and 10003 is default value, need to comment which value they point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daixiang0 Done. PTAL.
4111db4
to
d147159
Compare
1f0fe1a
to
5c43213
Compare
@YaozhongZhang Is it possible to enable |
@fisherxu I can try it. Shoud I open another PR? |
Sure, another PR is fine |
docs/setup/keadm.md
Outdated
@@ -95,6 +95,49 @@ Host has mosquit+ already installed and running. Hence skipping the installation | |||
KubeEdge edgecore is running, For logs visit: /var/log/kubeedge/edgecore.log | |||
``` | |||
|
|||
### Enable `kubectl logs` Feature | |||
+ First , you need to make sure you can find the kubernetes `ca.crt` and `ca.key` files. If you set up your kubernetes cluster by `kubeadm` , those files will be in `/etc/kubernetes/pki/` dir. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to write in this format:
1. make sure ...
2. set env ...
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daixiang0 Done. PTAL.
5c43213
to
99dffb7
Compare
99dffb7
to
65923e5
Compare
@@ -95,6 +95,49 @@ Host has mosquit+ already installed and running. Hence skipping the installation | |||
KubeEdge edgecore is running, For logs visit: /var/log/kubeedge/edgecore.log | |||
``` | |||
|
|||
### Enable `kubectl logs` Feature | |||
1. Make sure you can find the kubernetes `ca.crt` and `ca.key` files. If you set up your kubernetes cluster by `kubeadm` , those files will be in `/etc/kubernetes/pki/` dir. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the ca.crt
and ca.key
used for here? @YaozhongZhang
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fisherxu They are used to sign the certificates used by CloudStream.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okey
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fisherxu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind documentation
What this PR does / why we need it:
restore docs about how to enable kubectl logs feature which is been deleted by mistake before
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: