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

Unable to deploy 1.7 rc1 manifests using the one line script and Kustomize 5 #2401

Closed
DomFleischmann opened this issue Feb 27, 2023 · 2 comments

Comments

@DomFleischmann
Copy link
Contributor

I've been trying to deploy Kubeflow 1.7 RC1 with kustomize 5 and get into an endless loop with the following error showing up:

The request is invalid: patch: Invalid value: "map[2023/02/27 11:40:30 well-defined vars that were never replaced:kfp-app-version,kfp-app-name metadata:map[annotations:map[kubectl.kubernetes.io/last-applied-configuration:{\"2023/02/27 11:40:30 well-defined vars that were never replaced\":\"kfp-app-version,kfp-app-name\",\"apiVersion\":\"v1\",\"kind\":\"Namespace\",\"metadata\":{\"annotations\":{},\"name\":\"auth\"}}\n]]]": strict decoding error: unknown field "2023/02/27 11:40:30 well-defined vars that were never replaced"

When looking for the manifest which uses the kfp-app-name and kfp-app-version I've only been able to see the application resource but as I understand this resource is not installed in the default deployment.

Steps to reproduce:

# Clone 1.7 RC1 manifests
# ...
# Download Kustomize 5
wget https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv5.0.0/kustomize_v5.0.0_linux_amd64
mv kustomize_v5.0.0_linux_amd64.tar.gz kustomize
chmod +x kustomize
# Install microk8s
sudo snap install microk8s --classic --channel=1.25/stable
microk8s enable dns hostpath-storage
sudo snap alias microk8s.kubectl kubectl
# Install manifests with one liner
while ! ./kustomize build example | kubectl apply -f -; do echo "Retrying to apply resources"; sleep 10; done 
@annajung
Copy link
Member

Note that based on https://github.com/kubeflow/manifests/pull/2399/files, the installation command changed to

while ! kustomize build example | awk '!/well-defined/' | kubectl apply -f -; do echo "Retrying to apply resources"; sleep 10; done

details on why is available here #2388 (comment)

@DomFleischmann
Copy link
Contributor Author

It worked by adding the awk section, thank you Anna! I'm going ahead and closing this issue.

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

No branches or pull requests

2 participants