-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpod-python-pod.yaml
More file actions
155 lines (155 loc) · 5 KB
/
Copy pathpod-python-pod.yaml
File metadata and controls
155 lines (155 loc) · 5 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
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
apiVersion: v1
kind: Pod
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"labels":{"app":"fastapi"},"name":"python-pod","namespace":"devcontainer"},"spec":{"containers":[{"command":["/bin/sh","-c","while sleep 1000; do :; done"],"image":"mcr-focal-fixed","imagePullPolicy":"Never","name":"python-container","securityContext":{"runAsGroup":1000,"runAsUser":1000},"volumeMounts":[{"mountPath":"/workspace","name":"code-volume"},{"mountPath":"/home/vscode/.cache","name":"cache-volume"}]},{"env":[{"name":"POSTGRES_PASSWORD","value":"blehbleh"}],"image":"postgres:latest","name":"postgres","ports":[{"containerPort":5432}],"volumeMounts":[{"mountPath":"/var/lib/postgresql/data","name":"postgres-volume"}]}],"volumes":[{"hostPath":{"path":"/Users/adan/Work/me/aws-helper-scripts","type":"Directory"},"name":"code-volume"},{"emptyDir":{},"name":"cache-volume"},{"name":"postgres-volume","persistentVolumeClaim":{"claimName":"local-path-pvc"}}]}}
creationTimestamp: "2022-10-03T13:27:00Z"
labels:
app: fastapi
name: python-pod
namespace: devcontainer
resourceVersion: "8199"
uid: 27a59553-bea7-452d-bef8-e09bc4c7e8dd
spec:
containers:
- command:
- /bin/sh
- -c
- while sleep 1000; do :; done
image: mcr-focal-fixed
imagePullPolicy: IfNotPresent
name: python-container
resources: {}
securityContext:
runAsGroup: 1000
runAsUser: 1000
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /workspace
name: code-volume
- mountPath: /home/vscode/.cache
name: cache-volume
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: kube-api-access-5hcfn
readOnly: true
- env:
- name: POSTGRES_PASSWORD
value: blehbleh
image: postgres:latest
imagePullPolicy: Always
name: postgres
ports:
- containerPort: 5432
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: postgres-volume
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: kube-api-access-5hcfn
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
nodeName: lima-rancher-desktop
preemptionPolicy: PreemptLowerPriority
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
terminationGracePeriodSeconds: 30
tolerations:
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
tolerationSeconds: 300
- effect: NoExecute
key: node.kubernetes.io/unreachable
operator: Exists
tolerationSeconds: 300
volumes:
- hostPath:
path: /Users/adan/Work/me/aws-helper-scripts
type: Directory
name: code-volume
- emptyDir: {}
name: cache-volume
- name: postgres-volume
persistentVolumeClaim:
claimName: local-path-pvc
- name: kube-api-access-5hcfn
projected:
defaultMode: 420
sources:
- serviceAccountToken:
expirationSeconds: 3607
path: token
- configMap:
items:
- key: ca.crt
path: ca.crt
name: kube-root-ca.crt
- downwardAPI:
items:
- fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
path: namespace
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2022-10-03T13:27:13Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2022-10-03T13:27:13Z"
message: 'containers with unready status: [python-container]'
reason: ContainersNotReady
status: "False"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2022-10-03T13:27:13Z"
message: 'containers with unready status: [python-container]'
reason: ContainersNotReady
status: "False"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2022-10-03T13:27:13Z"
status: "True"
type: PodScheduled
containerStatuses:
- containerID: containerd://11ca7d17293cec0fe7712565a870678485424361307177443239214d61197273
image: docker.io/library/postgres:latest
imageID: docker.io/library/postgres@sha256:b0ee049a2e347f5ec8c64ad225c7edbc88510a9e34450f23c4079a489ce16268
lastState: {}
name: postgres
ready: true
restartCount: 0
started: true
state:
running:
startedAt: "2022-10-03T13:27:44Z"
- image: mcr-focal-fixed
imageID: ""
lastState: {}
name: python-container
ready: false
restartCount: 0
started: false
state:
waiting:
message: Container image "mcr-focal-fixed" is not present with pull policy
of Never
reason: ErrImageNeverPull
hostIP: 192.168.5.15
phase: Pending
podIP: 10.42.0.11
podIPs:
- ip: 10.42.0.11
qosClass: BestEffort
startTime: "2022-10-03T13:27:13Z"