Skip to content

Commit

Permalink
Merge pull request #10 from Financial-Times/UPPSF-1313-add-publish-co…
Browse files Browse the repository at this point in the history
…nfigs

add config for eks
  • Loading branch information
dbelev authored Jun 26, 2020
2 parents bc61944 + eb5f8e5 commit d782346
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Values used for the deployed application.
replicaCount: 2
service:
name: path-routing-varnish

eksCluster: true

30 changes: 18 additions & 12 deletions helm/k8s-pub-path-routing-varnish/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
{{- if .Values.eksCluster }}
apiVersion: apps/v1
{{- else }}
apiVersion: extensions/v1beta1
{{- end }}
kind: Deployment
metadata:
name: {{ .Values.service.name }}
name: {{ .Values.service.name }}
labels:
chart: "{{ .Chart.Name | trunc 63 }}"
chartVersion: "{{ .Chart.Version | trunc 63 }}"
visualize: "true"
app: {{ .Values.service.name }}
chartVersion: "{{ .Chart.Version | trunc 63 }}"
visualize: "true"
app: {{ .Values.service.name }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ .Values.service.name }}
template:
metadata:
labels:
app: {{ .Values.service.name }}
visualize: "true"
visualize: "true"
spec:
{{- if not .Values.eksCluster }}
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand All @@ -28,13 +33,14 @@ spec:
values:
- {{ .Values.service.name }}
topologyKey: "kubernetes.io/hostname"
containers:
- name: {{ .Values.service.name }}
{{- end }}
containers:
- name: {{ .Values.service.name }}
image: "{{ .Values.image.repository }}:{{ .Chart.Version }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
ports:
- containerPort: 80
livenessProbe:
tcpSocket:
livenessProbe:
tcpSocket:
port: 80
initialDelaySeconds: 5
3 changes: 3 additions & 0 deletions helm/k8s-pub-path-routing-varnish/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
service:
name: "" # The name of the service, should be defined in the specific app-configs folder.
replicaCount: 2

eksCluster: false

image:
repository: coco/k8s-pub-path-routing-varnish
pullPolicy: IfNotPresent

0 comments on commit d782346

Please sign in to comment.