Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
updateChart
  • Loading branch information
yccharles committed Feb 7, 2023
commit c681effb10aeeb166589f359a360ff41176852f4
2 changes: 1 addition & 1 deletion chart/kubernetes-cronhpa-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: kubernetes-cronhpa-controller is a kubernetes cron horizontal pod a
controller using crontab like scheme. You can use CronHorizontalPodAutoscaler with
any kind object defined in kubernetes which support scale subresource(such as Deployment
and StatefulSet).
version: 1.3.0
version: 1.3.1
appVersion: "v1beta1"
kubeVersion: ">=1.7.0-0"
keywords:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
{{- end }}
containers:
- name: kubectl
image: registry.cn-beijing.aliyuncs.com/acs/hyperkube:v1.12.1
image: {{ .Values.cleanup.image }}
imagePullPolicy: IfNotPresent
command:
- /bin/sh
Expand Down
33 changes: 26 additions & 7 deletions chart/kubernetes-cronhpa-controller/templates/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ metadata:
app: {{ template "fullname" . }}
controller-tools.k8s.io: "1.0"
spec:
replicas: {{ .Values.controller.replicas }}
selector:
matchLabels:
app: {{ template "fullname" . }}
Expand All @@ -38,16 +39,34 @@ spec:
spec:
containers:
- image: {{ .Values.controller.image }}
command:
- /bin/sh
- '-c'
- /root/kubernetes-cronhpa-controller --enableLeaderElection=true
env:
- name: TZ
value: {{ .Values.controller.timezone }}
imagePullPolicy: Always
name: kubernetes-cronhpa-controller
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
serviceAccount: kubernetes-cronhpa-controller
{{- toYaml .Values.controller.resources | nindent 10 }}
serviceAccount: kubernetes-cronhpa-controller
{{- with .Values.controller.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.controller.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.controller.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}

{{- with .Values.controller.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}


33 changes: 33 additions & 0 deletions chart/kubernetes-cronhpa-controller/values.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,45 @@
cleanup:
cleanupCustomResource: false
image: registry.cn-beijing.aliyuncs.com/acs/hyperkube:v1.12.1

crds:
needcreate: true

controller:
image: registry.aliyuncs.com/acs/kubernetes-cronhpa-controller:v1.4.1-b8cd52c-aliyun
timezone: "Asia/Shanghai"
replicas: 1
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
nodeSelector: {}
# disktype: ssd
affinity: {}
# nodeAffinity:
# requiredDuringSchedulingIgnoredDuringExecution:
# nodeSelectorTerms:
# - matchExpressions:
# - key: kubernetes.io/e2e-az-name
# operator: In
# values:
# - e2e-az1
# - e2e-az2
tolerations: []
# - key: "example-key"
# operator: "Exists"
# effect: "NoSchedule"
topologySpreadConstraints: []
# - maxSkew: 1
# topologyKey: "kubernetes.io/hostname"
# whenUnsatisfiable: ScheduleAnyway
# labelSelector:
# matchLabels:
# app: cronhpa-kubernetes-cronhpa-controller
# controller-tools.k8s.io: "1.0"

global:
rbac:
Expand Down