Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wrong path to Helm values file in the quickstart #3630

Merged
merged 2 commits into from
May 16, 2022

Conversation

sivchari
Copy link
Member

@sivchari sivchari commented May 15, 2022

What this PR does / why we need it:

I fixed quick start guide.
https://raw.githubusercontent.com/pipe-cd/manifests/{{< blocks/latest_version >}}/quickstart/control-plane-values.yaml is incorrect path. (404)

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

None

@@ -20,7 +20,7 @@ Note: It's not required to install the PipeCD control plane to the cluster where
``` console
helm install pipecd oci://ghcr.io/pipe-cd/chart/pipecd --version {{< blocks/latest_version >}} \
--namespace pipecd --create-namespace \
--values https://raw.githubusercontent.com/pipe-cd/manifests/{{< blocks/latest_version >}}/quickstart/control-plane-values.yaml
--values https://raw.githubusercontent.com/pipe-cd/pipecd/{< blocks/latest_version >}}/quickstart/control-plane-values.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
--values https://raw.githubusercontent.com/pipe-cd/pipecd/{< blocks/latest_version >}}/quickstart/control-plane-values.yaml
--values https://raw.githubusercontent.com/pipe-cd/pipecd/{{< blocks/latest_version >}}/quickstart/control-plane-values.yaml

@khanhtc1202
Copy link
Member

khanhtc1202 commented May 15, 2022

Nice catch 👍 Could you update docs under /docs-dev, /docs-0.30.x and /docs-0.31.x either 😄
ref: update docs guideline

@khanhtc1202 khanhtc1202 requested a review from nghialv May 15, 2022 13:44
@sivchari
Copy link
Member Author

OK, I do. BTW, I tried quickstart on kind of Apple Silicon's Mac. The following is Pod's status.

pipecd               pipecd-cache-6fbf867d56-dl47f                       1/1     Running            0          12m
pipecd               pipecd-gateway-5ccd5cb8f8-pmvpx                     0/1     CrashLoopBackOff   7          12m
pipecd               pipecd-minio-6ffb69ff5-nw989                        0/1     CrashLoopBackOff   7          12m
pipecd               pipecd-mysql-55bc4f9495-ghx44                       0/1     ErrImagePull       0          12m
pipecd               pipecd-ops-d6fbdbd49-5tdkl                          0/1     CrashLoopBackOff   7          12m
pipecd               pipecd-server-7d456db4cb-d64th                      0/1     CrashLoopBackOff   7          12m

I confirm problem to do kubectl get event -n pipecd.

LAST SEEN   TYPE      REASON              OBJECT                                 MESSAGE
13m         Normal    Scheduled           pod/pipecd-cache-6fbf867d56-dl47f      Successfully assigned pipecd/pipecd-cache-6fbf867d56-dl47f to kind-control-plane
13m         Normal    Pulling             pod/pipecd-cache-6fbf867d56-dl47f      Pulling image "redis:5.0.5-alpine3.9"
13m         Normal    Pulled              pod/pipecd-cache-6fbf867d56-dl47f      Successfully pulled image "redis:5.0.5-alpine3.9" in 36.608313278s
13m         Normal    Created             pod/pipecd-cache-6fbf867d56-dl47f      Created container cache
13m         Normal    Started             pod/pipecd-cache-6fbf867d56-dl47f      Started container cache
13m         Normal    SuccessfulCreate    replicaset/pipecd-cache-6fbf867d56     Created pod: pipecd-cache-6fbf867d56-dl47f
13m         Normal    ScalingReplicaSet   deployment/pipecd-cache                Scaled up replica set pipecd-cache-6fbf867d56 to 1
13m         Normal    Scheduled           pod/pipecd-gateway-5ccd5cb8f8-pmvpx    Successfully assigned pipecd/pipecd-gateway-5ccd5cb8f8-pmvpx to kind-control-plane
13m         Normal    Pulling             pod/pipecd-gateway-5ccd5cb8f8-pmvpx    Pulling image "envoyproxy/envoy-alpine:v1.18.3"
13m         Normal    Pulled              pod/pipecd-gateway-5ccd5cb8f8-pmvpx    Successfully pulled image "envoyproxy/envoy-alpine:v1.18.3" in 13.172473258s
12m         Normal    Created             pod/pipecd-gateway-5ccd5cb8f8-pmvpx    Created container envoy
12m         Normal    Started             pod/pipecd-gateway-5ccd5cb8f8-pmvpx    Started container envoy
12m         Normal    Pulled              pod/pipecd-gateway-5ccd5cb8f8-pmvpx    Container image "envoyproxy/envoy-alpine:v1.18.3" already present on machine
3m39s       Warning   BackOff             pod/pipecd-gateway-5ccd5cb8f8-pmvpx    Back-off restarting failed container
13m         Normal    SuccessfulCreate    replicaset/pipecd-gateway-5ccd5cb8f8   Created pod: pipecd-gateway-5ccd5cb8f8-pmvpx
13m         Normal    ScalingReplicaSet   deployment/pipecd-gateway              Scaled up replica set pipecd-gateway-5ccd5cb8f8 to 1
13m         Normal    Scheduled           pod/pipecd-minio-6ffb69ff5-nw989       Successfully assigned pipecd/pipecd-minio-6ffb69ff5-nw989 to kind-control-plane
13m         Normal    Pulling             pod/pipecd-minio-6ffb69ff5-nw989       Pulling image "minio/minio:RELEASE.2020-08-26T00-00-49Z"
13m         Normal    Pulled              pod/pipecd-minio-6ffb69ff5-nw989       Successfully pulled image "minio/minio:RELEASE.2020-08-26T00-00-49Z" in 7.157791498s
12m         Normal    Created             pod/pipecd-minio-6ffb69ff5-nw989       Created container minio
12m         Normal    Started             pod/pipecd-minio-6ffb69ff5-nw989       Started container minio
12m         Normal    Pulled              pod/pipecd-minio-6ffb69ff5-nw989       Container image "minio/minio:RELEASE.2020-08-26T00-00-49Z" already present on machine
3m37s       Warning   BackOff             pod/pipecd-minio-6ffb69ff5-nw989       Back-off restarting failed container
13m         Normal    SuccessfulCreate    replicaset/pipecd-minio-6ffb69ff5      Created pod: pipecd-minio-6ffb69ff5-nw989
13m         Normal    ScalingReplicaSet   deployment/pipecd-minio                Scaled up replica set pipecd-minio-6ffb69ff5 to 1
13m         Normal    Scheduled           pod/pipecd-mysql-55bc4f9495-ghx44      Successfully assigned pipecd/pipecd-mysql-55bc4f9495-ghx44 to kind-control-plane
11m         Normal    Pulling             pod/pipecd-mysql-55bc4f9495-ghx44      Pulling image "mysql:8.0.23"
11m         Warning   Failed              pod/pipecd-mysql-55bc4f9495-ghx44      Failed to pull image "mysql:8.0.23": rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/library/mysql:8.0.23": no match for platform in manifest: not found
11m         Warning   Failed              pod/pipecd-mysql-55bc4f9495-ghx44      Error: ErrImagePull
3m33s       Normal    BackOff             pod/pipecd-mysql-55bc4f9495-ghx44      Back-off pulling image "mysql:8.0.23"
10m         Warning   Failed              pod/pipecd-mysql-55bc4f9495-ghx44      Error: ImagePullBackOff
13m         Normal    SuccessfulCreate    replicaset/pipecd-mysql-55bc4f9495     Created pod: pipecd-mysql-55bc4f9495-ghx44
13m         Normal    ScalingReplicaSet   deployment/pipecd-mysql                Scaled up replica set pipecd-mysql-55bc4f9495 to 1
13m         Normal    Scheduled           pod/pipecd-ops-d6fbdbd49-5tdkl         Successfully assigned pipecd/pipecd-ops-d6fbdbd49-5tdkl to kind-control-plane
13m         Normal    Pulling             pod/pipecd-ops-d6fbdbd49-5tdkl         Pulling image "ghcr.io/pipe-cd/pipecd:v0.31.0"
13m         Normal    Pulled              pod/pipecd-ops-d6fbdbd49-5tdkl         Successfully pulled image "ghcr.io/pipe-cd/pipecd:v0.31.0" in 28.507397118s
12m         Normal    Created             pod/pipecd-ops-d6fbdbd49-5tdkl         Created container ops
12m         Normal    Started             pod/pipecd-ops-d6fbdbd49-5tdkl         Started container ops
12m         Normal    Pulled              pod/pipecd-ops-d6fbdbd49-5tdkl         Container image "ghcr.io/pipe-cd/pipecd:v0.31.0" already present on machine
3m32s       Warning   BackOff             pod/pipecd-ops-d6fbdbd49-5tdkl         Back-off restarting failed container
13m         Normal    SuccessfulCreate    replicaset/pipecd-ops-d6fbdbd49        Created pod: pipecd-ops-d6fbdbd49-5tdkl
13m         Normal    ScalingReplicaSet   deployment/pipecd-ops                  Scaled up replica set pipecd-ops-d6fbdbd49 to 1
13m         Normal    Scheduled           pod/pipecd-server-7d456db4cb-d64th     Successfully assigned pipecd/pipecd-server-7d456db4cb-d64th to kind-control-plane
13m         Normal    Pulling             pod/pipecd-server-7d456db4cb-d64th     Pulling image "ghcr.io/pipe-cd/pipecd:v0.31.0"
13m         Normal    Pulled              pod/pipecd-server-7d456db4cb-d64th     Successfully pulled image "ghcr.io/pipe-cd/pipecd:v0.31.0" in 29.141659664s
12m         Normal    Created             pod/pipecd-server-7d456db4cb-d64th     Created container server
12m         Normal    Started             pod/pipecd-server-7d456db4cb-d64th     Started container server
12m         Normal    Pulled              pod/pipecd-server-7d456db4cb-d64th     Container image "ghcr.io/pipe-cd/pipecd:v0.31.0" already present on machine
3m30s       Warning   BackOff             pod/pipecd-server-7d456db4cb-d64th     Back-off restarting failed container
13m         Normal    SuccessfulCreate    replicaset/pipecd-server-7d456db4cb    Created pod: pipecd-server-7d456db4cb-d64th
13m         Normal    ScalingReplicaSet   deployment/pipecd-server               Scaled up replica set pipecd-server-7d456db4cb to 1

I think it seems like this problem is occurred by invalid platform. How to resolve it.

@sivchari sivchari force-pushed the fix-quickstart-installation branch from 5def083 to c225435 Compare May 15, 2022 13:53
@khanhtc1202
Copy link
Member

khanhtc1202 commented May 15, 2022

pipecd pipecd-mysql-55bc4f9495-ghx44 0/1 ErrImagePull 0

@sivchari From this error message, this is caused by docker4mac trying to pull MySQL official image from docker-hub. Since docker-hub does not contain MySQL image for M1, you should use the following command to pull the MySQL image.

docker pull --platform linux/amd64 mysql:8.0.23

After this command, helm will use the local pulled image, so there is no need to worry about that later 😄
Should we update docs to mention this case?

Copy link
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool 🙌

@sivchari
Copy link
Member Author

docker images

REPOSITORY                 TAG               IMAGE ID       CREATED         SIZE
suburi_ad                  latest            15add839a585   3 hours ago     8.93MB
suburi_user                latest            19db422f3901   28 hours ago    8.93MB
golang                     1.18              2c818329d3a1   3 days ago      819MB
mysql                      latest            76152be68449   4 days ago      524MB
redis                      7.0-rc-bullseye   41c805ed0c98   3 weeks ago     111MB
hello-world                latest            46331d942d63   8 weeks ago     9.14kB
kindest/node               <none>            d372b674475a   11 months ago   1.1GB
mysql                      8.0.23            cbe8815cbea8   13 months ago   546MB
gcr.io/distroless/static   latest            e986802a07e6   52 years ago    2.36MB

shell script

helm install pipecd oci://ghcr.io/pipe-cd/chart/pipecd --version v0.31.0 --namespace pipecd --create-namespace --values https://raw.githubusercontent.com/pipe-cd/pipecd/v0.31.0/quickstart/control-plane-values.yaml

kubectl get pod -n pipecd

NAME                              READY   STATUS             RESTARTS   AGE
pipecd-cache-6fbf867d56-xht26     1/1     Running            0          21s
pipecd-gateway-5ccd5cb8f8-lzjrq   0/1     CrashLoopBackOff   1          21s
pipecd-minio-6ffb69ff5-g8s54      0/1     Error              2          21s
pipecd-mysql-55bc4f9495-hqcjm     0/1     ImagePullBackOff   0          21s
pipecd-ops-d6fbdbd49-564wg        0/1     CrashLoopBackOff   1          21s
pipecd-server-7d456db4cb-882px    0/1     CrashLoopBackOff   1          21s

kubectl get events -n pipecd

13m         Normal    Scheduled           pod/pipecd-mysql-55bc4f9495-bfwvq      Successfully assigned pipecd/pipecd-mysql-55bc4f9495-bfwvq to kind-control-plane
12m         Normal    Pulling             pod/pipecd-mysql-55bc4f9495-bfwvq      Pulling image "mysql:8.0.23"
11m         Warning   Failed              pod/pipecd-mysql-55bc4f9495-bfwvq      Failed to pull image "mysql:8.0.23": rpc error: code = NotFound desc = failed to pull and unpack image "docker.io/library/mysql:8.0.23": no match for platform in manifest: not found
11m         Warning   Failed              pod/pipecd-mysql-55bc4f9495-bfwvq      Error: ErrImagePull
8m35s       Normal    BackOff             pod/pipecd-mysql-55bc4f9495-bfwvq      Back-off pulling image "mysql:8.0.23"

I can't 😢

@nghialv nghialv changed the title fix helm --values path Fix wrong path to Helm values file in the quickstart May 16, 2022
@nghialv
Copy link
Member

nghialv commented May 16, 2022

@sivchari Nice catch! Thank you. 💯

@nghialv nghialv merged commit 08402d6 into pipe-cd:master May 16, 2022
@khanhtc1202
Copy link
Member

@sivchari, thanks for reporting. Could you open an issue for the error and send all possible logs there. We will find out a way to handle it there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants