Update MOD component versions 05/104805/1
authorJack Lucas <jflucas@research.att.com>
Mon, 30 Mar 2020 19:56:46 +0000 (15:56 -0400)
committerJack Lucas <jflucas@research.att.com>
Tue, 31 Mar 2020 20:07:24 +0000 (16:07 -0400)
Use images that do not run as root

Issue-ID: DCAEGEN2-2170
Signed-off-by: Jack Lucas <jflucas@research.att.com>
Change-Id: I5766128c6005ba0087f8eb469e74386c4c9f310b

kubernetes/dcaemod/components/dcaemod-designtool/values.yaml
kubernetes/dcaemod/components/dcaemod-distributor-api/values.yaml
kubernetes/dcaemod/components/dcaemod-genprocessor/templates/deployment.yaml
kubernetes/dcaemod/components/dcaemod-genprocessor/values.yaml
kubernetes/dcaemod/components/dcaemod-onboarding-api/values.yaml
kubernetes/dcaemod/components/dcaemod-runtime-api/values.yaml

index d9e00ac..f2320a1 100644 (file)
@@ -31,13 +31,13 @@ global:
         enabled: false
 
 config:
-  nifiJarsIndexURL: http://dcaemod-genprocessor/nifi-jars
+  nifiJarsIndexURL: http://dcaemod-genprocessor:8080/nifi-jars
   distributorAPIURL: /distributor
   curlImage: curlimages/curl:7.68.0
 
 # application image
 repository: nexus3.onap.org:10001
-image: onap/org.onap.dcaegen2.platform.mod.designtool-web:1.0.0
+image: onap/org.onap.dcaegen2.platform.mod.designtool-web:1.0.2
 
 service:
   type: ClusterIP
index 3d9c377..16bb8a9 100644 (file)
@@ -32,25 +32,25 @@ global:
 
 config:
   nifiRegistryURL: http://dcaemod-nifi-registry:18080/nifi-registry-api
-  onboardingAPIURL: http://dcaemod-onboarding-api/onboarding
+  onboardingAPIURL: http://dcaemod-onboarding-api:8080/onboarding
 
 # application image
 repository: nexus3.onap.org:10001
-image: onap/org.onap.dcaegen2.platform.mod.distributorapi:1.0.0
+image: onap/org.onap.dcaegen2.platform.mod.distributorapi:1.0.1
 
 service:
   type: ClusterIP
   name: dcaemod-distributor-api
   ports:
     - name: http
-      port: 80
+      port: 8080
 
 ingress:
     enabled: true
     service:
     - baseaddr: "distributor"
       name: dcaemod-distributor-api
-      port: 80
+      port: 8080
     config:
       ssl: "none"
 
index 6b15abe..a4afe05 100644 (file)
@@ -24,6 +24,21 @@ spec:
   template:
     metadata: {{- include "common.templateMetadata" . | nindent 6 }}
     spec:
+      initContainers:
+        # apps run as uid 1000, gid 1000
+        # the volume is mounted with root permissions
+        # this initContainer changes ownership to uid 1000 gid 1000
+        # (tried using a securityContext in the pod spec, but it didn't seem to work)
+          - name: set-permissions
+            image: busybox:latest
+            imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
+            command:
+              - sh
+              - -c
+              - chown -R 1000:1000 /genprocessor-data
+            volumeMounts:
+            - mountPath: /genprocessor-data
+              name: genprocessor-data
       containers:
         - name: {{ include "common.name" . }}
           image: "{{ include "common.repository" . }}/{{ .Values.image }}"
index 7096a16..37bb861 100644 (file)
@@ -30,26 +30,26 @@ global:
         enabled: false
 
 config:
-  onboardingAPIURL: http://dcaemod-onboarding-api/onboarding
+  onboardingAPIURL: http://dcaemod-onboarding-api:8080/onboarding
 
 # application image
 repository: nexus3.onap.org:10001
-image: onap/org.onap.dcaegen2.platform.mod.genprocessor-job:1.0.0
-httpImage: onap/org.onap.dcaegen2.platform.mod.genprocessor-http:1.0.0
+image: onap/org.onap.dcaegen2.platform.mod.genprocessor-job:1.0.1
+httpImage: onap/org.onap.dcaegen2.platform.mod.genprocessor-http:1.0.1
 
 service:
   type: ClusterIP
   name: dcaemod-genprocessor
   ports:
     - name: http
-      port: 80
+      port: 8080
 
 ingress:
   enabled: true
   service:
   - baseaddr: "nifi-jars"
     name: dcaemod-genprocessor
-    port: 80
+    port: 8080
   config:
     ssl: "none"
 
index 656fd69..28e79a1 100644 (file)
@@ -47,13 +47,13 @@ service:
   name: dcaemod-onboarding-api
   ports:
     - name: http
-      port: 80
+      port: 8080
 ingress:
   enabled: true
   service:
   - baseaddr: "onboarding"
     name: dcaemod-onboarding-api
-    port: 80
+    port: 8080
   config:
     ssl: "none"
 
@@ -93,7 +93,7 @@ postgres:
 
 # application image
 repository: nexus3.onap.org:10001
-image: onap/org.onap.dcaegen2.platform.mod.onboardingapi:2.12.0
+image: onap/org.onap.dcaegen2.platform.mod.onboardingapi:2.12.1
 
 # Resource Limit flavor -By Default using small
 flavor: small
index a56552e..d5da039 100644 (file)
@@ -72,7 +72,7 @@ readiness:
 
 # application image
 repository: nexus3.onap.org:10001
-image: onap/org.onap.dcaegen2.platform.mod.runtime-web:1.0.1
+image: onap/org.onap.dcaegen2.platform.mod.runtime-web:1.0.2
 
 # Resource Limit flavor -By Default using small
 flavor: small