Skip to content

Commit

Permalink
test GKE
Browse files Browse the repository at this point in the history
  • Loading branch information
blabla1337 committed Jul 4, 2021
1 parent 804a3fc commit adf5df8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Docker/alpine-cloud/api/skf-api.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ set -ex
if [ "$LABS_KUBE_CONF" != "~/.kube/config" ]
then
echo $LABS_KUBE_CONF | base64 -d > /home/user_api/.kube/config
export KUBECONFIG=/home/user_api/.kube/config
fi

if [ "$GOOGLE_APPLICATION_CREDENTIALS" -gt 10 ]
then
echo $GOOGLE_APPLICATION_CREDENTIALS | base64 -d > /home/user_api/.kube/gsa-key.json
export GOOGLE_APPLICATION_CREDENTIALS=/home/user_api/.kube/gsa-key.json
fi

#to get the base64 string of your .kube/config run:
Expand Down
1 change: 1 addition & 0 deletions Docker/alpine-cloud/k8s/configmaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ data:
SKF_LABS_DOMAIN: "http://labs.securityknowledgeframework.org"
RABBIT_MQ_CONN_STRING: rabbitmq
ORIGIN: skf-flask-back
#GOOGLE_APPLICATION_CREDENTIALS: base64_string_here_of_the_content_of_the gsa-key.json file_for_example: cat gsa-key.json | base64
LABS_KUBE_CONF: YXBpVmVyc2lvbjogdjEKY2x1c3RlcnM6Ci0gY2x1c3RlcjoKICAgIGNlcnRpZmljYXRlLWF1dGhvcml0eS1kYXRhOiBMUzB0TFMxQ1JVZEpUaUJEUlZKVVNVWkpRMEZVUlMwdExTMHRDazFKU1VONVJFTkRRV0pEWjBGM1NVSkJaMGxDUVVSQlRrSm5hM0ZvYTJsSE9YY3dRa0ZSYzBaQlJFRldUVkpOZDBWUldVUldVVkZFUlhkd2NtUlhTbXdLWTIwMWJHUkhWbnBOUWpSWVJGUkpkMDFVUlhsUFZFVjZUV3BOTVUxV2IxaEVWRTEzVFZSRmVVNTZSWHBOYWsweFR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UW5ac2RWaHdVV1J0UkdrNVoyTmhkWFUxTmtKbFZpOU5UVk5WVEUxTWJFbDNOQXBUWTFvcldrSk5XVzU2WVROQlRGSjVObXRMVjNKS2JHRlNhRmxLZHpOaWJUTnNNVXhFVkZaQlluTkxhMDVrUzFneGFGRmtUalUyTDFsMGFWVkhhWE5SQ25sRmNYWkJVVXRDWjBkeFNsSnJXRmgxY0U1c2FHbHRWMDEyVkhoR2NsVXpUa05FYWk5WE0zSk9SVWt5ZEVOeU1HUlRMeTk1VWl0bmVESkVUVmQwU0VrS00xWmhjamx5ZEhZMGFGZGFkMUZPYWpoTWRVRm1XVWhtVERVMmRYWm5jMmRqUW1sSlNVVjROMlpWYzIxalQzVnNVbWd6Y0ZwTlJEVTVVWFpOV0d4TFpncGljQ3M0U1RWaGFWbHpSVGxNZUN0alZGQkdUMFV6ZUhOTU1rZzFhVGxLZFVncmNGQXlkbkpWT0hGQlRESnlSaTk2VGtSSkNpMHRMUzB0UlU1RUlGSlRRU0JRVWtsV1FWUkZJRXRGV1MwdExTMHRDZz09Cg==
#LABS_KUBE_CONF: base64_string_here_of_the_content_of_the .kube/config file_for_example: cat ~/.kube/config | base64
---
Expand Down

0 comments on commit adf5df8

Please sign in to comment.