Skip to content

Instantly share code, notes, and snippets.

@afrittoli
Last active February 22, 2024 15:52
Show Gist options
  • Save afrittoli/30f005a2de6cc2e16bc577b69f4333ab to your computer and use it in GitHub Desktop.
Save afrittoli/30f005a2de6cc2e16bc577b69f4333ab to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2024-02-20T06:01:21Z"
generateName: tekton-results-postgres-
labels:
app.kubernetes.io/name: tekton-results-postgres
app.kubernetes.io/version: devel
controller-revision-hash: tekton-results-postgres-67bf4bd865
statefulset.kubernetes.io/pod-name: tekton-results-postgres-0
name: tekton-results-postgres-0
namespace: tekton-pipelines
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: StatefulSet
name: tekton-results-postgres
uid: 8a9a38fd-964b-4ff1-8c5f-4c8db19f3b21
resourceVersion: "2950167682"
uid: ced9b12c-c9a7-4e69-9928-b45e7ebc8e46
spec:
containers:
- envFrom:
- configMapRef:
name: tekton-results-postgres
- secretRef:
name: tekton-results-postgres
image: bitnami/postgresql@sha256:35c57c2abb3775004d4a247b1119b2e436b0ef620c9236c64aebce373b58ff9a
imagePullPolicy: IfNotPresent
name: postgres
ports:
- containerPort: 5432
name: postgredb
protocol: TCP
resources: {}
securityContext:
allowPrivilegeEscalation: false
capabilities:
add:
- NET_BIND_SERVICE
drop:
- ALL
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /bitnami/postgresql
name: postgredb
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: kube-api-access-qmp64
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
hostname: tekton-results-postgres-0
nodeName: gke-dogfooding-default-pool-f62aa79c-ax2d
preemptionPolicy: PreemptLowerPriority
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: default
serviceAccountName: default
subdomain: postgres
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:
- name: postgredb
persistentVolumeClaim:
claimName: postgredb-tekton-results-postgres-0
- name: kube-api-access-qmp64
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: "2024-02-20T06:01:21Z"
status: "True"
type: Initialized
- lastProbeTime: null
lastTransitionTime: "2024-02-20T06:01:21Z"
message: 'containers with unready status: [postgres]'
reason: ContainersNotReady
status: "False"
type: Ready
- lastProbeTime: null
lastTransitionTime: "2024-02-20T06:01:21Z"
message: 'containers with unready status: [postgres]'
reason: ContainersNotReady
status: "False"
type: ContainersReady
- lastProbeTime: null
lastTransitionTime: "2024-02-20T06:01:21Z"
status: "True"
type: PodScheduled
containerStatuses:
- image: bitnami/postgresql@sha256:35c57c2abb3775004d4a247b1119b2e436b0ef620c9236c64aebce373b58ff9a
imageID: ""
lastState: {}
name: postgres
ready: false
restartCount: 0
started: false
state:
waiting:
reason: ContainerCreating
hostIP: 10.128.0.75
phase: Pending
qosClass: BestEffort
startTime: "2024-02-20T06:01:21Z"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment