Giter Site home page Giter Site logo

Comments (10)

jizusun avatar jizusun commented on June 13, 2024 1

@lingdie Now there is an error (error when creating "manifests/deploy.yaml": ) before applying the secret!

$ sealos pull  registry.cn-shanghai.aliyuncs.com/labring/sealos-cloud:latest
051115c32df50c8a3b0102d1918f606efde52dfff85101180396d16d765da24d

$ sealos reset

$ curl -sfL https://raw.githubusercontent.com/labring/sealos/main/scripts/cloud/install.sh -o install.sh && \
  bash -x install.sh \
  --single \
  --image-registry=registry.cn-shanghai.aliyuncs.com --zh \
  --cloud-domain=130.147.249.243.nip.io \
  --cloud-port=443 


+ kubectl apply -f manifests/deploy.yaml -f manifests/rbac.yaml -f manifests/ingress.yaml
serviceaccount/desktop-frontend unchanged
service/desktop-frontend unchanged
configmap/desktop-frontend-config unchanged
clusterrole.rbac.authorization.k8s.io/auth-system-manager-role unchanged
clusterrolebinding.rbac.authorization.k8s.io/desktop-user-editor-role-binding unchanged
clusterrolebinding.rbac.authorization.k8s.io/desktop-operationrequest-editor-role-binding unchanged
clusterrolebinding.rbac.authorization.k8s.io/desktop-deleterequest-editor-role-binding unchanged
role.rbac.authorization.k8s.io/recharge-gift-cm-reader unchanged
rolebinding.rbac.authorization.k8s.io/recharge-gift-cm-reader-rolebinding unchanged
clusterrole.rbac.authorization.k8s.io/account-editor-role unchanged
clusterrolebinding.rbac.authorization.k8s.io/desktop-account-editor-role-binding unchanged
ingress.networking.k8s.io/sealos-desktop unchanged
Error from server (BadRequest): error when creating "manifests/deploy.yaml": Deployment in version "v1" cannot be handled as a Deployment: json: cannot unmarshal bool into Go struct field EnvVar.spec.template.spec.containers.env.value of type string
Error: exit status 1
Error: exit status 1

from sealos.

lingdie avatar lingdie commented on June 13, 2024 1

Sry for that, this two pr will fix: #4547 #4544

Please retry later after latest image build.

Or you can use the stable version: v5.0.0-beta4.

v5.0.0-beta5 will release in this two weeks.

from sealos.

jizusun avatar jizusun commented on June 13, 2024 1

@lingdie

Thank you so much! Now the installation is successfull!
Close the issue.

from sealos.

jizusun avatar jizusun commented on June 13, 2024

But I found the workaround doesn't work, since some values like mongo-url is missing.

Anybody can guide me?


Okay, finally I found a workaround, that is after the exit,

I manually apply the secret with

  kubectl apply -f manifests/secret.yaml --validation=false

I'm wondering if we need to fix this line

kubectl apply -f manifests/secret.yaml

from sealos.

lingdie avatar lingdie commented on June 13, 2024

This pr shell fix it.

#4545

from sealos.

jizusun avatar jizusun commented on June 13, 2024

@lingdie Thank you for your PR and I see it's merged.
I pulled the latest image

sealos pull  registry.cn-shanghai.aliyuncs.com/labring/sealos-cloud:latest
41033415b58a06b5cf1afca2ed16a8f6f19d6164be07395776c4ba212db5c7df

Then I do

sealos reset

curl -sfL https://raw.githubusercontent.com/labring/sealos/main/scripts/cloud/install.sh -o install.sh && \
  bash -x install.sh \
  --image-registry=registry.cn-shanghai.aliyuncs.com --zh \
  --cloud-domain=130.147.249.243.nip.io \
  --cloud-port=443 

But still the same error

create desktop secret
+ kubectl apply -f manifests/secret.yaml
error: error validating "manifests/secret.yaml": error validating data: [unknown object type "nil" in Secret.data.ali_access_key_id, unknown object type "nil" in Secret.data.ali_access_key_secret, unknown object type "nil" in Secret.data.ali_sms_endpoint, unknown object type "nil" in Secret.data.ali_sms_sign_name, unknown object type "nil" in Secret.data.ali_sms_template_code, unknown object type "nil" in Secret.data.github_client_id, unknown object type "nil" in Secret.data.github_client_secret, unknown object type "nil" in Secret.data.wechat_client_id, unknown object type "nil" in Secret.data.wechat_client_secret]; if you choose to ignore these errors, turn validation off with --validate=false
Error: exit status 1
Error: exit status 1

How can I verify the fix is included in the latest image?

from sealos.

lingdie avatar lingdie commented on June 13, 2024

try use this image:

sealos pull --policy=always docker.io/labring/sealos-cloud:latest
sealos tag docker.io/labring/sealos-cloud:latest registry.cn-shanghai.aliyuncs.com/labring/sealos-cloud:latest

image id: 051115c32df50c8a3b0102d1918f606efde52dfff85101180396d16d765da24d

from sealos.

jizusun avatar jizusun commented on June 13, 2024

Thank you so much for the quick fix! @lingdie
I'm wondering what's the image tag of docker.io/labring/sealos-cloud:latest after your #4547
Can you guide me how to check? (Should be in the GitHub Actions workflow log?)

from sealos.

lingdie avatar lingdie commented on June 13, 2024

try this:

sealos pull --policy=always docker.io/labring/sealos-cloud:latest
sealos tag docker.io/labring/sealos-cloud:latest registry.cn-shanghai.aliyuncs.com/labring/sealos-cloud:latest

image id: 7231c418dc856d4c2290477fd9b3da7b0e3a9eea51d34f3e77bc356a57074dc8

from sealos.

lingdie avatar lingdie commented on June 13, 2024

run after reset?

from sealos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.