
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
!https://github.com/mmogylenko/kuberhealthy-aws-iam-role-check/workflows/Go/badge.svg !https://github.com/mmogylenko/kuberhealthy-aws-iam-role-check/workflows/Gosec/badge.svg !https://github.com/mmogylenko/kuberhealthy-aws-iam-role-check/workflows/ContainerScan/badge.svg https://img.shields.io/github/tag/mmogylenko/kuberhealthy-aws-iam-role-check.svg](https://github.com/mmogylenko/kuberhealthy-aws-iam-role-check/tags/)
Kuberhealthy AWS IAM Role Check validates if containers running within your cluster can properly make AWS service requests
Check Workflow
Kuberhealthy AWS IAM Role Check Kube Spec Example
yamlapiVersion: comcast.github.io/v1 kind: KuberhealthyCheck metadata: name: aws-iam-role spec: runInterval: 5m timeout: 1m podSpec: containers: - name: main image: mmogylenko/khcheck-aws-iam-role:latest imagePullPolicy: IfNotPresent env: - name: TARGET_ARN value: "arn:aws:iam::000000000000:role/kubernetes-example-role" - name: DEBUG # OPTIONAL value: "1" - name: NODE_NAME # OPTIONAL. Good to know which worker is failing valueFrom: fieldRef: fieldPath: spec.nodeName
, where TARGET_ARN is a target ARN that needs to be validated.
Docker Image
Docker is the only one requirement
bash➜ kuberhealthy-aws-iam-role-check git:(master) ✗ make image docker build -f Dockerfile -t khcheck-aws-iam-role:0.0.1 /Users/mogylenk/Work/code/go/src/kuberhealthy-aws-iam-role-check Sending build context to Docker daemon 177.2kB Step 1/17 : FROM golang:1.15-alpine AS builder ---> 1a87ceb1ace5 Step 2/17 : ENV APP_NAME=khcheck-aws-iam-role ---> Using cache ---> d9cc67423f80 Step 3/17 : ENV APP_VERSION=0.0.1 ---> Using cache ---> b42e694a48e3 Step 4/17 : ENV GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 ---> Using cache ---> 6643a08fac59 Step 5/17 : WORKDIR /build ---> Using cache ---> 1e38fc429b48 Step 6/17 : COPY go.mod . ---> Using cache ---> b3abebc0b899 Step 7/17 : COPY go.sum . ---> Using cache ---> 3197ca1de4b9 Step 8/17 : RUN go mod download ---> Using cache ---> 33755fb06b1d Step 9/17 : COPY . . ---> 1542332f73b0 Step 10/17 : RUN date +%s > buildtime ---> Running in 2c0e1b4a2c17 Removing intermediate container 2c0e1b4a2c17 ---> a077891a7357 Step 11/17 : RUN APP_BUILD_TIME=$(cat buildtime); go build -ldflags="-X 'main.buildTime=${APP_BUILD_TIME}' -X 'main.buildVersion=${APP_VERSION}'" -o ${APP_NAME} . ---> Running in 1ab3c3574013 Removing intermediate container 1ab3c3574013 ---> a23182d51dff Step 12/17 : WORKDIR /app ---> Running in 318a955b424b Removing intermediate container 318a955b424b ---> a3da5a415a0c Step 13/17 : RUN cp /build/${APP_NAME} . ---> Running in 772f64f6126f Removing intermediate container 772f64f6126f ---> 7ffd0977ad0e Step 14/17 : FROM scratch ---> Step 15/17 : COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ ---> Using cache ---> 3a8b5b20871f Step 16/17 : COPY --from=builder /app/${APP_NAME} / ---> a8919dc93f39 Step 17/17 : CMD ["/khcheck-aws-iam-role"] ---> Running in d4f9f919e37e Removing intermediate container d4f9f919e37e ---> 063f91ea50c4 Successfully built 063f91ea50c4 Successfully tagged khcheck-aws-iam-role:0.0.1
Installation
Make sure you are using the latest release of Kuberhealthy 2.2.0.
Run kubectl apply against example spec file]
bashkubectl apply -f khcheck-aws-iam-role.yaml -n kuberhealthy
This project is licensed under the Apache V2 License.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务