Skip to content

Commit 313d286

Browse files
Update README
1 parent 0a6c3e1 commit 313d286

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ RUN apt-get update && \
2626
apt-get install -y --no-install-recommends curl ca-certificates jq iproute2 less bash-completion unzip sysstat acl net-tools iputils-ping telnet dnsutils wget vim git && \
2727
curl -sLf https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/${ARCH}/kubectl > /usr/bin/kubectl && chmod +x /usr/bin/kubectl && \
2828
git clone https://github.com/ahmetb/kubectx /opt/kubectx && chmod -R 755 /opt/kubectx && ln -s /opt/kubectx/kubectx /usr/local/bin/kubectx && ln -s /opt/kubectx/kubens /usr/local/bin/kubens && \
29+
git clone --depth 1 https://github.com/ahmetb/kubectl-aliases /opt/kubectl-aliases && chmod -R 755 /opt/kubectl-aliases && \
2930
git clone --depth 1 https://github.com/junegunn/fzf /opt/fzf && chmod -R 755 /opt/fzf && /opt/fzf/install && ln -s /opt/fzf/bin/fzf /usr/local/bin/fzf && \
30-
curl -sLf https://raw.githubusercontent.com/ahmetb/kubectl-alias/master/.kubectl_aliases > /opt/kubectl_aliases/.kubectl_aliases && chmod -R 755 /opt/kubectl_aliases && \
3131
chmod +x /usr/bin/gotty && \
3232
DEBIAN_FRONTEND=noninteractive apt-get autoremove -y && \
3333
DEBIAN_FRONTEND=noninteractive apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,14 @@ http://<webkubectl-address>:<port>/terminal/?token=<token fetched from api>
124124
- **Authentication**:By default all resources can be accessed without any authentication, to restrict anonymous access, you can enable the basic authentication of gotty, see [how to](https://github.com/webkubectl/gotty/blob/master/GOTTY_USAGE.md#options).
125125
- **SSL/TLS**:By default all traffic between the server and clients are NOT encrypted, we recommend you enable SSL/TLS option of gotty, see [how to](https://github.com/webkubectl/gotty/blob/master/GOTTY_USAGE.md#options). Alternatively you can deploy Web Kubectl behind a proxy and enable SSL/TLS for the proxy, please note that the proxy should support WebSocket protocol.
126126

127-
# Build-in [kubectl-plugins](https://github.com/topics/kubectl-plugins)
128-
- [ahmetb/kubectx](https://github.com/ahmetb/kubectx)
127+
# Extensions
128+
- [kubectl-plugins](https://github.com/topics/kubectl-plugins): [ahmetb/kubectx](https://github.com/ahmetb/kubectx)
129+
- [ahmetb/kubectl-aliases](https://github.com/ahmetb/kubectl-aliases)
129130

130131
# Dependencies
131132
- [webkubectl/gotty](https://github.com/webkubectl/gotty)
132133
- [ahmetb/kubectx](https://github.com/ahmetb/kubectx)
134+
- [ahmetb/kubectl-aliases](https://github.com/ahmetb/kubectl-aliases)
133135
- [junegunn/fzf](https://github.com/junegunn/fzf)
134136

135137
# License

README.zh_CN.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,12 +125,14 @@ http://<webkubectl-address>:<port>/terminal/?token=<API响应中的Token>
125125
- **Authentication**:默认情况下,无需进行任何身份验证即可访问所有资源,若要限制匿名访问,可以启用gotty的基本身份验证,请参见[操作方法](https://github.com/webkubectl/gotty/blob/master/GOTTY_USAGE.md#options)
126126
- **SSL/TLS**:默认情况下,服务器与客户端之间的所有流量均未加密,我们建议您启用gotty的SSL / TLS选项,请参见[操作方法](https://github.com/webkubectl/gotty/blob/master/GOTTY_USAGE.md#options)。或者,您可以在代理后面部署Web Kubectl并为该代理启用SSL / TLS,请注意,您的代理需要支持WebSocket协议。
127127

128-
# 内置的[kubectl插件](https://github.com/topics/kubectl-plugins)
129-
- [ahmetb/kubectx](https://github.com/ahmetb/kubectx)
128+
# 扩展
129+
- [kubectl插件](https://github.com/topics/kubectl-plugins): [ahmetb/kubectx](https://github.com/ahmetb/kubectx)
130+
- [ahmetb/kubectl-aliases](https://github.com/ahmetb/kubectl-aliases)
130131

131132
# 依赖
132133
- [webkubectl/gotty](https://github.com/webkubectl/gotty)
133134
- [ahmetb/kubectx](https://github.com/ahmetb/kubectx)
135+
- [ahmetb/kubectl-aliases](https://github.com/ahmetb/kubectl-aliases)
134136
- [junegunn/fzf](https://github.com/junegunn/fzf)
135137

136138
# 许可

init-kubectl.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ mkdir -p /nonexistent
1212
mount -t tmpfs -o size=${SESSION_STORAGE_SIZE} tmpfs /nonexistent
1313
cd /nonexistent
1414
cp /root/.bashrc ./
15-
echo 'source /opt/kubectl_aliases/.kubectl_aliases' >> .bashrc
15+
echo 'source /opt/kubectl-aliases/.kubectl_aliases' >> .bashrc
1616
mkdir -p .kube
1717

1818
export HOME=/nonexistent

0 commit comments

Comments
 (0)