You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.1 KiB
46 lines
1.1 KiB
--- |
|
apiVersion: v1 |
|
kind: ConfigMap |
|
metadata: |
|
name: redis-clean-trigger |
|
namespace: k2 |
|
data: |
|
REDIS_TRIM: "10000" |
|
--- |
|
apiVersion: batch/v1beta1 |
|
kind: CronJob |
|
metadata: |
|
name: redis-clean-trigger |
|
spec: |
|
schedule: "0 6 * * *" |
|
successfulJobsHistoryLimit: 4 |
|
failedJobsHistoryLimit: 1 |
|
concurrencyPolicy: Forbid |
|
jobTemplate: |
|
spec: |
|
template: |
|
spec: |
|
#imagePullSecrets: |
|
# - name: k2-repository |
|
containers: |
|
- name: alarmlist-trigger |
|
image: 935062023832.dkr.ecr.eu-west-1.amazonaws.com/redis_clean_trigger:1.0.1 |
|
envFrom: |
|
- configMapRef: |
|
name: k2 |
|
- configMapRef: |
|
name: redis-clean-trigger |
|
env: |
|
- name: REDIS_PASSWORD |
|
valueFrom: |
|
secretKeyRef: |
|
name: redis |
|
key: redis-password |
|
|
|
resources: |
|
limits: |
|
memory: 128M |
|
requests: |
|
cpu: 100m |
|
memory: 128M |
|
restartPolicy: OnFailure
|
|
|