Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Commit

Permalink
"Copied helm-related files from helm-migration branch"
Browse files Browse the repository at this point in the history
  • Loading branch information
Tamas Molnar committed Aug 18, 2017
1 parent 4fb0721 commit 3ddca81
Show file tree
Hide file tree
Showing 9 changed files with 158 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ _cgo_export.*

_testmain.go

concept-ingester
/concept-ingester

*.exe
*.test
Expand Down
3 changes: 3 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@Library('k8s-pipeline-lib') _

uppEntryPointForJenkinsfile()
21 changes: 21 additions & 0 deletions helm/concept-ingester/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
4 changes: 4 additions & 0 deletions helm/concept-ingester/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
description: concept-ingester Helm chart for Kubernetes
name: concept-ingester
version: 0.0.0 # this entry can be left untouched as it is automatically handled by Jenkins pipeline
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Values used for the deployed application.
replicaCount: 2
service:
name: concept-ingester
env:
graphite:
prefix: "coco.services.k8s.concept-ingester"
16 changes: 16 additions & 0 deletions helm/concept-ingester/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 24 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 24 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 24 | trimSuffix "-" -}}
{{- end -}}
73 changes: 73 additions & 0 deletions helm/concept-ingester/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
##this is an example deployment.yaml that should be customized in order to meet the configuration for app k8s deployment

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ .Values.service.name }}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
visualize: "true"
app: {{ .Values.service.name }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ .Values.service.name }}
template:
metadata:
labels:
app: {{ .Values.service.name }}
visualize: "true"
spec:
containers:
- name: {{ .Values.service.name }}
image: "{{ .Values.image.repository }}:{{ .Chart.Version }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
env:
- name: PORT
value: "8080"
- name: KAFKA_PROXY_ADDRESS
valueFrom:
configMapKeyRef:
name: global-config
key: kafka.proxy.url.with.protocol
- name: GROUP_ID
value: "RedConcepts"
- name: TOPIC
value: "Concept"
- name: SERVICES
value: "http://content-rw-neo4j:8080,http://people-rw-neo4j:8080,http://organisations-rw-neo4j:8080,http://memberships-rw-neo4j:8080,http://brands-rw-neo4j:8080,http://roles-rw-neo4j:8080,http://financial-instruments-rw-neo4j:8080,http://industry-classifications-rw-neo4j:8080"
- name: ELASTICSEARCH_WRITER_ADDRESS
value: "http://concept-rw-elasticsearch:8080"
- name: QUEUE_ID
value: "kafka"
- name: GRAPHITE_TCP_AUTHORITY
valueFrom:
configMapKeyRef:
name: global-config
key: graphite.address
- name: GRAPHITE_PREFIX
value: "coco.services.k8s.concept-ingester"
- name: OFFSET
value: "largest"
- name: COMMIT_ENABLE
value: "true"
- name: STREAM_COUNT
value: "1"
- name: TIMEOUT
value: "60"
ports:
- containerPort: 8080
livenessProbe:
tcpSocket:
port: 8080
initialDelaySeconds: 5
# readinessProbe:
# httpGet:
# port: 8080
# path: "/__gtg"
# initialDelaySeconds: 15
# periodSeconds: 30
resources:
{{ toYaml .Values.resources | indent 12 }}

18 changes: 18 additions & 0 deletions helm/concept-ingester/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
##this is an example service.yaml that should be customized in order to meet the configuration for app service

kind: Service
apiVersion: v1
metadata:
name: {{.Values.service.name}}
labels:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
app: {{.Values.service.name}}
visualize: "true"
hasHealthcheck: "{{ .Values.service.hasHealthcheck }}"
spec:
ports:
- port: 8080
# name: # The name of this port within the service. Optional if only one port is defined on this service
targetPort: 8080
selector:
app: {{ .Values.service.name }}
15 changes: 15 additions & 0 deletions helm/concept-ingester/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Default values for concept-ingester.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
service:
name: "" # The name of the service, should be defined in the specific app-configs folder.
hasHealthcheck: "true"
replicaCount: 2
image:
repository: coco/concept-ingester
pullPolicy: IfNotPresent
resources:
limits:
memory: 256Mi


0 comments on commit 3ddca81

Please sign in to comment.