Comments (4)
@ajaykumar333 i would look at knctl service show -s deploy
from knctl.
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.
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.
@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)
- colors on windows do not work
- [new user ux] Nice message if knative not installed
- Rename to `kntl`? HOT 4
- knctl deploy -p path/to/app.war HOT 1
- Issue during build on the latest Go client for Kubernetes
- knctl uninstall don't delete mutatingwebhookconfiguration HOT 2
- knctl snap packaging HOT 5
- Support for setting alternate Dockerfile HOT 2
- knctl vs "Sample API Usage" documentation HOT 3
- Vanishing headers HOT 2
- Misleading error message when using deploy HOT 2
- "knctl build create" fails with "Error: assigned building pod: pods "..." not found" HOT 3
- knctl deploy --env parameter can't contain comma-separated value HOT 3
- latest knative installable for windows doesnt have exe HOT 5
- Add autoscaling flags HOT 3
- Add support for knative pipeline spin-off https://github.com/tektoncd/pipeline HOT 4
- binaries missing from github release HOT 1
- knative/serving 0.4.1 released
- Please link to the new repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from knctl.