Istio proxy uid 1337

本文探讨了使用istioctl kube-inject生成的init-container中神秘的UID1337参数,解释了其在Istio环境中的作用及为何应用不应使用此UID。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

使用 istioctl kube-inject 生成的 init-container ,会有如下格式的参数:

      initContainers:
      - args:
        - -p
        - "15001"
        - -u
        - "1337"
        - -m
        - REDIRECT
        - -i
        - '*'
        - -x
        - ""
        - -b
        - "9080"
        - -d
        - ""

其中 uid 1337 很诡异,根据 istio./tools/deb/istio-iptables.sh -h 命令文档说明:

-u: Specify the UID of the user for which the redirection is not
      applied. Typically, this is the UID of the proxy container
      (default to uid of $ENVOY_USER, uid of istio_proxy, or 1337)

以及代码 istio-proxy uid hardcoded 可以定位到 1337istio 写死在代码里面的,后续 istio 加上了说明:https://github.com/istio/istio.io/pull/2940/files

_**Application UIDs**_: Do **not** run applications as a user with the user ID (UID) value of **1337**.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值