Loading 06-advanced-cluster-management.md +18 −4 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ echo "OSM_HOSTNAME: $OSM_HOSTNAME" #### VIM/Cloud account registration Example for Azure: ##### Azure Cloud account registration ```bash export OSM_CREDS_FOLDER="${HOME}/vims" Loading Loading @@ -60,6 +60,17 @@ The JSON credentials file corresponds to the service principal credentials obtai az ad sp create-for-rbac --role Contributor --scopes /subscriptions/<subscription-id>/resourceGroups/<resource-group-name> ``` ##### Dummy Cloud account registration If you have existing clusters, you can register them to a dummy cloud account. In order to register a dummy cloud account, you can proceed this way: ```bash osm vim-create --name mylocation1 \ --user u --password p --tenant p \ --account_type dummy \ --auth_url http://localhost/dummy ``` #### VIM/Cloud account deletion ```bash Loading Loading @@ -671,7 +682,10 @@ export OKA_FOLDER="${OSM_PACKAGES_FOLDER}/oka/apps" osm oka-add jenkins ${OKA_FOLDER}/namespace --description namespace --profile-type app-profile osm oka-add jenkins ${OKA_FOLDER}/jenkins --description jenkins --profile-type app-profile osm oka-add testacme ${OKA_FOLDER}/testacme --description testacme --profile-type app-profile osm ksu-create --ksu namespace --profile mydemo --profile-type app-profile --oka namespace --params ${OKA_FOLDER}/jenkins-ns-params.yaml osm ksu-create --ksu testacme --profile mydemo --profile-type app-profile --oka testacme --params ${OKA_FOLDER}/testacme-params.yaml osm ksu-create --ksu jenkins --description "Jenkins" --profile mydemo --profile-type app-profile --oka jenkins --params ${OKA_FOLDER}/jenkins-params.yaml # KSU jenkins-ns to create the namespace `jenkins` osm ksu-create --ksu jenkins-ns --description jenkins-ns --profile mydemo --profile-type app-profile --oka namespace --params ${OKA_FOLDER}/jenkins-ns-params.yaml # KSU testacme to create the testacme app in the namespace `default` osm ksu-create --ksu testacme --description testacme --profile mydemo --profile-type app-profile --oka testacme # KSU jenkins to create the testacme app in the namespace `jenkins` osm ksu-create --ksu jenkins --description jenkins --profile mydemo --profile-type app-profile --oka jenkins --params ${OKA_FOLDER}/jenkins-params.yaml ``` Loading
06-advanced-cluster-management.md +18 −4 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ echo "OSM_HOSTNAME: $OSM_HOSTNAME" #### VIM/Cloud account registration Example for Azure: ##### Azure Cloud account registration ```bash export OSM_CREDS_FOLDER="${HOME}/vims" Loading Loading @@ -60,6 +60,17 @@ The JSON credentials file corresponds to the service principal credentials obtai az ad sp create-for-rbac --role Contributor --scopes /subscriptions/<subscription-id>/resourceGroups/<resource-group-name> ``` ##### Dummy Cloud account registration If you have existing clusters, you can register them to a dummy cloud account. In order to register a dummy cloud account, you can proceed this way: ```bash osm vim-create --name mylocation1 \ --user u --password p --tenant p \ --account_type dummy \ --auth_url http://localhost/dummy ``` #### VIM/Cloud account deletion ```bash Loading Loading @@ -671,7 +682,10 @@ export OKA_FOLDER="${OSM_PACKAGES_FOLDER}/oka/apps" osm oka-add jenkins ${OKA_FOLDER}/namespace --description namespace --profile-type app-profile osm oka-add jenkins ${OKA_FOLDER}/jenkins --description jenkins --profile-type app-profile osm oka-add testacme ${OKA_FOLDER}/testacme --description testacme --profile-type app-profile osm ksu-create --ksu namespace --profile mydemo --profile-type app-profile --oka namespace --params ${OKA_FOLDER}/jenkins-ns-params.yaml osm ksu-create --ksu testacme --profile mydemo --profile-type app-profile --oka testacme --params ${OKA_FOLDER}/testacme-params.yaml osm ksu-create --ksu jenkins --description "Jenkins" --profile mydemo --profile-type app-profile --oka jenkins --params ${OKA_FOLDER}/jenkins-params.yaml # KSU jenkins-ns to create the namespace `jenkins` osm ksu-create --ksu jenkins-ns --description jenkins-ns --profile mydemo --profile-type app-profile --oka namespace --params ${OKA_FOLDER}/jenkins-ns-params.yaml # KSU testacme to create the testacme app in the namespace `default` osm ksu-create --ksu testacme --description testacme --profile mydemo --profile-type app-profile --oka testacme # KSU jenkins to create the testacme app in the namespace `jenkins` osm ksu-create --ksu jenkins --description jenkins --profile mydemo --profile-type app-profile --oka jenkins --params ${OKA_FOLDER}/jenkins-params.yaml ```