Istio implementation for clearwater chart 95/52595/4
authorLaura Sofia Enriquez <lsofia.enriquez@gmail.com>
Sun, 25 Feb 2018 08:11:43 +0000 (05:11 -0300)
committerLaura Sofia Enriquez <lsofia.enriquez@gmail.com>
Mon, 5 Mar 2018 22:50:08 +0000 (19:50 -0300)
1. Services ports renamed.
2. Added label 'app' inside all the deployment's yamls.
. README.md added with configuration information.

JIRA: CLOVER-3
JIRA: CONTAINER-22

Change-Id: I4c58b9ad6b5e0e598ad6a152f58c8afad084a805
Signed-off-by: Laura Sofia Enriquez <lsofia.enriquez@gmail.com>
24 files changed:
src/helm-charts/clearwater/README.md [new file with mode: 0644]
src/helm-charts/clearwater/templates/NOTES.txt
src/helm-charts/clearwater/templates/astaire-depl.yaml
src/helm-charts/clearwater/templates/astaire-svc.yaml
src/helm-charts/clearwater/templates/bono-depl.yaml
src/helm-charts/clearwater/templates/bono-svc.yaml
src/helm-charts/clearwater/templates/cassandra-depl.yaml
src/helm-charts/clearwater/templates/cassandra-svc.yaml
src/helm-charts/clearwater/templates/chronos-depl.yaml
src/helm-charts/clearwater/templates/chronos-svc.yaml
src/helm-charts/clearwater/templates/ellis-depl.yaml
src/helm-charts/clearwater/templates/ellis-svc.yaml
src/helm-charts/clearwater/templates/etcd-depl.yaml
src/helm-charts/clearwater/templates/etcd-svc.yaml
src/helm-charts/clearwater/templates/homer-depl.yaml
src/helm-charts/clearwater/templates/homer-svc.yaml [new file with mode: 0644]
src/helm-charts/clearwater/templates/homestead-depl.yaml [new file with mode: 0644]
src/helm-charts/clearwater/templates/homestead-prov-depl.yaml
src/helm-charts/clearwater/templates/homestead-prov-svc.yaml
src/helm-charts/clearwater/templates/homestead-svc.yaml
src/helm-charts/clearwater/templates/ralf-depl.yaml
src/helm-charts/clearwater/templates/ralf-svc.yaml
src/helm-charts/clearwater/templates/sprout-depl.yaml
src/helm-charts/clearwater/templates/sprout-svc.yaml

