xip-online-applications / xip-cli Goto Github PK
View Code? Open in Web Editor NEWThe XIP CLI utilities script
The XIP CLI utilities script
So for example in Examenbundel we have the following in the docs:
### Setup contexts
Use the following set of commands to setup kubectl for Examenbundel:
x-ip aws kubectl tm-stage-EksCluster arn:aws:iam::089261200724:role/tm-eks-examenbundel-test-AdminGroupRole -n examenbundel-test -p examenbundel-test -a examenbundel-test
etc.
I have 2 issues (for now):
I need to explicitly export an AWS_REGION
var and set it to eu-west-1. I do have my AWS profiles setup including the region in ~/.aws/config
and ~/.aws/credentials
:
For example, my config file contains:
[profile examenbundel-test]
region = eu-west-1
...snip
sso_region = eu-west-1
[profile examenbundel-prod]
region = eu-west-1
...snip
sso_region = eu-west-1
Failing to register this env var generates:
x-ip aws kubectl tm-stage-EksCluster arn:aws:iam::089261200724:role/tm-eks-examenbundel-test-AdminGroupRole -n examenbundel-test -p examenbundel-test -a examenbundel-test
panic: MissingRegion: could not find region configuration
goroutine 1 [running]:
xip/aws/commands.(*AwsCommands).KubectlRun(0x140003a4150, 0x0?, {0x140003bf000?, 0x0?, 0x0?})
xip/aws/commands/kubectl.go:48 +0x1d8
github.com/spf13/cobra.(*Command).execute(0x14000462000, {0x140003bef80, 0x8, 0x8})
github.com/spf13/[email protected]/command.go:920 +0x5b0
github.com/spf13/cobra.(*Command).ExecuteC(0x1400039c600)
github.com/spf13/[email protected]/command.go:1044 +0x35c
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:968
main.main()
After setting the region:
x-ip aws kubectl tm-stage-EksCluster arn:aws:iam::089261200724:role/tm-eks-examenbundel-test-AdminGroupRole -n examenbundel-test -p examenbundel-test -a examenbundel-test
panic: NoCredentialProviders: no valid providers in chain. Deprecated.
For verbose messaging see aws.Config.CredentialsChainVerboseErrors
goroutine 1 [running]:
xip/aws/commands.(*AwsCommands).KubectlRun(0x1400011c210, 0x0?, {0x1400017dd00?, 0x0?, 0x0?})
xip/aws/commands/kubectl.go:48 +0x1d8
github.com/spf13/cobra.(*Command).execute(0x14000400600, {0x1400017dc80, 0x8, 0x8})
github.com/spf13/[email protected]/command.go:920 +0x5b0
github.com/spf13/cobra.(*Command).ExecuteC(0x140001a6c00)
github.com/spf13/[email protected]/command.go:1044 +0x35c
github.com/spf13/cobra.(*Command).Execute(...)
github.com/spf13/[email protected]/command.go:968
main.main()
xip/main.go:22 +0xe8
I think I have to run this command because it gives me a no context exists
error when switching contexts:
kubectl config use-context examenbundel-test <aws:examenbundel-test>
error: no context exists with the name: "examenbundel-test"
Any ideas?
You need sudo on MacOs because of the install location, but the -s
param on curl hides this error. It looks like the installation was successful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.