From 5caf1654683a567da7e4158e4e7e108dd2232a13 Mon Sep 17 00:00:00 2001 From: Jack Lucas Date: Fri, 8 Feb 2019 14:21:58 -0500 Subject: Move ph and dh to Helm -- Helm charts for ph and dh -- New container to do Consul k-v storage and service reg -- Bootstrap container no longer deploys ph and dh -- Healthcheck looks for ph and dh as Helm deployments -- Updated/added licensing information Issue-ID: DCAEGEN2-1091 Issue-ID: DCAEGEN2-1092 Change-Id: I5340bee6fba1340d4c05b0f37ddfb539c543469e Signed-off-by: Jack Lucas --- k8s-bootstrap-container/bootstrap.sh | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) (limited to 'k8s-bootstrap-container/bootstrap.sh') diff --git a/k8s-bootstrap-container/bootstrap.sh b/k8s-bootstrap-container/bootstrap.sh index 76504a7..0c55559 100755 --- a/k8s-bootstrap-container/bootstrap.sh +++ b/k8s-bootstrap-container/bootstrap.sh @@ -1,6 +1,6 @@ #!/bin/bash # ================================================================================ -# Copyright (c) 2018 AT&T Intellectual Property. All rights reserved. +# Copyright (c) 2018-2019 AT&T Intellectual Property. All rights reserved. # ================================================================================ # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -123,15 +123,8 @@ set -e # Consul service registration data CBS_REG='{"ID": "dcae-cbs0", "Name": "config_binding_service", "Address": "config-binding-service", "Port": 10000}' CBS_REG1='{"ID": "dcae-cbs1", "Name": "config-binding-service", "Address": "config-binding-service", "Port": 10000}' -INV_REG='{"ID": "dcae-inv0", "Name": "inventory", "Address": "inventory", "Port": 8080}' HE_REG='{"ID": "dcae-he0", "Name": "holmes-engine-mgmt", "Address": "holmes-engine-mgmt", "Port": 9102}' HR_REG='{"ID": "dcae-hr0", "Name": "holmes-rule-mgmt", "Address": "holmes-rule-mgmt", "Port": 9101}' - -# Cloudify Manager will always be in the ONAP namespace. -CM_REG='{"ID": "dcae-cm0", "Name": "cloudify_manager", "Port": 80, "Address": "dcae-cloudify-manager.'${ONAP_NAMESPACE}'"}' -# Policy handler will be looked up from a plugin on CM. If DCAE components are running in a different k8s -# namespace than CM (which always runs in the common ONAP namespace), then the policy handler address must -# be qualified with the DCAE namespace. PH_REG='{"ID": "dcae-ph0", "Name": "policy_handler", "Port": 25577, "Address": "policy-handler' if [ ! -z "${DCAE_NAMESPACE}" ] then @@ -139,8 +132,6 @@ then fi PH_REG="${PH_REG}\"}" - - # Set up profile to access Cloudify Manager cfy profiles use -u admin -t default_tenant -p "${CMPASS}" "${CMADDR}" @@ -178,7 +169,7 @@ do done # Put service registrations into the local Consul configuration directory -for sr in CBS_REG CBS_REG1 INV_REG HE_REG HR_REG CM_REG PH_REG +for sr in CBS_REG CBS_REG1 HE_REG HR_REG PH_REG do echo '{"service" : ' ${!sr} ' }'> /opt/consul/config/${sr}.json done @@ -204,13 +195,6 @@ set +e deploy pgaas_initdb k8s-pgaas-initdb.yaml k8s-pgaas-initdb-inputs.yaml & PG_PID=$! wait ${PG_PID} -# deployment_handler and policy_handler can be deployed simultaneously -INV_PID=$! -deploy deployment_handler k8s-deployment_handler.yaml k8s-deployment_handler-inputs.yaml & -DH_PID=$! -deploy policy_handler k8s-policy_handler.yaml k8s-policy_handler-inputs.yaml& -PH_PID=$! -wait ${INV_PID} ${DH_PID} ${PH_PID} # Deploy service components # tca, ves, prh, hv-ves, datafile-collector can be deployed simultaneously -- cgit 1.2.3-korg