Open ohrafaelmartins opened 1 year ago
Fiz alguns testes e consegui reproduzir somente o seguinte erro:
ERROR: failed to create cluster: failed to list nodes: command "docker ps -a --filter label=io.x-k8s.kind.cluster=kind-linuxtips --format '{{.Names}}'" failed with error: exit status 1
Command Output: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
make: *** [kind] Error 1
Como isso ocorre devido o Docker Engine nĆ£o estar executando no momento de criar o cluster, adicionei a instalaĆ§Ć£o e execuĆ§Ć£o do Colima, como alternativa ao Docker Desktop.
Para testar vocĆŖ pode utilizar a versĆ£o do Makefile disponĆvel em:
https://github.com/Rapha-Borges/giropops-senhas/blob/macOS/Makefile
Ola @Rapha-Borges, Continuando minha tentativa de contribuir com o Projeto, relativo ao tema do MacOS.
Fiz alguns ajustes no arquivo Makefile da branch macOS--> repo-rapha-borges. Segue o detalhe das alteraƧƵes (algumas sĆ£o repetidas do que falamos anteriormente):
OS := $(shell uname -s)
que estava em duplicidade;_COMMAND
para _INSTALL
;SHELL := /bin/zsh
para setar o zsh como shell default;brew
;sed
;colima start
afim de configurar os valores CPU e memoria (CPU 4 e Memory 8) para o meus testes;add_cluster
, na variable IP_K8S_IP
foi alterado de awk '{print $$7}'
para awk '{print $7}'
o macOS nĆ£o conseguiu entender o duplo $$.''
no comando sed -i ''
;$(...)
para ${...}
;argocd
separei as instalaƧƵes Linux e MacOS, a instalaĆ§Ć£o do binario do argocd esta sendo feita pelo brew, pois, a instalaĆ§Ć£o via curl, copiando o binario para /usr/local/bin/argocd
gerou problemas entre sh
e a variable PATH
, o sh nao conseguia fazer load no binario ou do path novamente para conseguir encontrar o binario; clean
separei um pouco os S.O.-----------------------
Instalando o ...
-----------------------
Revisando o log de output, encontrei alguns erros subsequentes ao ambiente ficar UP que irei investigar:
main: line 647: ((: 10#1.26.3 > 10#1.17.2: syntax error: invalid arithmetic operator (error token is ".26.3 > 10#1.17.2")
Software:
System Software Overview:
System Version: macOS 13.3 (22E252)
Kernel Version: Darwin 22.4.0
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro16,2
Processor Name: Quad-Core Intel Core i5
Processor Speed: 2 GHz
Number of Processors: 1
Total Number of Cores: 4
kubectl get pods -A jupiter: Sun Apr 9 22:29:48 2023
NAMESPACE NAME READY STATUS RESTARTS AGE
argocd argocd-application-controller-0 1/1 Running 0 17m
argocd argocd-applicationset-controller-57db5f5c7d-jdc7x 1/1 Running 0 17m
argocd argocd-dex-server-c4b8545d-btk82 1/1 Running 0 17m
argocd argocd-notifications-controller-7cddc64d84-v945n 1/1 Running 0 17m
argocd argocd-redis-6b7c6f67db-4rndk 1/1 Running 0 17m
argocd argocd-repo-server-6867ddcc74-wljkc 1/1 Running 0 17m
argocd argocd-server-64957744c9-xhfq4 1/1 Running 0 17m
chaos-mesh chaos-controller-manager-595f7cb9b8-5mq9g 1/1 Running 0 16m
chaos-mesh chaos-controller-manager-595f7cb9b8-d8mcq 1/1 Running 0 16m
chaos-mesh chaos-controller-manager-595f7cb9b8-sb5hn 1/1 Running 0 16m
chaos-mesh chaos-daemon-n9lwd 1/1 Running 0 16m
chaos-mesh chaos-daemon-sshv2 1/1 Running 0 16m
chaos-mesh chaos-dashboard-58bd899f49-tdtqd 1/1 Running 0 16m
default giropops-senhas-774f4576c-qrbnf 2/2 Running 0 17m
default giropops-senhas-774f4576c-vqlx6 2/2 Running 0 17m
default giropops-senhas-774f4576c-vsvmc 2/2 Running 0 17m
default locust-giropops-6f6d6f6674-mr54g 2/2 Running 0 16m
default redis-deployment-6676c55d66-rhfrs 2/2 Running 0 17m
istio-system istio-ingressgateway-6f86b8c88d-6hmcc 1/1 Running 0 18m
istio-system istiod-79d65bf5f4-hwxkb 1/1 Running 0 19m
istio-system kiali-689c9cc945-t4w4v 1/1 Running 0 18m
kube-system coredns-787d4945fb-66g6h 1/1 Running 0 21m
kube-system coredns-787d4945fb-kmw4q 1/1 Running 0 21m
kube-system etcd-kind-linuxtips-control-plane 1/1 Running 0 22m
kube-system kindnet-kkkcx 1/1 Running 0 21m
kube-system kindnet-sm9db 1/1 Running 0 21m
kube-system kindnet-tgxmj 1/1 Running 0 21m
kube-system kube-apiserver-kind-linuxtips-control-plane 1/1 Running 0 22m
kube-system kube-controller-manager-kind-linuxtips-control-plane 1/1 Running 0 22m
kube-system kube-proxy-bhgmk 1/1 Running 0 21m
kube-system kube-proxy-fhxb5 1/1 Running 0 21m
kube-system kube-proxy-flq2n 1/1 Running 0 21m
kube-system kube-scheduler-kind-linuxtips-control-plane 1/1 Running 0 22m
kubernetes-dashboard dashboard-metrics-scraper-7bc864c59-wbz7d 1/1 Running 0 15m
kubernetes-dashboard kubernetes-dashboard-6c7ccbcf87-v9sdh 1/1 Running 0 15m
local-path-storage local-path-provisioner-75f5b54ffd-7x8m7 1/1 Running 0 21m
metallb-system controller-68bf958bf9-z24r2 1/1 Running 0 21m
metallb-system speaker-h8ptq 1/1 Running 0 21m
metallb-system speaker-pcql8 1/1 Running 0 21m
metallb-system speaker-wxcwk 1/1 Running 0 21m
monitoring alertmanager-main-0 2/2 Running 0 20m
monitoring alertmanager-main-1 2/2 Running 0 20m
monitoring alertmanager-main-2 2/2 Running 0 20m
monitoring blackbox-exporter-6495c95d8f-xpkwx 3/3 Running 0 20m
monitoring grafana-795fb69cf-hx9gc 1/1 Running 0 20m
monitoring kube-state-metrics-fb68f87f9-mv2gx 3/3 Running 0 20m
monitoring node-exporter-8skzp 2/2 Running 0 20m
monitoring node-exporter-dfmhb 2/2 Running 0 20m
monitoring node-exporter-ngnpm 2/2 Running 0 20m
monitoring prometheus-adapter-6b88dfd544-4r7hq 1/1 Running 0 20m
monitoring prometheus-adapter-6b88dfd544-dd5mt 1/1 Running 0 20m
monitoring prometheus-k8s-0 2/2 Running 0 20m
monitoring prometheus-k8s-1 2/2 Running 0 20m
monitoring prometheus-operator-584495d569-9wfsb 2/2 Running 0 20m
Anexo, envio o arquivo Makefile com as alteraƧƵes e o output do teste realizado.
Espero ter ajudado.
VAAIII
DescriĆ§Ć£o
Ao tentar rodar
make all
no mac, a instacao dokind
nao funcionou.Precisei rodar
brew install kind
e depois voltar para omake all
URL de reproduĆ§Ć£o
-
Etapas de reproduĆ§Ć£o
Capturas de tela
Logs
Browsers
Opera
OS
Mac