-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloggers-hackathon-pod.yaml
235 lines (235 loc) · 7.22 KB
/
loggers-hackathon-pod.yaml
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
kind: Pod
apiVersion: v1
metadata:
name: logger-hackathon-pod
namespace: default
uid: b298ddda-7bee-4e24-832b-014d74b132f4
resourceVersion: '46975'
creationTimestamp: '2024-09-28T17:02:55Z'
labels:
app: logger-hackathon
annotations:
kubectl.kubernetes.io/last-applied-configuration: >
{"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"labels":{"app":"logger-hackathon"},"name":"logger-hackathon-pod","namespace":"default"},"spec":{"containers":[{"image":"tjain598/logger-hackathon:latest","name":"logger-hackathon","ports":[{"containerPort":8080,"name":"http"}],"volumeMounts":[{"mountPath":"/var/log/myapp","name":"log-volume"}]}],"restartPolicy":"Always","volumes":[{"emptyDir":{},"name":"log-volume"}]}}
managedFields:
- manager: kubectl-client-side-apply
operation: Update
apiVersion: v1
time: '2024-09-28T17:02:55Z'
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:kubectl.kubernetes.io/last-applied-configuration: {}
f:labels:
.: {}
f:app: {}
f:spec:
f:containers:
k:{"name":"logger-hackathon"}:
.: {}
f:image: {}
f:imagePullPolicy: {}
f:name: {}
f:ports:
.: {}
k:{"containerPort":8080,"protocol":"TCP"}:
.: {}
f:containerPort: {}
f:name: {}
f:protocol: {}
f:resources: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:volumeMounts:
.: {}
k:{"mountPath":"/var/log/myapp"}:
.: {}
f:mountPath: {}
f:name: {}
f:dnsPolicy: {}
f:enableServiceLinks: {}
f:restartPolicy: {}
f:schedulerName: {}
f:securityContext: {}
f:terminationGracePeriodSeconds: {}
f:volumes:
.: {}
k:{"name":"log-volume"}:
.: {}
f:emptyDir: {}
f:name: {}
- manager: kubelet
operation: Update
apiVersion: v1
time: '2024-09-29T03:05:33Z'
fieldsType: FieldsV1
fieldsV1:
f:status:
f:conditions:
k:{"type":"ContainersReady"}:
.: {}
f:lastProbeTime: {}
f:lastTransitionTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:type: {}
k:{"type":"Initialized"}:
.: {}
f:lastProbeTime: {}
f:lastTransitionTime: {}
f:status: {}
f:type: {}
k:{"type":"PodReadyToStartContainers"}:
.: {}
f:lastProbeTime: {}
f:lastTransitionTime: {}
f:status: {}
f:type: {}
k:{"type":"Ready"}:
.: {}
f:lastProbeTime: {}
f:lastTransitionTime: {}
f:message: {}
f:reason: {}
f:status: {}
f:type: {}
f:containerStatuses: {}
f:hostIP: {}
f:hostIPs: {}
f:phase: {}
f:podIP: {}
f:podIPs:
.: {}
k:{"ip":"10.244.0.33"}:
.: {}
f:ip: {}
f:startTime: {}
subresource: status
spec:
volumes:
- name: log-volume
emptyDir: {}
- name: kube-api-access-jscgg
projected:
sources:
- serviceAccountToken:
expirationSeconds: 3607
path: token
- configMap:
name: kube-root-ca.crt
items:
- key: ca.crt
path: ca.crt
- downwardAPI:
items:
- path: namespace
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
defaultMode: 420
containers:
- name: logger-hackathon
image: tjain598/logger-hackathon:latest
ports:
- name: http
containerPort: 8080
protocol: TCP
resources: {}
volumeMounts:
- name: log-volume
mountPath: /var/log/myapp
- name: kube-api-access-jscgg
readOnly: true
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: Always
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
serviceAccountName: default
serviceAccount: default
nodeName: minikube
securityContext: {}
schedulerName: default-scheduler
tolerations:
- key: node.kubernetes.io/not-ready
operator: Exists
effect: NoExecute
tolerationSeconds: 300
- key: node.kubernetes.io/unreachable
operator: Exists
effect: NoExecute
tolerationSeconds: 300
priority: 0
enableServiceLinks: true
preemptionPolicy: PreemptLowerPriority
status:
phase: Running
conditions:
- type: PodReadyToStartContainers
status: 'True'
lastProbeTime: null
lastTransitionTime: '2024-09-28T21:08:27Z'
- type: Initialized
status: 'True'
lastProbeTime: null
lastTransitionTime: '2024-09-28T17:02:55Z'
- type: Ready
status: 'False'
lastProbeTime: null
lastTransitionTime: '2024-09-29T03:05:18Z'
reason: ContainersNotReady
message: 'containers with unready status: [logger-hackathon]'
- type: ContainersReady
status: 'False'
lastProbeTime: null
lastTransitionTime: '2024-09-29T03:05:18Z'
reason: ContainersNotReady
message: 'containers with unready status: [logger-hackathon]'
- type: PodScheduled
status: 'True'
lastProbeTime: null
lastTransitionTime: '2024-09-28T17:02:55Z'
hostIP: 192.168.49.2
hostIPs:
- ip: 192.168.49.2
podIP: 10.244.0.33
podIPs:
- ip: 10.244.0.33
startTime: '2024-09-28T17:02:55Z'
containerStatuses:
- name: logger-hackathon
state:
waiting:
reason: CrashLoopBackOff
message: >-
back-off 5m0s restarting failed container=logger-hackathon
pod=logger-hackathon-pod_default(b298ddda-7bee-4e24-832b-014d74b132f4)
lastState:
terminated:
exitCode: 0
reason: Completed
startedAt: '2024-09-29T03:04:15Z'
finishedAt: '2024-09-29T03:05:17Z'
containerID: >-
docker://51b804297182a31fd72ef3b3a976471a1bac0ae8b542c00e1936337cdccb3c66
ready: false
restartCount: 70
image: aaersh/logger-hackathon:latest
imageID: >-
docker-pullable://aaersh/logger-hackathon@sha256:6974d289fe85f79469280956242bb630ab163be4a190b7d94e0f88efdf65d326
containerID: >-
docker://51b804297182a31fd72ef3b3a976471a1bac0ae8b542c00e1936337cdccb3c66
started: false
volumeMounts:
- name: log-volume
mountPath: /var/log/myapp
- name: kube-api-access-jscgg
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
readOnly: true
recursiveReadOnly: Disabled
qosClass: BestEffort