diff options
Diffstat (limited to 'heat/vFW_CNF_CDS/templates/helm/vfw')
3 files changed, 11 insertions, 38 deletions
diff --git a/heat/vFW_CNF_CDS/templates/helm/vfw/templates/configmap.yaml b/heat/vFW_CNF_CDS/templates/helm/vfw/templates/configmap.yaml index 832afde7..6a38b5a5 100644 --- a/heat/vFW_CNF_CDS/templates/helm/vfw/templates/configmap.yaml +++ b/heat/vFW_CNF_CDS/templates/helm/vfw/templates/configmap.yaml @@ -3,10 +3,10 @@ kind: ConfigMap metadata: name: {{ .Values.vfw_name_0 }}-configmap labels: + vnf-name: {{ .Values.vnf_name }} + vf-module-name: {{ .Values.vfw_name_0 }} release: {{ .Release.Name }} - app: {{ .Values.vfw_name_0 }} chart: {{ .Chart.Name }} - vnf-name: {{ .Values.vnf_name }} data: demo_artifacts_version: {{ .Values.demo_artifacts_version | quote }} dcae_collector_ip: {{ .Values.dcae_collector_ip | quote }} @@ -14,4 +14,3 @@ data: vfw_private_ip_0: {{ .Values.vfw_int_private1_ip_0 | quote }} vsn_private_ip_0: {{ .Values.vsn_int_private2_ip_0 | quote }} protected_net_cidr: {{ .Values.int_private2_net_cidr | quote }} - diff --git a/heat/vFW_CNF_CDS/templates/helm/vfw/templates/deployment.yaml b/heat/vFW_CNF_CDS/templates/helm/vfw/templates/deployment.yaml index 4aa1861c..2205cf89 100644 --- a/heat/vFW_CNF_CDS/templates/helm/vfw/templates/deployment.yaml +++ b/heat/vFW_CNF_CDS/templates/helm/vfw/templates/deployment.yaml @@ -3,22 +3,23 @@ kind: Deployment metadata: name: {{ .Values.vfw_name_0 }} labels: + vnf-name: {{ .Values.vnf_name }} + vf-module-name: {{ .Values.vfw_name_0 }} release: {{ .Release.Name }} - app: {{ .Values.vfw_name_0 }} chart: {{ .Chart.Name }} - vnf-name: {{ .Values.vnf_name }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: - app: {{ .Values.vfw_name_0 }} - release: {{ .Release.Name }} + vnf-name: {{ .Values.vnf_name }} + vf-module-name: {{ .Values.vfw_name_0 }} template: metadata: labels: - app: {{ .Values.vfw_name_0 }} - release: {{ .Release.Name }} vnf-name: {{ .Values.vnf_name }} + vf-module-name: {{ .Values.vfw_name_0 }} + release: {{ .Release.Name }} + chart: {{ .Chart.Name }} annotations: VirtletLibvirtCPUSetting: | mode: host-model @@ -37,7 +38,7 @@ spec: - wget -O firewall.sh https://git.onap.org/multicloud/k8s/plain/kud/tests/vFW/firewall - bash -c 'set -a; . /etc/cloud/environment; bash firewall.sh' VirtletRootVolumeSize: 5Gi - k8s.v1.cni.cncf.io/networks: "{{ .Values.vnf_name }}-ovn-attachment" + k8s.v1.cni.cncf.io/networks: "{{ .Values.net_attachment_definition }}" k8s.plugin.opnfv.org/nfn-network: | { "type": "ovn4nfv", "interface": [ diff --git a/heat/vFW_CNF_CDS/templates/helm/vfw/values.yaml b/heat/vFW_CNF_CDS/templates/helm/vfw/values.yaml index c97ec60d..488f61d3 100644 --- a/heat/vFW_CNF_CDS/templates/helm/vfw/values.yaml +++ b/heat/vFW_CNF_CDS/templates/helm/vfw/values.yaml @@ -1,30 +1,3 @@ -# global: -# -# #Networks -# unprotectedNetworkName: unprotected-private-net -# protectedPrivateNetCidr: 192.168.10.0/24 -# protectedPrivateNetGw: 192.168.10.1/24 -# -# onapPrivateNetworkName: onap-private-net -# onapPrivateNetCidr: 10.10.0.0/16 -# onapPrivateNetGw: 10.10.0.1/16 -# -# protectedNetworkName: protected-private-net -# protectedNetCidr: 192.168.20.0/24 -# protectedNetGwIp: 192.168.20.100 -# protectedNetGw: 192.168.20.100/24 -# -# #vFirewall container -# vfwPrivateIp0: 192.168.10.3 -# vfwPrivateIp1: 192.168.20.2 -# vfwPrivateIp2: 10.10.100.3 -# #Packetgen container -# vpgPrivateIp0: 192.168.10.2 -# vpgPrivateIp1: 10.0.100.2 -# #Sink container -# vsnPrivateIp0: 192.168.20.3 -# vsnPrivateIp1: 10.10.100.4 - # Static Defaults replicaCount: 1 image: @@ -35,13 +8,13 @@ resources: limits: memory: 4Gi -# Kubernetes PARAMETERS # Names vnf_name: test-vnf vfw_name_0: test-vnf-vfw int_private1_net_id: unprotected-net int_private2_net_id: protected-net onap_private_net_id: onap-private-net +net_attachment_definition: vfw-net-attach # OWN Addresses vfw_int_private1_ip_0: 192.168.10.3 vfw_int_private2_ip_0: 192.168.20.2 |