-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2cb39c8
commit 83f018f
Showing
14 changed files
with
365 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{{ $version := printf "v%s" .Chart.Version -}} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "ftl.fullname" . }}-lease | ||
labels: | ||
{{- include "ftl.labels" . | nindent 4 }} | ||
spec: | ||
replicas: {{ .Values.lease.replicas }} | ||
revisionHistoryLimit: {{ .Values.lease.revisionHistoryLimit }} | ||
selector: | ||
matchLabels: | ||
{{- include "ftl-lease.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "ftl-lease.selectorLabels" . | nindent 8 }} | ||
{{- if .Values.lease.podAnnotations }} | ||
annotations: | ||
{{- toYaml .Values.lease.podAnnotations | nindent 8 }} | ||
{{- end }} | ||
spec: | ||
serviceAccountName: {{ .Values.lease.serviceAccountName }} | ||
containers: | ||
- name: app | ||
image: "{{ .Values.lease.image.repository }}:{{ .Values.lease.image.tag | default $version }}" | ||
imagePullPolicy: {{ .Values.lease.image.pullPolicy }} | ||
resources: | ||
limits: | ||
cpu: "{{ .Values.lease.resources.limits.cpu }}" | ||
memory: "{{ .Values.lease.resources.limits.memory }}" | ||
requests: | ||
cpu: "{{ .Values.lease.resources.requests.cpu }}" | ||
memory: "{{ .Values.lease.resources.requests.memory }}" | ||
{{- if .Values.lease.envFrom }} | ||
envFrom: | ||
{{- if .Values.lease.envFrom }} | ||
{{- toYaml .Values.lease.envFrom | nindent 12 }} | ||
{{- end }} | ||
{{- end }} | ||
env: | ||
{{- if .Values.lease.env }} | ||
{{- toYaml .Values.lease.env | nindent 12 }} | ||
{{- end }} | ||
|
||
ports: | ||
{{- range .Values.lease.ports }} | ||
- name: {{ .name }} | ||
containerPort: {{ .containerPort }} | ||
protocol: {{ .protocol | default "TCP" }} | ||
{{- end }} | ||
readinessProbe: | ||
{{- if .Values.lease.readinessProbe }} | ||
{{- toYaml .Values.lease.readinessProbe | nindent 12 }} | ||
{{- else }} | ||
httpGet: | ||
path: /healthz | ||
port: 8892 | ||
initialDelaySeconds: 1 | ||
periodSeconds: 2 | ||
timeoutSeconds: 2 | ||
successThreshold: 1 | ||
failureThreshold: 15 | ||
{{- end }} | ||
{{- if .Values.lease.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml .Values.lease.nodeSelector | nindent 8 }} | ||
{{- end }} | ||
{{- if .Values.lease.affinity }} | ||
affinity: | ||
{{- toYaml .Values.lease.affinity | nindent 8 }} | ||
{{- end }} | ||
{{- if .Values.lease.topologySpreadConstraints }} | ||
topologySpreadConstraints: | ||
{{- toYaml .Values.lease.topologySpreadConstraints | nindent 8 }} | ||
{{- end }} | ||
{{- if .Values.lease.tolerations }} | ||
tolerations: | ||
{{- toYaml .Values.lease.tolerations | nindent 8 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ .Values.lease.serviceAccountName }} | ||
namespace: {{ .Release.Namespace }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
{{- include "ftl.labels" . | nindent 4 }} | ||
name: {{ include "ftl.fullname" . }}-lease | ||
{{- if .Values.lease.service.annotations }} | ||
annotations: | ||
{{- toYaml .Values.lease.service.annotations | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
ports: | ||
{{- range .Values.lease.service.ports }} | ||
- name: {{ .name }} | ||
port: {{ .port }} | ||
protocol: {{ .protocol | default "TCP" }} | ||
targetPort: {{ .targetPort }} | ||
{{- end }} | ||
selector: | ||
{{- include "ftl-lease.selectorLabels" . | nindent 4 }} | ||
type: {{ .Values.lease.service.type | default "ClusterIP" }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{{- if .Values.timeline.enabled }} | ||
{{ $version := printf "v%s" .Chart.Version -}} | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: {{ include "ftl.fullname" . }}-timeline | ||
labels: | ||
{{- include "ftl.labels" . | nindent 4 }} | ||
spec: | ||
replicas: {{ .Values.timeline.replicas }} | ||
revisionHistoryLimit: {{ .Values.timeline.revisionHistoryLimit }} | ||
selector: | ||
matchLabels: | ||
{{- include "ftl-timeline.selectorLabels" . | nindent 6 }} | ||
template: | ||
metadata: | ||
labels: | ||
{{- include "ftl-timeline.selectorLabels" . | nindent 8 }} | ||
{{- if .Values.timeline.podAnnotations }} | ||
annotations: | ||
{{- toYaml .Values.timeline.podAnnotations | nindent 8 }} | ||
{{- end }} | ||
spec: | ||
serviceAccountName: {{ .Values.timeline.serviceAccountName }} | ||
containers: | ||
- name: app | ||
image: "{{ .Values.timeline.image.repository }}:{{ .Values.timeline.image.tag | default $version }}" | ||
imagePullPolicy: {{ .Values.timeline.image.pullPolicy }} | ||
resources: | ||
limits: | ||
cpu: "{{ .Values.timeline.resources.limits.cpu }}" | ||
memory: "{{ .Values.timeline.resources.limits.memory }}" | ||
requests: | ||
cpu: "{{ .Values.timeline.resources.requests.cpu }}" | ||
memory: "{{ .Values.timeline.resources.requests.memory }}" | ||
{{- if .Values.timeline.envFrom }} | ||
envFrom: | ||
{{- if .Values.timeline.envFrom }} | ||
{{- toYaml .Values.timeline.envFrom | nindent 12 }} | ||
{{- end }} | ||
{{- end }} | ||
env: | ||
{{- if .Values.timeline.env }} | ||
{{- toYaml .Values.timeline.env | nindent 12 }} | ||
{{- end }} | ||
|
||
ports: | ||
{{- range .Values.timeline.ports }} | ||
- name: {{ .name }} | ||
containerPort: {{ .containerPort }} | ||
protocol: {{ .protocol | default "TCP" }} | ||
{{- end }} | ||
readinessProbe: | ||
{{- if .Values.timeline.readinessProbe }} | ||
{{- toYaml .Values.timeline.readinessProbe | nindent 12 }} | ||
{{- else }} | ||
httpGet: | ||
path: /healthz | ||
port: 8892 | ||
initialDelaySeconds: 1 | ||
periodSeconds: 2 | ||
timeoutSeconds: 2 | ||
successThreshold: 1 | ||
failureThreshold: 15 | ||
{{- end }} | ||
{{- if .Values.timeline.nodeSelector }} | ||
nodeSelector: | ||
{{- toYaml .Values.timeline.nodeSelector | nindent 8 }} | ||
{{- end }} | ||
{{- if .Values.timeline.affinity }} | ||
affinity: | ||
{{- toYaml .Values.timeline.affinity | nindent 8 }} | ||
{{- end }} | ||
{{- if .Values.timeline.topologySpreadConstraints }} | ||
topologySpreadConstraints: | ||
{{- toYaml .Values.timeline.topologySpreadConstraints | nindent 8 }} | ||
{{- end }} | ||
{{- if .Values.timeline.tolerations }} | ||
tolerations: | ||
{{- toYaml .Values.timeline.tolerations | nindent 8 }} | ||
{{- end }} | ||
|
||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{{- if .Values.timeline.enabled }} | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: {{ .Values.timeline.serviceAccountName }} | ||
namespace: {{ .Release.Namespace }} | ||
|
||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{- if .Values.timeline.enabled }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
{{- include "ftl.labels" . | nindent 4 }} | ||
name: {{ include "ftl.fullname" . }}-timeline | ||
{{- if .Values.timeline.service.annotations }} | ||
annotations: | ||
{{- toYaml .Values.timeline.service.annotations | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
ports: | ||
{{- range .Values.timeline.service.ports }} | ||
- name: {{ .name }} | ||
port: {{ .port }} | ||
protocol: {{ .protocol | default "TCP" }} | ||
targetPort: {{ .targetPort }} | ||
{{- end }} | ||
selector: | ||
{{- include "ftl-timeline.selectorLabels" . | nindent 4 }} | ||
type: {{ .Values.timeline.service.type | default "ClusterIP" }} | ||
|
||
{{- end }} |
Oops, something went wrong.