首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >特使代理standard_init_linux.go:228

特使代理standard_init_linux.go:228
EN

Stack Overflow用户
提问于 2022-10-19 21:14:08
回答 1查看 32关注 0票数 0

我正试图在aks集群上设置一个特使代理程序,并在吊舱上得到后续错误。

代码语言:javascript
复制
kubectl logs api-gateway-6b7875b58c-6m62h  
W1019 16:55:46.464787   15617 azure.go:92] WARNING: the azure auth plugin is deprecated in v1.22+, unavailable in v1.26+; use https://github.com/Azure/kubelogin instead.
To learn more, consult https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins
standard_init_linux.go:228: exec user process caused: exec format error

代码语言:javascript
复制
kubectl describe pod api-gateway-6b7875b58c-6m62h  
W1019 17:10:56.983086   16532 azure.go:92] WARNING: the azure auth plugin is deprecated in v1.22+, unavailable in v1.26+; use https://github.com/Azure/kubelogin instead.
To learn more, consult https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins
Name:             api-gateway-6b7875b58c-6m62h
Namespace:        namespace
Priority:         0
Service Account:  default
Node:             aks-k8spool-33070793-vmss00000c/10.15.90.16
Start Time:       Wed, 19 Oct 2022 15:14:53 -0400
Labels:           app=api-gateway
                  pod-template-hash=6b7875b58c
Annotations:      kubernetes.io/limit-ranger:
                    LimitRanger plugin set: cpu, memory request for container api-gateway; cpu, memory limit for container api-gateway
Status:           Running
IP:               172.x.x.x
IPs:
  IP:           172.x.x.x
Controlled By:  ReplicaSet/api-gateway-6b7875b58c
Containers:
  api-gateway:
    Container ID:   containerd://90d2fb5412f54705fadde1656bd984e93a3d4fb851b6e2d0ca3f6c5343e9813d
    Image:          mck-ontada-sre.jfrog.io/g2-proxy/api-gateway:2.0-arm64
    Image ID:       mck-ontada-sre.jfrog.io/g2-proxy/api-gateway@sha256:3786bc52191e127848b80b00d7edcbf4d4103ca7a030c86f2b3d946df7b2ef2f
    Ports:          8080/TCP, 8001/TCP
    Host Ports:     0/TCP, 0/TCP
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    1
      Started:      Wed, 19 Oct 2022 17:08:05 -0400
      Finished:     Wed, 19 Oct 2022 17:08:05 -0400
    Ready:          False
    Restart Count:  27
    Limits:
      cpu:     500m
      memory:  512M
    Requests:
      cpu:        250m
      memory:     256M
    Environment:  <none>
    Mounts:
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-s7bks (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             False 
  ContainersReady   False 
  PodScheduled      True 
Volumes:
  kube-api-access-s7bks:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   Burstable
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/memory-pressure:NoSchedule op=Exists
                             node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason   Age                   From     Message
  ----     ------   ----                  ----     -------
  Warning  BackOff  55s (x534 over 115m)  kubelet  Back-off restarting failed container

吊舱正在通过撞击回滚。

代码语言:javascript
复制
kubectl get pods  
W1019 17:02:08.682749   16033 azure.go:92] WARNING: the azure auth plugin is deprecated in v1.22+, unavailable in v1.26+; use https://github.com/Azure/kubelogin instead.
To learn more, consult https://kubernetes.io/docs/reference/access-authn-authz/authentication/#client-go-credential-plugins
NAME                                    READY   STATUS             RESTARTS         AGE
api-gateway-6b7875b58c-6m62h            0/1     CrashLoopBackOff   25 (4m16s ago)   107m

下面是构建在Mac M1芯片上的docker文件

代码语言:javascript
复制
FROM envoyproxy/enoy-dev:latest

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get -qq update \
    && apt-get -qq install --no-install-recommends -y curl \
    && apt-get -qq autoremove -y \
    && apt-get clean \
    && rm -rf /tmp/* /var/tmp/* /var/lib/apt/lists/*
COPY ./envoy.yaml /etc/envoy.yaml
RUN chmod go+r /etc/envoy.yaml
CMD ["/usr/local/bin/envoy", "-c", "/etc/envoy.yaml", "--service-cluster", "mcpx-gateway"]

由于M1芯片的架构不同,我使用此命令重新构建了映像,以消除任何问题。

代码语言:javascript
复制
docker build --platform=linux/arm64 -t api-gateway:2.0-arm64 .

我正在从jfrog工场中提取图像。

如有任何意见,敬请见谅。

EN

回答 1

Stack Overflow用户

发布于 2022-10-20 19:03:17

问题是在苹果m1上创建了docker映像,并通过构建amd64平台解决了这一问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74131974

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档