Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Mongo-controller is invalid #60

Open
alexgroom opened this issue Jan 9, 2020 · 0 comments
Open

Mongo-controller is invalid #60

alexgroom opened this issue Jan 9, 2020 · 0 comments

Comments

@alexgroom
Copy link

The CodeReady Workspaces 2.0 docs refer to this git repo several times but the repo does not seem to work in several places:-

https://access.redhat.com/documentation/en-us/red_hat_codeready_workspaces/2.0/html/end-user_guide/workspaces-overview#importing-a-kubernetes-application-into-a-workspace

  1. For example in section 3.7 it suggests running this script sample:

$ node=https://raw.githubusercontent.com/redhat-developer/devfile/master/samples/web-nodejs-with-db-sample/nodejs-app.yaml &&
mongo=https://raw.githubusercontent.com/redhat-developer/devfile/master/samples/web-nodejs-with-db-sample/mongo-db.yaml &&
oc apply -f ${mongo} &&
oc apply -f ${node}

This fails against OCP 4.2.7 with the following output:

service/mongo created
persistentvolumeclaim/mongo-persistent-storage created
The Deployment "mongo-controller" is invalid:

  • spec.selector: Required value
  • spec.template.metadata.labels: Invalid value: map[string]string{"name":"mongo"}: selector does not match template labels
  1. In addition the Readme file for this repo suggests I can launch the devfile directly from the CodeReady or Che url as a factory and this also fails when CodeReady is installed on OCP 4.2.7:

http://codeready-codeready.apps.clusterXXXXXX.example.opentlc.com/f?url=https:%2F%2Fraw.githubusercontent.com%2Fredhat-developer%2Fdevfile%2Fmaster%2Fsamples%2Fweb-java-spring-petclinic%2Fdevfile.yaml

Failed to pull image "registry.devshift.net/che/centos_jdk8": rpc error: code = Unknown desc = pinging docker registry returned: Get https://registry.devshift.net/v2/: dial tcp 8.43.84.245:443: connect: connection refused
Error: Failed to run the workspace: "Unrecoverable event occurred: 'Failed', 'Failed to pull image "registry.devshift.net/che/centos_jdk8": rpc error: code = Unknown desc = pinging docker registry returned: Get https://registry.devshift.net/v2/: dial tcp 8.43.84.245:443: connect: connection refused', 'workspacer0c0d2km9qz5pwgo.dev-7b7544bb99-5glbm'"

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

No branches or pull requests

1 participant