Coder Social home page Coder Social logo

Comments (6)

likeulb avatar likeulb commented on June 26, 2024

Hi @VarunkumarManohar,
I didn't see fullCluster property (specified in k8.yaml) has been used in nodeport.py. If this the case, the $(ref.dmcluster.selfLink) will not be used in the expanded config. You may go to Google Cloud Console, under the Deployment Manager, you can view the expanded config to see if the resources have the correct dependency.
BTW, you also tried to specify the order with "dependsOn" in k8.yaml, this currently doesn't work with template.

from deploymentmanager-samples.

varungbt avatar varungbt commented on June 26, 2024

@likeulb even if I use the let's say context.properties['fullCluster'] inside nodeport.py, I see that the deployment manager is attempting to create the dmnginxservice before creating the dmcluster resource.

from deploymentmanager-samples.

varungbt avatar varungbt commented on June 26, 2024

@likeulb I have received another update from @krwenholz that there is a wait issue with Google K8 cluster so I believe this is something already known- only thing is that it would be helpful if the gke documentation inside Googel deployment manager samples mentions the prerequisite that all other k8 resources could be created only if the k8 is fully up and hence such a deployment using K8 APIs needs to be done in a separate deployment and not in the same deployment as that of the cluster or put it other way references on kubernetes cluster do not work ...

from deploymentmanager-samples.

likeulb avatar likeulb commented on June 26, 2024

Hi @VarunkumarManohar, I think in this particular case, there should be something wrong with your template that the ordering is not identified. Do you have most update to date template? In your current template, you tried to reference $(ref.dmcluster.selfLink), but dmcluster is a template (cluster.py), and I didn't see any output of this template named "dmcluster". Please try to specify an output in cluster.py. The value of the output should have the reference to the type provide name, maybe like '$(ref.' + type_name+type_suffix + '.name)', then reference the output in the k8.yaml file. If it istill doesn't work, please send me the most up to date template. Thanks.

from deploymentmanager-samples.

likeulb avatar likeulb commented on June 26, 2024

Hi @VarunkumarManohar any update regarding the issue?

from deploymentmanager-samples.

likeulb avatar likeulb commented on June 26, 2024

Hi @VarunkumarManohar please specify an output in cluster.py. The value of the output should have the reference to the type provide name, maybe like '$(ref.' + type_name+type_suffix + '.name)', then reference the output in the k8.yaml file. I locally tested and it worked.
I will close the issue for now.

from deploymentmanager-samples.

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.