-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathradixconfig-dev.yml
More file actions
81 lines (80 loc) · 2.41 KB
/
Copy pathradixconfig-dev.yml
File metadata and controls
81 lines (80 loc) · 2.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# yaml-language-server: $schema=https://raw.githubusercontent.com/equinor/radix-operator/release/json-schema/radixapplication.json
apiVersion: radix.equinor.com/v1
kind: RadixApplication
metadata:
name: jacob-dev
annotations:
spec:
build:
useBuildKit: true
environments:
- name: dev
build:
from: master
- name: prod
components:
- name: frontend
variables:
USE_SWAGGER: "true"
src: "."
publicPort: http
ports:
- name: http
port: 1234
environmentConfig:
- environment: dev
horizontalScaling:
maxReplicas: 1
minReplicas: 0
triggers:
- name: cron
cron:
timezone: Europe/Oslo
start: 0 7 * * 1-5 # 07:00 Monday - Friday
end: 0 17 * * 1-5 # 17:00 Monday - Friday
desiredReplicas: 1
resources:
requests:
cpu: "10m"
memory: "5M"
limits:
cpu: "20m"
memory: "10Mi"
runAsUser: 1337
authentication:
oauth2:
clientId: 5e48ca1f-a2bf-4dec-b96d-bbf8ce69f9f6
scope: openid profile email offline_access
setXAuthRequestHeaders: true
setAuthorizationHeader: true
credentials: azureWorkloadIdentity
sessionStoreType: systemManaged # Defaults to cookie, can be systemManaged, redis or cookie
cookieStore:
minimal: false
cookie:
name: _oauth2_proxy
expire: 168h0m0s
refresh: 60m0s
sameSite: lax
jobs:
- name: run-as-user
#src: ./runAsUserJob
image: alpine:3
schedulerPort: 8000
command: ["/bin/sh"]
args: ["-c", "echo 'Hello from manual run-as-user job!'"]
runAsUser: 1000
- name: cron-job
image: alpine:3
schedulerPort: 8080
command: ["/bin/sh"]
args: ["-c", "echo 'Hello from cron job!!'; sleep 90"]
runAsUser: 1000
cron:
timeZone: "Europe/Oslo"
#timeZone: "America/New_York"
schedules:
- "45 12 * * *"
- "*/1 * * * *"
- "@daily"
concurrency: "Replace" # Allow, Forbid, Replace. Naming based on k8s concurrency policy: https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#concurrency-policy