koderover / zadig

Zadig is a cloud native, distributed, developer-oriented DevOps platform
https://koderover.com
Other
2.74k stars 819 forks source link

[bug]Run ZadigX failed on Mac M2, the image zadig-dex haven`t supported arm64 #2570

Closed ethananony closed 1 year ago

ethananony commented 1 year ago

What happened? Run ZadigX failed on Mac M2, the image koderover.tencentcloudcr.com/koderover-public/dex:ee-1.4.0 havent supportedarm64`

What did you expect to happen? the image koderover.tencentcloudcr.com/koderover-public/dex:ee-1.4.0 is runnable on Mac M2

How To Reproduce it(as minimally and precisely as possible)

nerdctl --namespace k8s.io pull koderover.tencentcloudcr.com/koderover-public/dex:ee-1.4.0
nerdctl --namespace k8s.io inspect koderover.tencentcloudcr.com/koderover-public/dex:ee-1.4.0 | grep Arch
# you will get '"Architecture": "amd64",' but not 'arm64'

Install Methods

Versions Used zadig: v1.4.0(ZadigX)

kubernetes:

Environment Self-hosting Cloud Provider:

Resources:

OS:

Apple M2 13.3.1

Services Status

kubectl version

WARNING: This version information is deprecated and will be replaced with the output from kubectl version --short.  Use --output=yaml|json to get the full version.
Client Version: version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.0", GitCommit:"1b4df30b3cdfeaba6024e81e559a6cd09a089d65", GitTreeState:"clean", BuildDate:"2023-04-11T17:04:23Z", GoVersion:"go1.20.3", Compiler:"gc", Platform:"darwin/arm64"}
Kustomize Version: v5.0.1
Server Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.3", GitCommit:"aef86a93758dc3cb2c658dd9657ab4ad4afc21cb", GitTreeState:"clean", BuildDate:"2022-07-13T14:23:26Z", GoVersion:"go1.18.3", Compiler:"gc", Platform:"linux/arm64"}
WARNING: version difference between client (1.27) and server (1.24) exceeds the supported minor version skew of +/-1

kubectl get po -n `zadig-installed-namespace`

NAME                               READY   STATUS             RESTARTS      AGE
aslan-5f96fcfd86-jq4h2             2/2     Running            0             43m
cron-c9b9cd765-7hhbj               2/2     Running            4 (59s ago)   43m
dind-0                             1/1     Running            0             43m
discovery-86f556884d-tsj78         1/1     Running            0             43m
gateway-6947d79ddf-4dpzj           1/1     Running            0             43m
gateway-proxy-6cd995cb57-v7n6n     1/1     Running            0             43m
gloo-66b5c88cc8-j5mk9              1/1     Running            0             43m
hub-server-576445cf67-5hvb5        1/1     Running            1 (26m ago)   43m
kr-minio-6f78b66b6b-8w9v8          1/1     Running            0             43m
kr-minio-make-bucket-job-zx8w9     0/1     Completed          0             43m
kr-mongodb-0                       1/1     Running            0             43m
kr-mysql-0                         1/1     Running            0             43m
nsqlookup-0                        1/1     Running            0             43m
opa-6bbfcf48f4-xk2kb               1/1     Running            0             43m
plutus-vendor-6fb49758d8-2rqlf     1/1     Running            2 (20m ago)   43m
resource-server-796fd9c4dd-nck8w   1/1     Running            0             43m
vendor-portal-75ff5ddf84-wnjwx     1/1     Running            0             43m
warpdrive-776c78d96-d4br9          2/2     Running            0             43m
warpdrive-776c78d96-q8zlj          2/2     Running            0             43m
zadig-portal-b7bdf67db-jz7gn       1/1     Running            0             43m
zadig-zadig-dex-6fff9cc96b-mrc7q   0/1     CrashLoopBackOff   10 (6s ago)   43m
# paste output here

If there is abnormal service, please provide service log

kubectl describe pods zadig-zadig-dex-6fff9cc96b-mrc7q -n zadig

Name:             zadig-zadig-dex-6fff9cc96b-mrc7q
Namespace:        zadig
Priority:         0
Service Account:  zadig-zadig-dex
Node:             lima-k8s2/192.168.5.15
Start Time:       Wed, 26 Apr 2023 15:08:31 +0800
Labels:           app.kubernetes.io/instance=zadig-zadig
                  app.kubernetes.io/name=dex
                  pod-template-hash=6fff9cc96b
