summaryrefslogtreecommitdiffstats
path: root/samples/scenarios/clearwater_ims/yaml
diff options
context:
space:
mode:
Diffstat (limited to 'samples/scenarios/clearwater_ims/yaml')
-rw-r--r--samples/scenarios/clearwater_ims/yaml/ellis-depl.yaml40
-rw-r--r--samples/scenarios/clearwater_ims/yaml/ellis-svc.yaml16
-rw-r--r--samples/scenarios/clearwater_ims/yaml/homer-depl.yaml38
-rw-r--r--samples/scenarios/clearwater_ims/yaml/homer-svc.yaml14
-rw-r--r--samples/scenarios/clearwater_ims/yaml/homestead-depl.yaml54
-rw-r--r--samples/scenarios/clearwater_ims/yaml/homestead-prov-depl.yaml42
-rw-r--r--samples/scenarios/clearwater_ims/yaml/homestead-prov-svc.yaml14
-rw-r--r--samples/scenarios/clearwater_ims/yaml/homestead-svc.yaml14
-rw-r--r--samples/scenarios/clearwater_ims/yaml/ralf-depl.yaml54
-rw-r--r--samples/scenarios/clearwater_ims/yaml/ralf-svc.yaml14
10 files changed, 300 insertions, 0 deletions
diff --git a/samples/scenarios/clearwater_ims/yaml/ellis-depl.yaml b/samples/scenarios/clearwater_ims/yaml/ellis-depl.yaml
new file mode 100644
index 0000000..7cbaf1d
--- /dev/null
+++ b/samples/scenarios/clearwater_ims/yaml/ellis-depl.yaml
@@ -0,0 +1,40 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: ellis
+ labels:
+ app: ellis
+spec:
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: ellis
+ service: ellis
+ spec:
+ containers:
+ #- image: "localhost:5000/ellis:clearwater/base:latest"
+ - image: "instance-1:5000/clearwater/ellis:latest"
+ imagePullPolicy: Always
+ name: ellis
+ ports:
+ - containerPort: 22
+ - containerPort: 80
+ envFrom:
+ - configMapRef:
+ name: env-vars
+ env:
+ - name: MY_POD_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ - name: PUBLIC_IP
+ value: <External Load Balancer IP>
+ livenessProbe:
+ tcpSocket:
+ port: 80
+ initialDelaySeconds: 30
+ readinessProbe:
+ tcpSocket:
+ port: 80
+ restartPolicy: Always
diff --git a/samples/scenarios/clearwater_ims/yaml/ellis-svc.yaml b/samples/scenarios/clearwater_ims/yaml/ellis-svc.yaml
new file mode 100644
index 0000000..da65bd0
--- /dev/null
+++ b/samples/scenarios/clearwater_ims/yaml/ellis-svc.yaml
@@ -0,0 +1,16 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: ellis
+ labels:
+ app: ellis
+spec:
+ #clusterIP: None
+ type: "LoadBalancer"
+ loadBalancerIP: <External Load Balancer IP>
+ ports:
+ - name: "http"
+ port: 80
+ selector:
+ app: ellis
+ service: ellis
diff --git a/samples/scenarios/clearwater_ims/yaml/homer-depl.yaml b/samples/scenarios/clearwater_ims/yaml/homer-depl.yaml
new file mode 100644
index 0000000..d753241
--- /dev/null
+++ b/samples/scenarios/clearwater_ims/yaml/homer-depl.yaml
@@ -0,0 +1,38 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: homer
+ labels:
+ app: homer
+spec:
+ replicas: 1
+ template:
+ metadata:
+ labels:
+ app: homer
+ service: homer
+ spec:
+ containers:
+ #- image: "localhost:5000/homer:clearwater/base:latest"
+ - image: "instance-1:5000/clearwater/homer:latest"
+ imagePullPolicy: Always
+ name: homer
+ ports:
+ - containerPort: 22
+ - containerPort: 7888
+ envFrom:
+ - configMapRef:
+ name: env-vars
+ env:
+ - name: MY_POD_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ livenessProbe:
+ tcpSocket:
+ port: 7888
+ initialDelaySeconds: 30
+ readinessProbe:
+ tcpSocket:
+ port: 7888
+ restartPolicy: Always
diff --git a/samples/scenarios/clearwater_ims/yaml/homer-svc.yaml b/samples/scenarios/clearwater_ims/yaml/homer-svc.yaml
new file mode 100644
index 0000000..4329843
--- /dev/null
+++ b/samples/scenarios/clearwater_ims/yaml/homer-svc.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: homer
+ labels:
+ app: homer
+spec:
+ ports:
+ - name: "7888"
+ port: 7888
+ selector:
+ app: homer
+ service: homer
+ clusterIP: None
diff --git a/samples/scenarios/clearwater_ims/yaml/homestead-depl.yaml b/samples/scenarios/clearwater_ims/yaml/homestead-depl.yaml
new file mode 100644
index 0000000..c30bac0
--- /dev/null
+++ b/samples/scenarios/clearwater_ims/yaml/homestead-depl.yaml
@@ -0,0 +1,54 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: homestead
+ labels:
+ app: homestead
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ service: homestead
+ template:
+ metadata:
+ labels:
+ app: homestead
+ service: homestead
+ snmp: enabled
+ spec:
+ containers:
+ #- image: "localhost:5000/homestead:clearwater/base:latest"
+ - image: "instance-1:5000/clearwater/homestead:latest"
+ 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
diff --git a/samples/scenarios/clearwater_ims/yaml/homestead-prov-depl.yaml b/samples/scenarios/clearwater_ims/yaml/homestead-prov-depl.yaml
new file mode 100644
index 0000000..18b47ea
--- /dev/null
+++ b/samples/scenarios/clearwater_ims/yaml/homestead-prov-depl.yaml
@@ -0,0 +1,42 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: homestead-prov
+ labels:
+ app: homestead-prov
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ service: homestead-prov
+ template:
+ metadata:
+ labels:
+ app: homestead-prov
+ service: homestead-prov
+ snmp: enabled
+ spec:
+ containers:
+ #- image: "localhost:5000/homestead-prov:clearwater/base:latest"
+ - image: "instance-1:5000/clearwater/homestead-prov:latest"
+ imagePullPolicy: Always
+ name: homestead-prov
+ ports:
+ - containerPort: 22
+ - containerPort: 8889
+ envFrom:
+ - configMapRef:
+ name: env-vars
+ env:
+ - name: MY_POD_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ livenessProbe:
+ exec:
+ command: ["/bin/bash", "/usr/share/clearwater/bin/poll_homestead-prov.sh"]
+ initialDelaySeconds: 60
+ readinessProbe:
+ exec:
+ command: ["/bin/bash", "/usr/share/clearwater/bin/poll_homestead-prov.sh"]
+ restartPolicy: Always
diff --git a/samples/scenarios/clearwater_ims/yaml/homestead-prov-svc.yaml b/samples/scenarios/clearwater_ims/yaml/homestead-prov-svc.yaml
new file mode 100644
index 0000000..66b6358
--- /dev/null
+++ b/samples/scenarios/clearwater_ims/yaml/homestead-prov-svc.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: homestead-prov
+ labels:
+ app: homestead-prov
+spec:
+ ports:
+ - name: "8889"
+ port: 8889
+ selector:
+ app: homestead-prov
+ service: homestead-prov
+ clusterIP: None
diff --git a/samples/scenarios/clearwater_ims/yaml/homestead-svc.yaml b/samples/scenarios/clearwater_ims/yaml/homestead-svc.yaml
new file mode 100644
index 0000000..99c1942
--- /dev/null
+++ b/samples/scenarios/clearwater_ims/yaml/homestead-svc.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: homestead
+ labels:
+ app: homestead
+spec:
+ ports:
+ - name: "8888"
+ port: 8888
+ selector:
+ app: homestead
+ service: homestead
+ clusterIP: None
diff --git a/samples/scenarios/clearwater_ims/yaml/ralf-depl.yaml b/samples/scenarios/clearwater_ims/yaml/ralf-depl.yaml
new file mode 100644
index 0000000..da6df5f
--- /dev/null
+++ b/samples/scenarios/clearwater_ims/yaml/ralf-depl.yaml
@@ -0,0 +1,54 @@
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: ralf
+ labels:
+ app: ralf
+spec:
+ replicas: 1
+ selector:
+ matchLabels:
+ service: ralf
+ template:
+ metadata:
+ labels:
+ app: ralf
+ service: ralf
+ snmp: enabled
+ spec:
+ containers:
+ #- image: "localhost:5000/ralf:clearwater/base:latest"
+ - image: "instance-1:5000/clearwater/ralf:latest"
+ imagePullPolicy: Always
+ name: ralf
+ ports:
+ - containerPort: 22
+ - containerPort: 10888
+ envFrom:
+ - configMapRef:
+ name: env-vars
+ env:
+ - name: MY_POD_IP
+ valueFrom:
+ fieldRef:
+ fieldPath: status.podIP
+ livenessProbe:
+ tcpSocket:
+ port: 10888
+ initialDelaySeconds: 30
+ readinessProbe:
+ tcpSocket:
+ port: 10888
+ volumeMounts:
+ - name: ralflogs
+ mountPath: /var/log/ralf
+ - image: busybox
+ name: tailer
+ command: [ "tail", "-F", "/var/log/ralf/ralf_current.txt" ]
+ volumeMounts:
+ - name: ralflogs
+ mountPath: /var/log/ralf
+ volumes:
+ - name: ralflogs
+ emptyDir: {}
+ restartPolicy: Always
diff --git a/samples/scenarios/clearwater_ims/yaml/ralf-svc.yaml b/samples/scenarios/clearwater_ims/yaml/ralf-svc.yaml
new file mode 100644
index 0000000..2e72ac0
--- /dev/null
+++ b/samples/scenarios/clearwater_ims/yaml/ralf-svc.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: ralf
+ labels:
+ app: ralf
+spec:
+ ports:
+ - name: "10888"
+ port: 10888
+ selector:
+ app: ralf
+ service: ralf
+ clusterIP: None