Coder Social home page Coder Social logo

Comments (4)

cppforlife avatar cppforlife commented on May 30, 2024

@ajaykumar333 i would look at knctl service show -s deploy

from knctl.

ajay-kumar-1 avatar ajay-kumar-1 commented on May 30, 2024

Hello,

Below is the required output:


root@jenkins-788f557b77-hdvhv:~# knctl service show -s deploy
Service 'deploy'

Name             deploy  
Domain           deploy.jx.example.com  
Internal Domain  deploy.jx.svc.cluster.local  
Annotations      -  
Age              6m  

Conditions

Type                 Status  Age  Reason           Message  
ConfigurationsReady  False   5m   RevisionFailed   Revision "deploy-00001" failed with message: "unsupported status code 401; body:  
                                                   Not Authorized\n".  
Ready                False   5m   RevisionMissing  Configuration "deploy" does not have any ready Revision.  
RoutesReady          False   5m   RevisionMissing  Configuration "deploy" does not have any ready Revision.  

Pods conditions

Pod  Type  Status  Age  Reason  Message  

Succeeded
root@jenkins-788f557b77-hdvhv:~#_ 

The above output is showing an error code 401 (Not authorized), for the authorization i am using a helper.sh script from the below link:
https://github.com/knative/build-templates/tree/master/ecr_helper

This script do the following task:

  • serviceaccount created
  • secret "ecr-creds" created

from knctl.

ajay-kumar-1 avatar ajay-kumar-1 commented on May 30, 2024

Just for the information,

When I am using knctl command to delpoy from the public GIT repostory using below command:


knctl deploy --service deploy --git-url https://github.com/cppforlife/simple-app --git-revision master --service-account builder --image 631963551282.dkr.ecr.ap-northeast-2.amazonaws.com/test --env SIMPLE_MSG=123


The container image gets successfullly build and saved to ECR registory successfuly.
However, the issue ( mentioned in 1st comments and in above logs) occur when it is going to deploy that image on kubernetes cluster.

Please help me.

from knctl.

cppforlife avatar cppforlife commented on May 30, 2024

@ajaykumar333 im not quite sure how knative + ecr_helper plays together. i would try out using knative directly and making that work with ecr. once you are sure it works, then trying to use knctl with it.

from knctl.

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.