```
Replace <chart-directory> with the path to this Helm chart.
+To install with policy executor checking enabled
+```bash
+helm install cps ./<chart-directory> --set cps.env.POLICY_SERVICE_ENABLED=true
+```
---
## check deployment status
- kafka: Kafka message broker
- zookeeper: Zookeeper coordination service for Kafka
- dmi-stub: Stub service for NCMP device interactions
+- policy-executor-stub: Stub service for Policy Executor interactions
---
\ No newline at end of file
--- /dev/null
+apiVersion: apps/v1
+kind: Deployment
+metadata:
+ name: {{ include "cps-and-ncmp.release-name" . }}-policy-executor-stub
+ labels:
+ app: {{ include "cps-and-ncmp.name" . }}
+ component: policy-executor-stub
+spec:
+ replicas: {{ .Values.policyExecutorStub.replicaCount }}
+ selector:
+ matchLabels:
+ app: {{ include "cps-and-ncmp.name" . }}
+ component: policy-executor-stub
+ instance: policy-executor-stub
+ template:
+ metadata:
+ labels:
+ app: {{ include "cps-and-ncmp.name" . }}
+ component: policy-executor-stub
+ instance: policy-executor-stub
+ spec:
+ containers:
+ - name: policy-executor-stub
+ image: "{{ .Values.policyExecutorStub.image.repository }}:{{ .Values.policyExecutorStub.image.tag }}"
+ imagePullPolicy: {{ .Values.policyExecutorStub.image.pullPolicy }}
+ ports:
+ - containerPort: {{ .Values.policyExecutorStub.service.port }}
+ env:
+ - name: POLICY_SERVICE_PORT
+ value: "{{ .Values.policyExecutorStub.service.port }}"
+ resources:
+ {{ toYaml .Values.policyExecutorStub.resources | nindent 12 }}
\ No newline at end of file
--- /dev/null
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "cps-and-ncmp.release-name" . }}-policy-executor-stub-service
+ labels:
+ app: {{ include "cps-and-ncmp.name" . }}
+ component: policy-executor-stub
+spec:
+ type: {{ .Values.policyExecutorStub.service.type }}
+ ports:
+ - port: {{ .Values.policyExecutorStub.service.port }}
+ targetPort: {{ .Values.policyExecutorStub.service.port }}
+ protocol: TCP
+ name: http
+ {{- if and (eq .Values.policyExecutorStub.service.type "NodePort") .Values.policyExecutorStub.service.nodePort }}
+ nodePort: {{ .Values.policyExecutorStub.service.nodePort }}
+ {{- end }}
+ selector:
+ app: {{ include "cps-and-ncmp.name" . }}
+ component: policy-executor-stub
+ instance: policy-executor-stub
\ No newline at end of file
ONAP_OTEL_EXPORTER_ENDPOINT: "http://jaeger-service:4317"
POLICY_SERVICE_ENABLED: "false"
POLICY_SERVICE_DEFAULT_DECISION: "deny from env"
+ POLICY_SERVICE_PORT: "8094"
+ POLICY_SERVICE_URL: "http://cps-ncmp-policy-executor-stub-service"
CPS_MONITORING_MICROMETER_JVM_EXTRAS: "true"
JAVA_TOOL_OPTIONS: "-XX:InitialRAMPercentage=70.0 -XX:MaxRAMPercentage=70.0"
HAZELCAST_MODE_KUBERNETES_ENABLED: "true"
failureThreshold: 3
timeoutSeconds: 5
-
+policyExecutorStub:
+ enabled: true
+ image:
+ repository: nexus3.onap.org:10003/onap/policy-executor-stub
+ tag: "latest"
+ pullPolicy: IfNotPresent
+ replicaCount: 1
+ service:
+ type: NodePort
+ port: 8094
+ nodePort: 30095
+ env:
+ POLICY_SERVICE_PORT: 8094
+ resources:
+ requests:
+ cpu: "100m"
+ memory: "350Mi"
+ limits:
+ cpu: "1000m"
+ memory: "2Gi"
\ No newline at end of file
pushd "$(dirname "$0")" || exit 1
# Install needed dependencies for any deployment type
-source install-deps.sh "$deploymentType"
+source ./install-deps.sh "$deploymentType"
# Handle deployment type specific setup
if [[ "$deploymentType" == "dockerHosts" ]]; then
# ============LICENSE_END=========================================================
server:
- port: 8093
+ port: ${POLICY_SERVICE_PORT:8093}