Annotations:      checksum/config: 87740929ade27e607aba0f0244403cfa1f1954ddbad1a9f96bb731ad0313c9a7
Status:           Running
IP:               10.244.0.69
IPs:
  IP:           10.244.0.69
Controlled By:  ReplicaSet/zadig-zadig-dex-6fff9cc96b
Containers:
  dex:
    Container ID:  containerd://111962fc0a6cf5474a6c5ec4939f500086648fde3758c6ba625d3b4d439f62bc
    Image:         koderover.tencentcloudcr.com/koderover-public/dex:ee-1.4.0
    Image ID:      koderover.tencentcloudcr.com/koderover-public/dex@sha256:bd42c852797f8ee89e024e3acd37ff57514d1aeb3550bbda1efaa7d00c0bd421
    Ports:         5556/TCP, 5558/TCP
    Host Ports:    0/TCP, 0/TCP
    Args:
      dex
      serve
      --web-http-addr
      0.0.0.0:5556
      --telemetry-addr
      0.0.0.0:5558
      /etc/dex/config.yaml
    State:          Waiting
      Reason:       CrashLoopBackOff
    Last State:     Terminated
      Reason:       Error
      Exit Code:    1
      Started:      Wed, 26 Apr 2023 15:52:20 +0800
      Finished:     Wed, 26 Apr 2023 15:52:20 +0800
    Ready:          False
    Restart Count:  10
    Liveness:       http-get http://:telemetry/healthz/live delay=0s timeout=1s period=10s #success=1 #failure=3
    Readiness:      http-get http://:telemetry/healthz/ready delay=0s timeout=1s period=10s #success=1 #failure=3
    Environment:    <none>
    Mounts:
      /etc/dex from config (ro)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-mm7d9 (ro)
Conditions:
  Type              Status
  Initialized       True
  Ready             False
  ContainersReady   False
  PodScheduled      True
Volumes:
  config:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  zadig-zadig-dex
    Optional:    false
  kube-api-access-mm7d9:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 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
  ----     ------     ----                  ----               -------
  Normal   Scheduled  44m                   default-scheduler  Successfully assigned zadig/zadig-zadig-dex-6fff9cc96b-mrc7q to lima-k8s2
  Normal   Pulled     42m                   kubelet            Successfully pulled image "koderover.tencentcloudcr.com/koderover-public/dex:ee-1.4.0" in 2m8.520398259s
  Warning  Unhealthy  42m                   kubelet            Readiness probe failed: Get "http://10.244.0.69:5558/healthz/ready": dial tcp 10.244.0.69:5558: connect: connection refused
  Normal   Pulled     23m                   kubelet            Successfully pulled image "koderover.tencentcloudcr.com/koderover-public/dex:ee-1.4.0" in 19m26.220124422s
  Normal   Pulled     22m                   kubelet            Successfully pulled image "koderover.tencentcloudcr.com/koderover-public/dex:ee-1.4.0" in 40.769540462s
  Normal   Pulled     22m                   kubelet            Successfully pulled image "koderover.tencentcloudcr.com/koderover-public/dex:ee-1.4.0" in 1.653359676s
  Normal   Pulling    21m (x5 over 44m)     kubelet            Pulling image "koderover.tencentcloudcr.com/koderover-public/dex:ee-1.4.0"
  Normal   Created    21m (x5 over 42m)     kubelet            Created container dex
  Normal   Started    21m (x5 over 42m)     kubelet            Started container dex
  Normal   Pulled     21m                   kubelet            Successfully pulled image "koderover.tencentcloudcr.com/koderover-public/dex:ee-1.4.0" in 1.643132504s
  Warning  BackOff    4m23s (x95 over 22m)  kubelet            Back-off restarting failed container

kubectl logs --tail=500 zadig-zadig-dex-6fff9cc96b-mrc7q -n zadig

exec /entrypoint.sh: exec format error

# paste output here
AllenShen commented 1 year ago

thanks for your feedback, image koderover.tencentcloudcr.com/koderover-public/dex:ee-1.4.0 has been updated, please try again.

ethananony commented 1 year ago

It`s running. Thanks for your support.