add kubectl config
This commit is contained in:
parent
dde077f63c
commit
470f609979
3 changed files with 41 additions and 0 deletions
|
@ -67,3 +67,7 @@ export GRC_BLOCKS_PATH=/usr/local/share/gnuradio/grc/blocks/
|
|||
|
||||
export CALICO_DATASTORE_TYPE=kubernetes
|
||||
export CALICO_KUBECONFIG=~/.kube/config
|
||||
|
||||
function join_by { local IFS="$1"; shift; echo "$*"; }
|
||||
|
||||
export KUBECONFIG=$(join_by : $(ls ~/.kube/config{.d/*,}))
|
||||
|
|
3
home/.kube/config
Normal file
3
home/.kube/config
Normal file
|
@ -0,0 +1,3 @@
|
|||
apiVersion: v1
|
||||
kind: Config
|
||||
current-context: eonerc
|
34
home/.kube/config.d/eonerc
Normal file
34
home/.kube/config.d/eonerc
Normal file
|
@ -0,0 +1,34 @@
|
|||
apiVersion: v1
|
||||
clusters:
|
||||
- cluster:
|
||||
insecure-skip-tls-verify: true
|
||||
server: https://api.k8s.fein-aachen.org/
|
||||
name: eonerc-cluster
|
||||
- cluster:
|
||||
insecure-skip-tls-verify: true
|
||||
server: https://137.226.248.165:6443/
|
||||
name: eonerc-cluster-intern
|
||||
contexts:
|
||||
- context:
|
||||
cluster: eonerc-cluster-intern
|
||||
namespace: villas-demo
|
||||
user: keycloak
|
||||
name: eonerc
|
||||
kind: Config
|
||||
preferences: {}
|
||||
users:
|
||||
- name: keycloak
|
||||
user:
|
||||
exec:
|
||||
apiVersion: client.authentication.k8s.io/v1beta1
|
||||
args:
|
||||
- get-token
|
||||
- --oidc-issuer-url=https://sso.fein-aachen.org/auth/realms/master
|
||||
- --oidc-client-id=kubernetes
|
||||
- --oidc-client-secret=69ba0d6f-1563-4988-b6c3-e9af64f7f6f2
|
||||
command: kubelogin
|
||||
env: null
|
||||
- name: svg
|
||||
user:
|
||||
client-certificate: ~/workspace/rwth/acs/k8s/svg.crt
|
||||
client-key: ~/workspace/rwth/acs/k8s/svg.key
|
Loading…
Add table
Reference in a new issue