2043b756624dae4cde23b143c70785e31a4ad993
[eliot.git] / blueprints / iotgateway / scripts / edgex / edgexonk8s.sh
1 #!/bin/bash -ex
2 #############################################################################
3 # Copyright (c) 2019 Huawei Tech and others.                                #
4 # All rights reserved. This program and the accompanying materials          #
5 # are made available under the terms of the Apache License, Version 2.0     #
6 # which accompanies this distribution, and is available at                  # 
7 # http://www.apache.org/licenses/LICENSE-2.0                                #
8 #############################################################################
9
10 #######################################################################################
11 # The script is to setup the Edgex Foundry application as POD in Kubernetes.          #
12 #######################################################################################
13
14
15
16 git clone https://github.com/edgexfoundry-holding/edgex-kubernetes-support.git
17 cd edgex-kubernetes-support/releases/edinburgh/kubernetes
18 ls
19 kubectl create -k .
20 kubectl get pod
21 kubectl get svc
22 kubectl expose deployment edgex-core-consul --type=NodePort --name=consulnodeport
23 kubectl expose deployment edgex-core-command --type=NodePort --name=commandnodeport
24 kubectl expose deployment edgex-core-data --type=NodePort --name=datanodeport
25 kubectl expose deployment edgex-core-metadata --type=NodePort --name=metadatanodeport
26 kubectl expose deployment edgex-support-rulesengine --type=NodePort --name=rulesenginenodeport
27 kubectl expose deployment edgex-support-logging --type=NodePort --name=loggingnodeport
28 kubectl get svc | grep NodePort
29
30
31
32
33
34
35
36
37
38