diff --git a/src/helm-charts/clearwater/README.md b/src/helm-charts/clearwater/README.md
new file mode 100644 (file)
index 0000000..8a509de
--- /dev/null
@@ -0,0 +1,19 @@
+# Metaswitch Clearwater vIMS Chart
+
+Based on [Metaswitch's Clearwater](https://github.com/Metaswitch/clearwater-docker) k8s configuration.
+
+
+## Configuration
+
+The following tables lists the configurable parameters of the chart and their default values.
+
+
+Parameter | Description | Default
+--- | --- | ---
+`image.path` | dockerhub respository | `enriquetaso`
+`image.tag` | docker image tag | `latest`
+`config.configmaps` | Custom configmap | `env-vars`
+`config.zone` | Custom namespace | `default.svc.cluster.local`
+`config.ip` | MANDATORY: Should be repaced with external ip | `None`
+
+
index 058b997..6756fa8 100644 (file)
@@ -9,7 +9,7 @@ To learn more about the release, try:
 
 The deployment exposes:
 
-    - the Ellis web UI on {{ .Value.config.ip }}30080 for self-provisioning.
+    - the Ellis web UI on port 30080 for self-provisioning.
     - STUN/TURN on port 3478 for media relay.
     - SIP on port 5060 for service.
     - SIP/WebSocket on port 5062 for service.
index 14296b4..94c4855 100644 (file)
@@ -8,6 +8,7 @@ spec:
     metadata:
       labels:
         service: astaire
+        app: astaire
     spec:
       terminationGracePeriodSeconds: 120
       containers:
index 3c453b5..e82dcdd 100644 (file)
@@ -4,7 +4,7 @@ metadata:
   name: astaire
 spec:
   ports:
-  - name: "snmp-astaire"
+  - name: "http-astaire"
     port: 11311
   selector:
     service: astaire
index 02dbe76..94020ed 100644 (file)
@@ -12,6 +12,7 @@ spec:
       labels:
         service: bono
         snmp: enabled
+        app: bono
     spec:
       containers:
       - image: "{{ .Values.image.path }}/bono:{{ .Values.image.tag }}"
index a63479d..3b3da5c 100644 (file)
@@ -3,14 +3,25 @@ kind: Service
 metadata:
   name: bono
 spec:
+  externalIPs:
+  - {{ .Values.config.ip }}
   loadBalancerIP: {{ .Values.config.ip }}
-  type: LoadBalancer
   ports:
-  - name: "3478"
+  - name: "tcp-3478"
     port: 3478
-  - name: "5060"
+    protocol: TCP
+    targetPort: 3478
+  - name: "tcp-5060"
     port: 5060
-  - name: "5062"
+    protocol: TCP
+    targetPort: 5060
+  - name: "tcp-5062"
     port: 5062
+    protocol: TCP
+    targetPort: 5062
   selector:
     service: bono
+  sessionAffinity: None
+  type: ClusterIP
+status:
+  loadBalancer: {}
index 03f2a2f..4a7f6c8 100644 (file)
@@ -8,6 +8,7 @@ spec:
     metadata:
       labels:
         service: cassandra
+        app: cassandra
     spec:
       containers:
       - image: "{{ .Values.image.path }}/cassandra:{{ .Values.image.tag }}"
index dbaa3c0..7cb9892 100644 (file)
@@ -4,13 +4,13 @@ metadata:
   name: cassandra
 spec:
   ports:
-  - name: "7001"
+  - name: "http-7001"
     port: 7001
-  - name: "7000"
+  - name: "http-7000"
     port: 7000
-  - name: "9042"
+  - name: "http-9042"
     port: 9042
-  - name: "9160"
+  - name: "http-9160"
     port: 9160
   selector:
     service: cassandra
index 8ed8735..2f65ad8 100644 (file)
@@ -10,6 +10,7 @@ spec:
     metadata:
       labels:
         service: chronos
+        app: chronos
     spec:
       terminationGracePeriodSeconds: 120
       containers:
index 0c42126..3815b28 100644 (file)
@@ -4,7 +4,7 @@ metadata:
   name: chronos
 spec:
   ports:
-  - name: "7253"
+  - name: "http-7253"
     port: 7253
   selector:
     service: chronos
index 8186829..e231bf1 100644 (file)
@@ -8,6 +8,7 @@ spec:
     metadata:
       labels:
         service: ellis
+        app: ellis
     spec:
       containers:
       - image: "{{ .Values.image.path }}/ellis:{{ .Values.image.tag }}"
index 68d2da0..60e24d5 100644 (file)
@@ -5,7 +5,7 @@ metadata:
 spec:
   type: NodePort
   ports:
-  - name: "http"
+  - name: "http-ellis"
     port: 80
     nodePort: 30080
   selector:
index 3f1be7a..5d6e184 100644 (file)
@@ -9,6 +9,7 @@ spec:
       creationTimestamp: null
       labels:
         instance-type: etcd-pod
+        app: etcd-pod
     spec:
       containers:
       - args:
index 2df5b16..0c02b62 100644 (file)
@@ -6,11 +6,11 @@ metadata:
     instance-type: etcd-pod
 spec:
   ports:
-  - name: "etcd-client"
+  - name: "http-etcd-client"
     port: 2379
-  - name: "etcd-server"
+  - name: "http-etcd-server"
     port: 2380
-  - name: "4001"
+  - name: "http-4001"
     port: 4001
   selector:
     instance-type: etcd-pod
index c5f5310..c9a292e 100644 (file)
@@ -8,6 +8,7 @@ spec:
     metadata:
       labels:
         service: homer
+        app: homer
     spec:
       containers:
       - image: "{{ .Values.image.path }}/homer:{{ .Values.image.tag }}"
diff --git a/src/helm-charts/clearwater/templates/homer-svc.yaml b/src/helm-charts/clearwater/templates/homer-svc.yaml
new file mode 100644 (file)
index 0000000..8acc0ed
--- /dev/null
@@ -0,0 +1,11 @@
+apiVersion: v1
+kind: Service
+metadata:
+  name: homer
+spec:
+  ports:
+  - name: "http-7888"
+    port: 7888
+  selector:
+    service: homer
+  clusterIP: None
diff --git a/src/helm-charts/clearwater/templates/homestead-depl.yaml b/src/helm-charts/clearwater/templates/homestead-depl.yaml
new file mode 100644 (file)
index 0000000..590ea51
--- /dev/null
@@ -0,0 +1,51 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+  name: homestead
+spec:
+  replicas: 1
+  selector:
+    matchLabels:
+      service: homestead
+  template:
+    metadata:
+      labels:
+        service: homestead
+        snmp: enabled
+        app: homestead
+    spec:
+      containers:
+      - image: "{{ .Values.image.path }}/homestead:{{ .Values.image.tag }}"
+        imagePullPolicy: Always
+        name: homestead
+        ports:
+        - containerPort: 22
+        - containerPort: 8888
+        envFrom:
+        - configMapRef:
+              name: env-vars
+        env:
+        - name: MY_POD_IP
+          valueFrom:
+            fieldRef:
+              fieldPath: status.podIP
+        livenessProbe:
+          exec:
+            command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "8888"]
+          initialDelaySeconds: 60
+        readinessProbe:
+          exec:
+            command: ["/bin/bash", "/usr/share/kubernetes/liveness.sh", "8888"]
+        volumeMounts:
+        - name: homesteadlogs
+          mountPath: /var/log/homestead
+      - image: busybox
+        name: tailer
+        command: [ "tail", "-F", "/var/log/homestead/homestead_current.txt" ]
+        volumeMounts:
+        - name: homesteadlogs
+          mountPath: /var/log/homestead
+      volumes:
+      - name: homesteadlogs
+        emptyDir: {}
+      restartPolicy: Always
index 5532b12..ecf9f8d 100644 (file)
@@ -12,6 +12,7 @@ spec:
       labels:
         service: homestead-prov
         snmp: enabled
