-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcode
186 lines (186 loc) · 6.03 KB
/
code
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
apiVersion: v1
items:
- apiVersion: batch/v1
kind: Job
metadata:
annotations:
radix.equinor.com/radix-deployment-observed-generation: "1"
creationTimestamp: "2024-12-02T12:42:58Z"
generation: 1
labels:
radix-app: radix-job-demo
radix-batch-job-name: t3czygs6
radix-batch-name: batch-compute4dxj9sejr-20241202124258-plbab1dc
radix-component: compute
radix-job-type: job-scheduler
name: batch-compute4dxj9sejr-20241202124258-plbab1dc-t3czygs6
namespace: radix-job-demo-qa
ownerReferences:
- apiVersion: radix.equinor.com/v1
controller: true
kind: RadixBatch
name: batch-compute4dxj9sejr-20241202124258-plbab1dc
uid: 96bf2c52-0bdc-41f2-acdf-4bb9bbeeec99
resourceVersion: "208334"
uid: 155d9fd0-6c1e-47fd-a973-c0569cf92f89
spec:
backoffLimit: 0
completionMode: NonIndexed
completions: 1
manualSelector: false
parallelism: 1
podReplacementPolicy: TerminatingOrFailed
selector:
matchLabels:
batch.kubernetes.io/controller-uid: 155d9fd0-6c1e-47fd-a973-c0569cf92f89
suspend: false
template:
metadata:
annotations:
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
creationTimestamp: null
labels:
azure.workload.identity/use: "true"
batch.kubernetes.io/controller-uid: 155d9fd0-6c1e-47fd-a973-c0569cf92f89
batch.kubernetes.io/job-name: batch-compute4dxj9sejr-20241202124258-plbab1dc-t3czygs6
controller-uid: 155d9fd0-6c1e-47fd-a973-c0569cf92f89
job-name: batch-compute4dxj9sejr-20241202124258-plbab1dc-t3czygs6
radix-app: radix-job-demo
radix-batch-job-name: t3czygs6
radix-batch-name: batch-compute4dxj9sejr-20241202124258-plbab1dc
radix-component: compute
radix-job-type: job-scheduler
spec:
activeDeadlineSeconds: 300
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: nodepooltasks
operator: Exists
- key: kubernetes.io/os
operator: In
values:
- linux
- key: kubernetes.io/arch
operator: In
values:
- amd64
automountServiceAccountToken: false
containers:
- env:
- name: CALLBACK_ON_COMPLETE_URL
valueFrom:
configMapKeyRef:
key: CALLBACK_ON_COMPLETE_URL
name: env-vars-compute
- name: COMPUTE_CONFIG
valueFrom:
configMapKeyRef:
key: COMPUTE_CONFIG
name: env-vars-compute
- name: RADIX_ACTIVE_CLUSTER_EGRESS_IPS
value: 104.45.84.0,104.45.84.1
- name: RADIX_APP
value: radix-job-demo
- name: RADIX_CLUSTERNAME
value: weekly-49
- name: RADIX_CLUSTER_TYPE
value: development
- name: RADIX_COMPONENT
value: compute
- name: RADIX_CONTAINER_REGISTRY
value: radixdev.azurecr.io
- name: RADIX_DNS_ZONE
value: dev.radix.equinor.com
- name: RADIX_ENVIRONMENT
value: qa
- name: RADIX_GIT_COMMIT_HASH
value: ae25ff6afa72da2b66f857d40e9d74d429e97077
- name: RADIX_GIT_TAGS
- name: RADIX_PORTS
value: (9999 9090)
- name: RADIX_PORT_NAMES
value: (http metrics2)
- name: SQL_DATABASE_NAME
valueFrom:
configMapKeyRef:
key: SQL_DATABASE_NAME
name: env-vars-compute
- name: SQL_SERVER_NAME
valueFrom:
configMapKeyRef:
key: SQL_SERVER_NAME
name: env-vars-compute
- name: RADIX_JOB_NAME
value: batch-compute4dxj9sejr-20241202124258-plbab1dc-t3czygs6
image: radixdev.azurecr.io/radix-job-demo-qa-compute:6u6ge
imagePullPolicy: Always
name: compute
ports:
- containerPort: 9999
name: http
protocol: TCP
- containerPort: 9090
name: metrics2
protocol: TCP
resources:
limits:
memory: 100Mi
requests:
cpu: 50m
memory: 100Mi
securityContext:
allowPrivilegeEscalation: false
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /compute/args
name: job-payload
readOnly: true
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: radix-external-registry-default-auth
restartPolicy: Never
schedulerName: default-scheduler
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
serviceAccount: compute-sa
serviceAccountName: compute-sa
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoSchedule
key: nodepooltasks
operator: Exists
volumes:
- name: job-payload
secret:
defaultMode: 420
items:
- key: t3czygs6
path: payload
secretName: batch-compute4dxj9sejr-20241202124258-plbab1dc-payloads-0
ttlSecondsAfterFinished: 86400
status:
completionTime: "2024-12-02T12:43:03Z"
conditions:
- lastProbeTime: "2024-12-02T12:43:04Z"
lastTransitionTime: "2024-12-02T12:43:04Z"
status: "True"
type: Complete
ready: 0
startTime: "2024-12-02T12:42:58Z"
succeeded: 1
terminating: 0
uncountedTerminatedPods: {}
kind: List
metadata:
resourceVersion: ""