badtuxx / giropops-senhas-labs

Esse repositĆ³rio foi criado com as maravilhosas pessoas que estavam no chat da live da LINUXtips na Twitch.
GNU General Public License v3.0
90 stars 36 forks source link

šŸ’” [make all] - instalacao no mac os #18

Open ohrafaelmartins opened 1 year ago

ohrafaelmartins commented 1 year ago

DescriĆ§Ć£o

Ao tentar rodar make all no mac, a instacao do kindnao funcionou.

Precisei rodar brew install kind e depois voltar para o make all

URL de reproduĆ§Ć£o

-

Etapas de reproduĆ§Ć£o

1 - clone do projeto
2 - acessar a pasta
3 - rodar o comando `make all` no mac
4 - se nao tiver instalado o `kind` vai gerar erro

Capturas de tela

-

Logs

/bin/sh: /usr/local/bin/kind: cannot execute binary file

Browsers

Opera

OS

Mac

Rapha-Borges commented 1 year ago

ComentƔrio

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

SoluĆ§Ć£o

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.

Teste

Para testar vocĆŖ pode utilizar a versĆ£o do Makefile disponĆ­vel em:

https://github.com/Rapha-Borges/giropops-senhas/blob/macOS/Makefile
paulosouzabr commented 1 year ago

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):

Pontos que precisam de mais investigaĆ§Ć£o.

Revisando o log de output, encontrei alguns erros subsequentes ao ambiente ficar UP que irei investigar:

DescriĆ§Ć£o do ambiente onde foi realizado os testes:

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

Uma registro de todos os containers rodando

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

Makefile.txt output-make-all-1.txt