aboutsummaryrefslogtreecommitdiffstats
path: root/reference/logging-kubernetes
diff options
context:
space:
mode:
authorMichael O'Brien <frank.obrien@amdocs.com>2018-01-28 22:40:06 -0500
committerMichael O'Brien <frank.obrien@amdocs.com>2018-01-29 16:39:00 -0500
commit1f44731975d5a90d546bf5f4008f26920910ab8c (patch)
treef37f00e5f64791103436ef99ab4063e50c01596f /reference/logging-kubernetes
parentfdd8de8305343fd63347fcd7757577aab52a483a (diff)
log RI kubernetes and docker devops
initial demo docker and kubernetes infra Change-Id: I5daf744ee8f4ab9b824576209fd61dec0f41a5c2 Issue-ID: LOG-137 Signed-off-by: Michael O'Brien <frank.obrien@amdocs.com>
Diffstat (limited to 'reference/logging-kubernetes')
-rw-r--r--reference/logging-kubernetes/.project17
-rw-r--r--reference/logging-kubernetes/log-mock-demo/Chart.yaml4
-rw-r--r--reference/logging-kubernetes/log-mock-demo/templates/all-services.yaml14
-rw-r--r--reference/logging-kubernetes/log-mock-demo/templates/log-mock-demo-deployment.yaml43
-rw-r--r--reference/logging-kubernetes/log-mock-demo/values.yaml7
-rw-r--r--reference/logging-kubernetes/logdemo/Chart.yaml4
-rw-r--r--reference/logging-kubernetes/logdemo/templates/all-services.yaml14
-rw-r--r--reference/logging-kubernetes/logdemo/templates/log-mock-demo-deployment.yaml43
-rw-r--r--reference/logging-kubernetes/logdemo/values.yaml7
-rw-r--r--reference/logging-kubernetes/pom.xml12
10 files changed, 165 insertions, 0 deletions
diff --git a/reference/logging-kubernetes/.project b/reference/logging-kubernetes/.project
new file mode 100644
index 0000000..a7ec855
--- /dev/null
+++ b/reference/logging-kubernetes/.project
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>logging-kubernetes</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.m2e.core.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.m2e.core.maven2Nature</nature>
+ </natures>
+</projectDescription>
diff --git a/reference/logging-kubernetes/log-mock-demo/Chart.yaml b/reference/logging-kubernetes/log-mock-demo/Chart.yaml
new file mode 100644
index 0000000..9c45fce
--- /dev/null
+++ b/reference/logging-kubernetes/log-mock-demo/Chart.yaml
@@ -0,0 +1,4 @@
+apiVersion: v1
+description: A Helm chart for Kubernetes
+name: logdemo
+version: 0.1.0
diff --git a/reference/logging-kubernetes/log-mock-demo/templates/all-services.yaml b/reference/logging-kubernetes/log-mock-demo/templates/all-services.yaml
new file mode 100644
index 0000000..9e4f694
--- /dev/null
+++ b/reference/logging-kubernetes/log-mock-demo/templates/all-services.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: logdemo
+ name: logdemo
+ namespace: "{{ .Values.nsPrefix }}-logdemo"
+spec:
+ ports:
+ - port: 8080
+ nodePort: {{ .Values.nodePortPrefix }}99
+ selector:
+ app: logdemo
+ type: NodePort
diff --git a/reference/logging-kubernetes/log-mock-demo/templates/log-mock-demo-deployment.yaml b/reference/logging-kubernetes/log-mock-demo/templates/log-mock-demo-deployment.yaml
new file mode 100644
index 0000000..afd513e
--- /dev/null
+++ b/reference/logging-kubernetes/log-mock-demo/templates/log-mock-demo-deployment.yaml
@@ -0,0 +1,43 @@
+#{{ if not .Values.disableLogdemoLogdemo }}
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: logdemo
+ namespace: "{{ .Values.nsPrefix }}-logdemo"
+spec:
+ selector:
+ matchLabels:
+ app: logdemo
+ template:
+ metadata:
+ labels:
+ app: logdemo
+ name: logdemo
+ spec:
+ containers:
+ - image: {{ .Values.image.logdemo }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ name: logdemo
+ volumeMounts:
+ - name: localtime
+ mountPath: /etc/localtime
+ readOnly: true
+ - name: logdemo-eteshare
+ mountPath: /share
+ ports:
+ - containerPort: 8080
+ readinessProbe:
+ tcpSocket:
+ port: 8080
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: localtime
+ hostPath:
+ path: /etc/localtime
+ - name: logdemo-eteshare
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/logdemo/eteshare
+ imagePullSecrets:
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
+#{{ end }}
diff --git a/reference/logging-kubernetes/log-mock-demo/values.yaml b/reference/logging-kubernetes/log-mock-demo/values.yaml
new file mode 100644
index 0000000..6d1adf7
--- /dev/null
+++ b/reference/logging-kubernetes/log-mock-demo/values.yaml
@@ -0,0 +1,7 @@
+nsPrefix: onap
+pullPolicy: Always
+nodePortPrefix: 302
+image:
+ readiness: oomk8s/readiness-check:1.0.0
+ logdemo: obrienlabs/logging-demo-nbi:0.0.1
+ filebeat: docker.elastic.co/beats/filebeat:5.5.0
diff --git a/reference/logging-kubernetes/logdemo/Chart.yaml b/reference/logging-kubernetes/logdemo/Chart.yaml
new file mode 100644
index 0000000..9c45fce
--- /dev/null
+++ b/reference/logging-kubernetes/logdemo/Chart.yaml
@@ -0,0 +1,4 @@
+apiVersion: v1
+description: A Helm chart for Kubernetes
+name: logdemo
+version: 0.1.0
diff --git a/reference/logging-kubernetes/logdemo/templates/all-services.yaml b/reference/logging-kubernetes/logdemo/templates/all-services.yaml
new file mode 100644
index 0000000..9e4f694
--- /dev/null
+++ b/reference/logging-kubernetes/logdemo/templates/all-services.yaml
@@ -0,0 +1,14 @@
+apiVersion: v1
+kind: Service
+metadata:
+ labels:
+ app: logdemo
+ name: logdemo
+ namespace: "{{ .Values.nsPrefix }}-logdemo"
+spec:
+ ports:
+ - port: 8080
+ nodePort: {{ .Values.nodePortPrefix }}99
+ selector:
+ app: logdemo
+ type: NodePort
diff --git a/reference/logging-kubernetes/logdemo/templates/log-mock-demo-deployment.yaml b/reference/logging-kubernetes/logdemo/templates/log-mock-demo-deployment.yaml
new file mode 100644
index 0000000..afd513e
--- /dev/null
+++ b/reference/logging-kubernetes/logdemo/templates/log-mock-demo-deployment.yaml
@@ -0,0 +1,43 @@
+#{{ if not .Values.disableLogdemoLogdemo }}
+apiVersion: extensions/v1beta1
+kind: Deployment
+metadata:
+ name: logdemo
+ namespace: "{{ .Values.nsPrefix }}-logdemo"
+spec:
+ selector:
+ matchLabels:
+ app: logdemo
+ template:
+ metadata:
+ labels:
+ app: logdemo
+ name: logdemo
+ spec:
+ containers:
+ - image: {{ .Values.image.logdemo }}
+ imagePullPolicy: {{ .Values.pullPolicy }}
+ name: logdemo
+ volumeMounts:
+ - name: localtime
+ mountPath: /etc/localtime
+ readOnly: true
+ - name: logdemo-eteshare
+ mountPath: /share
+ ports:
+ - containerPort: 8080
+ readinessProbe:
+ tcpSocket:
+ port: 8080
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ volumes:
+ - name: localtime
+ hostPath:
+ path: /etc/localtime
+ - name: logdemo-eteshare
+ hostPath:
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/logdemo/eteshare
+ imagePullSecrets:
+ - name: "{{ .Values.nsPrefix }}-docker-registry-key"
+#{{ end }}
diff --git a/reference/logging-kubernetes/logdemo/values.yaml b/reference/logging-kubernetes/logdemo/values.yaml
new file mode 100644
index 0000000..53e3fc6
--- /dev/null
+++ b/reference/logging-kubernetes/logdemo/values.yaml
@@ -0,0 +1,7 @@
+nsPrefix: onap
+pullPolicy: Always
+nodePortPrefix: 302
+image:
+ readiness: oomk8s/readiness-check:1.0.0
+ logdemo: oomk8s/logging-demo-nbi:0.0.1
+ filebeat: docker.elastic.co/beats/filebeat:5.5.0
diff --git a/reference/logging-kubernetes/pom.xml b/reference/logging-kubernetes/pom.xml
new file mode 100644
index 0000000..6f32c54
--- /dev/null
+++ b/reference/logging-kubernetes/pom.xml
@@ -0,0 +1,12 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.onap.logging-analytics</groupId>
+ <artifactId>logging-reference</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ </parent>
+ <artifactId>logging-kubernetes</artifactId>
+ <packaging>pom</packaging>
+ <name>logging-kubernetes</name>
+</project>