diff options
Diffstat (limited to 'deployments/kubernetes/onap4k8s.yaml')
-rw-r--r-- | deployments/kubernetes/onap4k8s.yaml | 96 |
1 files changed, 86 insertions, 10 deletions
diff --git a/deployments/kubernetes/onap4k8s.yaml b/deployments/kubernetes/onap4k8s.yaml index 1bd4ce94..1d0c55f7 100644 --- a/deployments/kubernetes/onap4k8s.yaml +++ b/deployments/kubernetes/onap4k8s.yaml @@ -31,6 +31,7 @@ spec: ports: - name: http port: 9015 + nodePort: 31298 protocol: TCP targetPort: 9015 @@ -52,8 +53,8 @@ spec: spec: containers: - name: orchestrator - image: rtsood/emco:0.0.1 - imagePullPolicy: IfNotPresent + image: emcov2/emco:stable + imagePullPolicy: Always command: ["/opt/emco/entrypoint", "orchestrator"] workingDir: /opt/emco ports: @@ -102,6 +103,7 @@ spec: ports: - name: http port: 9031 + nodePort: 32737 protocol: TCP targetPort: 9031 @@ -123,8 +125,8 @@ spec: spec: containers: - name: ncm - image: rtsood/emco:0.0.1 - imagePullPolicy: IfNotPresent + image: emcov2/emco:stable + imagePullPolicy: Always command: ["/opt/emco/entrypoint", "ncm"] workingDir: /opt/emco ports: @@ -193,8 +195,8 @@ spec: spec: containers: - name: rsync - image: rtsood/emco:0.0.1 - imagePullPolicy: IfNotPresent + image: emcov2/emco:stable + imagePullPolicy: Always command: ["/opt/emco/entrypoint", "rsync"] workingDir: /opt/emco ports: @@ -246,6 +248,7 @@ spec: targetPort: 9053 - name: http port: 9051 + nodePort: 31181 protocol: TCP targetPort: 9051 @@ -267,8 +270,8 @@ spec: spec: containers: - name: ovnaction - image: rtsood/emco:0.0.1 - imagePullPolicy: IfNotPresent + image: emcov2/emco:stable + imagePullPolicy: Always command: ["/opt/emco/entrypoint", "ovnaction"] workingDir: /opt/emco ports: @@ -318,6 +321,7 @@ spec: ports: - name: http port: 9061 + nodePort: 31856 protocol: TCP targetPort: 9061 @@ -339,8 +343,8 @@ spec: spec: containers: - name: clm - image: rtsood/emco:0.0.1 - imagePullPolicy: IfNotPresent + image: emcov2/emco:stable + imagePullPolicy: Always command: ["/opt/emco/entrypoint", "clm"] workingDir: /opt/emco ports: @@ -357,3 +361,75 @@ spec: - key: config.json path: config.json +--- +# DCM Config Map +kind: ConfigMap +apiVersion: v1 +metadata: + name: dcm + labels: + app: dcm +data: + config.json: | + { + "database-type": "mongo", + "database-ip": "mongo", + "etcd-ip": "etcd", + "service-port": "9077" + } + +--- +# DCM Service +apiVersion: v1 +kind: Service +metadata: + name: dcm + labels: + app: dcm +spec: + selector: + app: dcm + type: NodePort + ports: + - name: http + port: 9077 + nodePort: 31877 + protocol: TCP + targetPort: 9077 + +--- +# DCM Deployment +apiVersion: apps/v1 +kind: Deployment +metadata: + name: dcm +spec: + replicas: 1 + selector: + matchLabels: + app: dcm + template: + metadata: + labels: + app: dcm + spec: + containers: + - name: dcm + image: emcov2/emco:stable + imagePullPolicy: Always + command: ["/opt/emco/entrypoint", "dcm"] + workingDir: /opt/emco + ports: + - containerPort: 9077 + volumeMounts: + - name: config + mountPath: /opt/emco/config.json + subPath: config.json + volumes: + - name: config + configMap: + name: dcm + items: + - key: config.json + path: config.json + |