diff options
-rw-r--r-- | kubernetes/Makefile | 6 | ||||
-rw-r--r-- | kubernetes/appc/charts/appc-ansible-server/templates/deployment.yaml | 2 | ||||
-rw-r--r-- | kubernetes/common/mariadb-galera/values.yaml | 21 | ||||
-rwxr-xr-x | kubernetes/contrib/tools/oomstat.py (renamed from kubernetes/contrib/tools/oomstat) | 25 | ||||
-rw-r--r-- | kubernetes/pomba/charts/pomba-kibana/values.yaml | 8 | ||||
-rwxr-xr-x | kubernetes/so/charts/so-bpmn-infra/resources/config/overrides/override.yaml | 10 | ||||
-rwxr-xr-x | kubernetes/so/charts/so-sdnc-adapter/resources/config/overrides/override.yaml | 4 | ||||
-rwxr-xr-x | kubernetes/so/charts/so-vfc-adapter/resources/config/overrides/override.yaml | 2 |
8 files changed, 59 insertions, 19 deletions
diff --git a/kubernetes/Makefile b/kubernetes/Makefile index 7b19e6e773..fa63bd8942 100644 --- a/kubernetes/Makefile +++ b/kubernetes/Makefile @@ -25,7 +25,7 @@ HELM_CHARTS := $(filter-out $(EXCLUDES), $(patsubst %/.,%,$(wildcard */.))) $(PA .PHONY: $(EXCLUDES) $(HELM_CHARTS) -all: $(COMMON_CHARTS_DIR) $(HELM_CHARTS) +all: $(COMMON_CHARTS_DIR) $(HELM_CHARTS) plugins $(COMMON_CHARTS): @echo "\n[$@]" @@ -54,6 +54,10 @@ clean: @find . -type f -name '*.tgz' -delete @rm -rf $(PACKAGE_DIR)/* +# publish helm plugins via distrubtion directory +plugins: + @cp -R helm $(PACKAGE_DIR)/ + # start up a local helm repo to serve up helm chart packages repo: @mkdir -p $(PACKAGE_DIR) diff --git a/kubernetes/appc/charts/appc-ansible-server/templates/deployment.yaml b/kubernetes/appc/charts/appc-ansible-server/templates/deployment.yaml index ca8498b8aa..a7daa05143 100644 --- a/kubernetes/appc/charts/appc-ansible-server/templates/deployment.yaml +++ b/kubernetes/appc/charts/appc-ansible-server/templates/deployment.yaml @@ -75,8 +75,8 @@ spec: name: config subPath: RestServer_config resources: - {{- if .Values.nodeSelector }} {{ include "common.resources" . | indent 12 }} + {{- if .Values.nodeSelector }} nodeSelector: {{ toYaml .Values.nodeSelector | indent 10 }} {{- end -}} diff --git a/kubernetes/common/mariadb-galera/values.yaml b/kubernetes/common/mariadb-galera/values.yaml index 2305323ced..e4c6550f2b 100644 --- a/kubernetes/common/mariadb-galera/values.yaml +++ b/kubernetes/common/mariadb-galera/values.yaml @@ -117,12 +117,21 @@ externalConfig: {} # Minimum memory for development is 2 CPU cores and 4GB memory # Minimum memory for production is 4 CPU cores and 8GB memory resources: - limits: - cpu: 2 - memory: 4Gi - requests: - cpu: 1 - memory: 2Gi + small: + limits: + cpu: 2 + memory: 4Gi + requests: + cpu: 1 + memory: 2Gi + large: + limits: + cpu: 2 + memory: 4Gi + requests: + cpu: 1 + memory: 2Gi + unlimited: {} # Name for mariadb-galera cluster - should be unique accross all projects or other clusters nameOverride: mariadb-galera diff --git a/kubernetes/contrib/tools/oomstat b/kubernetes/contrib/tools/oomstat.py index 82453b0a7c..464290d3f6 100755 --- a/kubernetes/contrib/tools/oomstat +++ b/kubernetes/contrib/tools/oomstat.py @@ -26,12 +26,16 @@ import getopt from fnmatch import fnmatch as match import yaml +def info(thing): + if thing: + sys.stderr.write("{}\n".format(thing)) + try: from tabulate import tabulate except ImportError as e: - message = "Warning: cannot import tabulate module (): {}\n".format(str(e)) - sys.stderr.write(message) + info("Warning: cannot import tabulate module (): {}".format(str(e))) def tabulate(lines, headers, tablefmt=None): + ''' basic tabulate function ''' fmt = "" nbco = len(headers) lenco = map(len, headers) @@ -168,11 +172,11 @@ def usage(status=None): " You may use wildcard patterns, eg small.*. Implicit\n" " value is *, ie all available fields will be used\n" "Examples:\n" - " # oomstat /opt/oom/kubernetes\n" - " # oomstat -f small.\\* /opt/oom/kubernetes\n" - " # oomstat -f '*requests.*' -t fancy_grid /opt/oom/kubernetes\n" - " # oomstat -f small.requests.cpu,small.requests.memory /opt/oom/kubernetes\n" - )) + " # {0} /opt/oom/kubernetes\n" + " # {0} -f small.\\* /opt/oom/kubernetes\n" + " # {0} -f '*requests.*' -t fancy_grid /opt/oom/kubernetes\n" + " # {0} -f small.requests.cpu,small.requests.memory /opt/oom/kubernetes\n" + ).format(arg0)) if status is not None: sys.exit(status) @@ -209,10 +213,17 @@ def main(): print("Error: {}".format(e)) usage(1) + if not os.path.isdir(root): + info("Cannot open {}: Not a directory".format(root)) + return + # find projects projects = [] for dirname, filename in values(root): projects.append(Project(dirname, filename)) + if not projects: + info("No projects found in {} directory".format(root)) + return # check if we want to use pattern matching (wildcard only) if fields and reduce(lambda x, y: x or y, diff --git a/kubernetes/pomba/charts/pomba-kibana/values.yaml b/kubernetes/pomba/charts/pomba-kibana/values.yaml index a6ee772d9b..aa48263521 100644 --- a/kubernetes/pomba/charts/pomba-kibana/values.yaml +++ b/kubernetes/pomba/charts/pomba-kibana/values.yaml @@ -85,15 +85,15 @@ resources: small: limits: cpu: 2 - memory: 1200Mi + memory: 1600Mi requests: cpu: 1 - memory: 600Mi + memory: 800Mi large: limits: cpu: 4 - memory: 2400Mi + memory: 3200Mi requests: cpu: 2 - memory: 1200Mi + memory: 1600Mi unlimited: {} diff --git a/kubernetes/so/charts/so-bpmn-infra/resources/config/overrides/override.yaml b/kubernetes/so/charts/so-bpmn-infra/resources/config/overrides/override.yaml index 688e06f8b6..a4a1b27a0d 100755 --- a/kubernetes/so/charts/so-bpmn-infra/resources/config/overrides/override.yaml +++ b/kubernetes/so/charts/so-bpmn-infra/resources/config/overrides/override.yaml @@ -39,6 +39,9 @@ pnf: consumerGroup: consumerGroup consumerId: consumerId topicListenerDelayInSeconds: 5 +bpelURL: http://so-bpmn-infra.{{ include "common.namespace" . }}:8081 +msb-ip: msb-iag.{{ include "common.namespace" . }} +msb-port: 80 mso: msoKey: 07a7159d3bf51a0e53be7a8f89699be7 correlation: @@ -86,6 +89,9 @@ mso: endpoint: http://so-openstack-adapter.{{ include "common.namespace" . }}g:8087/services/rest/v1/volume-groups vnf-async: endpoint: http://so-openstack-adapter.{{ include "common.namespace" . }}:8087/services/VnfAsync + vfc: + rest: + endpoint: http://so-vfc-adapter.{{ include "common.namespace" . }}:8084/vfc/rest/v1/vfcadapter workflow: message: endpoint: http://so-bpmn-infra.{{ include "common.namespace" . }}:8081/mso/WorkflowMessage @@ -166,6 +172,10 @@ mso: uri: /aai/v14/network/vces/vce vpn-binding: uri: /aai/v14/network/vpn-bindings/vpn-binding + sp-partner: + uri: /aai/v14/business/sp-partners/sp-partner + device: + uri: /aai/v14/network/devices/device v11: customer: uri: /aai/v11/business/customers/customer diff --git a/kubernetes/so/charts/so-sdnc-adapter/resources/config/overrides/override.yaml b/kubernetes/so/charts/so-sdnc-adapter/resources/config/overrides/override.yaml index 3b0762a920..74905d2df3 100755 --- a/kubernetes/so/charts/so-sdnc-adapter/resources/config/overrides/override.yaml +++ b/kubernetes/so/charts/so-sdnc-adapter/resources/config/overrides/override.yaml @@ -101,11 +101,14 @@ org: bpelurl: http://so-bpmn-infra.{{ include "common.namespace" . }}:8081/mso/SDNCAdapterCallbackService generic-resource: network-topology-operation: + create: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource activate: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource assign: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource deactivate: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource + delete: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource unassign: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource vf-module-topology-operation: + create: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource activate: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource assign: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource changeassign: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource @@ -115,6 +118,7 @@ org: rollback: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource unassign: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource vnf-topology-operation: + create: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource activate: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource assign: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource changeassign: POST|270000|sdncurl10|sdnc-request-header|org:onap:sdnc:northbound:generic-resource diff --git a/kubernetes/so/charts/so-vfc-adapter/resources/config/overrides/override.yaml b/kubernetes/so/charts/so-vfc-adapter/resources/config/overrides/override.yaml index da26017c4d..0eb083dbac 100755 --- a/kubernetes/so/charts/so-vfc-adapter/resources/config/overrides/override.yaml +++ b/kubernetes/so/charts/so-vfc-adapter/resources/config/overrides/override.yaml @@ -31,6 +31,8 @@ server: mso: site-name: localSite logPath: ./logs/vfc + msb-ip: msb-iag.{{ include "common.namespace" . }} + msb-port: 80 adapters: requestDb: endpoint: https://so-request-db-adapter.{{ include "common.namespace" . }}:8083 |