X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=blueprints%2Fiotgateway%2Fscripts%2Fedgex%2Fedgexonk8s.sh;fp=blueprints%2Fiotgateway%2Fscripts%2Fedgex%2Fedgexonk8s.sh;h=2043b756624dae4cde23b143c70785e31a4ad993;hb=f7a1ce6ba152e040f3c7122e32270645f605ebd2;hp=0000000000000000000000000000000000000000;hpb=a25e2c6b61cefe449f53a81e1a9f0b39a0a6208c;p=eliot.git diff --git a/blueprints/iotgateway/scripts/edgex/edgexonk8s.sh b/blueprints/iotgateway/scripts/edgex/edgexonk8s.sh new file mode 100755 index 0000000..2043b75 --- /dev/null +++ b/blueprints/iotgateway/scripts/edgex/edgexonk8s.sh @@ -0,0 +1,38 @@ +#!/bin/bash -ex +############################################################################# +# Copyright (c) 2019 Huawei Tech and others. # +# All rights reserved. This program and the accompanying materials # +# are made available under the terms of the Apache License, Version 2.0 # +# which accompanies this distribution, and is available at # +# http://www.apache.org/licenses/LICENSE-2.0 # +############################################################################# + +####################################################################################### +# The script is to setup the Edgex Foundry application as POD in Kubernetes. # +####################################################################################### + + + +git clone https://github.com/edgexfoundry-holding/edgex-kubernetes-support.git +cd edgex-kubernetes-support/releases/edinburgh/kubernetes +ls +kubectl create -k . +kubectl get pod +kubectl get svc +kubectl expose deployment edgex-core-consul --type=NodePort --name=consulnodeport +kubectl expose deployment edgex-core-command --type=NodePort --name=commandnodeport +kubectl expose deployment edgex-core-data --type=NodePort --name=datanodeport +kubectl expose deployment edgex-core-metadata --type=NodePort --name=metadatanodeport +kubectl expose deployment edgex-support-rulesengine --type=NodePort --name=rulesenginenodeport +kubectl expose deployment edgex-support-logging --type=NodePort --name=loggingnodeport +kubectl get svc | grep NodePort + + + + + + + + + +