+        app: homestead-pro
     spec:
       containers:
       - image: "{{ .Values.image.path }}/homestead-prov:{{ .Values.image.tag }}"
index 8310302..4ce2dd9 100644 (file)
@@ -4,7 +4,7 @@ metadata:
   name: homestead-prov
 spec:
   ports:
-  - name: "8889"
+  - name: "http-8889"
     port: 8889
   selector:
     service: homestead-prov
index 4015e81..7684d2e 100644 (file)
@@ -4,7 +4,7 @@ metadata:
   name: homestead
 spec:
   ports:
-  - name: "8888"
+  - name: "http-8888"
     port: 8888
   selector:
     service: homestead
index 9227771..8efcc5e 100644 (file)
@@ -12,6 +12,7 @@ spec:
       labels:
         service: ralf
         snmp: enabled
+        app: ralf
     spec:
       containers:
       - image: "{{ .Values.image.path }}/ralf:{{ .Values.image.tag }}"
index 07ad51e..9fc44c3 100644 (file)
@@ -4,7 +4,7 @@ metadata:
   name: ralf
 spec:
   ports:
-  - name: "10888"
+  - name: "http-10888"
     port: 10888
   selector:
     service: ralf
index 80f788e..da2989c 100644 (file)
@@ -12,6 +12,7 @@ spec:
       labels:
         service: sprout
         snmp: enabled
+        app: sprout
     spec:
       containers:
       - image: "{{ .Values.image.path }}/sprout:{{ .Values.image.tag }}"
index cf23a33..092a51c 100644 (file)
@@ -4,9 +4,9 @@ metadata:
   name: sprout
 spec:
   ports:
-  - name: "5052"
+  - name: "http-5052"
     port: 5052
-  - name: "5054"
+  - name: "http-5054"
     port: 5054
   selector:
     service: sprout