updates to rtorrent-flood chart (#67)

* updates to rtorrent-flood chart

* trying to fix linting errors

* resources should be set in values

* add necessary resources stanza

* revert livenessProbe for rtorrent container
This commit is contained in:
Jeff Billimek 2019-09-29 07:55:44 -05:00 committed by GitHub
parent 32c21ea851
commit dd686320ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 20 deletions

View File

@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.0.0 appVersion: 1.0.0
description: rtorrent and flood co-located in the same deployment description: rtorrent and flood co-located in the same deployment
name: rtorrent-flood name: rtorrent-flood
version: 3.0.1 version: 3.1.1
keywords: keywords:
- rtorrent - rtorrent
- flood - flood
@ -13,7 +13,6 @@ sources:
- https://hub.docker.com/r/looselyrigorous/rtorrent - https://hub.docker.com/r/looselyrigorous/rtorrent
- https://github.com/looselyrigorous/docker-rtorrent - https://github.com/looselyrigorous/docker-rtorrent
- https://github.com/Flood-UI/flood - https://github.com/Flood-UI/flood
- https://cloud.docker.com/repository/docker/billimek/flood
maintainers: maintainers:
- name: billimek - name: billimek
email: jeff@billimek.com email: jeff@billimek.com

View File

@ -29,12 +29,16 @@ spec:
- name: bt - name: bt
containerPort: 49161 containerPort: 49161
protocol: TCP protocol: TCP
tty: true
livenessProbe:
tcpSocket:
port: bt
readinessProbe: readinessProbe:
tcpSocket: tcpSocket:
port: bt port: bt
livenessProbe: periodSeconds: 10
tcpSocket: successThreshold: 1
port: bt failureThreshold: 3
env: env:
- name: TZ - name: TZ
value: "{{ .Values.timezone }}" value: "{{ .Values.timezone }}"
@ -56,6 +60,7 @@ spec:
- mountPath: /socket - mountPath: /socket
name: socket name: socket
resources: resources:
{{ toYaml .Values.rtorrent.resources | indent 12 }}
- name: {{ .Chart.Name }}-flood - name: {{ .Chart.Name }}-flood
image: "{{ .Values.flood.image.repository }}:{{ .Values.flood.image.tag }}" image: "{{ .Values.flood.image.repository }}:{{ .Values.flood.image.tag }}"
imagePullPolicy: {{ .Values.flood.image.pullPolicy }} imagePullPolicy: {{ .Values.flood.image.pullPolicy }}
@ -75,7 +80,7 @@ spec:
initialDelaySeconds: 60 initialDelaySeconds: 60
failureThreshold: 5 failureThreshold: 5
timeoutSeconds: 20 timeoutSeconds: 20
tty: true # tty: true
env: env:
- name: TZ - name: TZ
value: "{{ .Values.timezone }}" value: "{{ .Values.timezone }}"
@ -92,7 +97,7 @@ spec:
- mountPath: /tmp - mountPath: /tmp
name: socket name: socket
resources: resources:
{{ toYaml .Values.resources | indent 12 }} {{ toYaml .Values.flood.resources | indent 12 }}
volumes: volumes:
- name: config - name: config
{{- if .Values.persistence.config.enabled }} {{- if .Values.persistence.config.enabled }}

View File

@ -19,13 +19,27 @@ rtorrent:
repository: looselyrigorous/rtorrent repository: looselyrigorous/rtorrent
tag: latest tag: latest
pullPolicy: Always pullPolicy: Always
resources:
requests:
cpu: "50m"
memory: "50Mi"
limits:
cpu: "1000m"
memory: "1Gi"
flood: flood:
enabled: true enabled: true
image: image:
repository: billimek/flood repository: jfurrow/flood-ui
tag: latest tag: latest
pullPolicy: Always pullPolicy: Always
resources:
requests:
memory: "100Mi"
cpu: "10m"
limits:
memory: "250Mi"
cpu: "50m"
guiService: guiService:
type: ClusterIP type: ClusterIP
@ -118,18 +132,6 @@ persistence:
accessMode: ReadWriteOnce accessMode: ReadWriteOnce
size: 10Gi size: 10Gi
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
nodeSelector: {} nodeSelector: {}
tolerations: [] tolerations: []