Comments (4)
Hi,
I try to investigate this problem and want to setup your scenario in our environment.
Could you please compare your ~/cattlectl.yaml
and your ~/.rancher/cli2.json
If your ~/.rancher/cli2.json
looks like (prettified):
{
"Servers": {
"rancherDefault": {
"accessKey": "token-XXXXX",
"secretKey": "YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY",
"tokenKey": "token-XXXXX:YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY",
"url": "https://ZZZZZZZZZZZZZZZZZZ",
"project": "c-xxxxx:p-yyyyy",
"cacert": ""
}
},
"CurrentServer": "rancherDefault"
}
your ~/cattlectl.yaml
needs to look like:
rancher:
url: https://ZZZZZZZZZZZZZZZZZZ
access_key: token-XXXXX
secret_key: YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
cluster_id: c-xxxxx
could you please confirm this is the case?
from cattlectl.
Sorry @wtschreiter I was on vacation without access to my computer. I've verified that is the case:
$ cat ~/.cattlectl.yaml
rancher:
url: https://XXXXXX-rancher.XXXXXXXX.net
access_key: token-XXX2n
secret_key: XXXXXXdxqlp5kgzjzfbh8nfv7lqg26nrvfmc2ltxqmqhw7vxmbf2t
cluster_id: c-lmq2x
insecure_api: true
$ cat ~/.rancher/cli2.json | jq
{
"Servers": {
"rancherDefault": {
"accessKey": "token-XXX2n",
"secretKey": "XXXXXXdxqlp5kgzjzfbh8nfv7lqg26nrvfmc2ltxqmqhw7vxmbf2t",
"tokenKey": "token-XXX2n:XXXXXXdxqlp5kgzjzfbh8nfv7lqg26nrvfmc2ltxqmqhw7vxmbf2t",
"url": "https://XXXXXX-rancher.XXXXXXXX.net",
"project": "c-lmq2x:p-rxpkv",
"cacert": "-----BEGIN CERTIFICATE-----\nMIIEizCXXXXXX+f78Xf7\n-----END CERTIFICATE-----"
}
},
"CurrentServer": "rancherDefault"
}
from cattlectl.
So I found the issue. In my .bash_profile I had old API keys defined, which were taking precedence over whatever I put into .cattlectl.yaml.
from cattlectl.
Good to hear.
Thanks for keeping me informed
from cattlectl.
Related Issues (20)
- [FEATURE] support for multiple values files
- [FEATURE] add bash completion HOT 1
- [FEATURE] Enable multi-file includes HOT 2
- [BUG] apply workload is failing
- [FEATURE] valuesYaml as alternative to answers in app declarations
- [FEATURE] add template method 'read_template'
- [FEATURE] global, cluster and project catalogs as code
- [FEATURE] get <resource(s)> functionality
- [FEATURE] delete <resource> functionality
- [FEATURE] Enable flag to merge answers with existing apps
- [FEATURE] add sprig template function support
- [BUG] help text for new feature _delete TYPE_ is misleading HOT 1
- [BUG] Scoped api key not working HOT 5
- [FEATURE] Support multiple project definitions in a single yaml
- [FEATURE] Support directories in apply/show or allow multiple -f HOT 2
- [FEATURE] Allow to enable istio sidecar injection for namespaces HOT 1
- [BUG] not possible to overwrite container entrypont for kind job/workload
- [FEATURE] support for include jobs using include functionality
- [BUG] api_version is not correct
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 cattlectl.