Skip to content

Instantly share code, notes, and snippets.

@miminar
Last active January 16, 2020 13:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miminar/0a8e57323b00caaf488af1c03bb9fea8 to your computer and use it in GitHub Desktop.
Save miminar/0a8e57323b00caaf488af1c03bb9fea8 to your computer and use it in GitHub Desktop.
LSO PVC pending when beta sc annotation used
apiVersion: v1
kind: PersistentVolume
metadata:
annotations:
pv.kubernetes.io/provisioned-by: local-volume-provisioner-sdh-worker2-08169257-217d-11ea-a062-005056123203
creationTimestamp: "2020-01-16T11:05:23Z"
finalizers:
- kubernetes.io/pv-protection
labels:
storage.openshift.com/local-volume-owner-name: local-disks
storage.openshift.com/local-volume-owner-namespace: local-storage
name: local-pv-7b884bb4
resourceVersion: "18634143"
selfLink: /api/v1/persistentvolumes/local-pv-7b884bb4
uid: 17a55ece-3850-11ea-ad11-005056123203
spec:
accessModes:
- ReadWriteOnce
capacity:
storage: 16Gi
local:
fsType: ext4
path: /mnt/local-storage/local-sc/sdb
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- sdh-worker2
persistentVolumeReclaimPolicy: Delete
storageClassName: local-sc
volumeMode: Filesystem
status:
phase: Available
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
creationTimestamp: "2020-01-16T11:04:24Z"
labels:
local.storage.openshift.io/owner-name: local-disks
local.storage.openshift.io/owner-namespace: local-storage
name: local-sc
ownerReferences:
- apiVersion: local.storage.openshift.io/v1
controller: true
kind: LocalVolume
name: local-disks
uid: f4913a50-384f-11ea-ae57-005056123202
resourceVersion: "18633591"
selfLink: /apis/storage.k8s.io/v1/storageclasses/local-sc
uid: f4c72fb6-384f-11ea-91cb-005056123201
provisioner: kubernetes.io/no-provisioner
reclaimPolicy: Delete
volumeBindingMode: WaitForFirstConsumer
apiVersion: local.storage.openshift.io/v1
kind: LocalVolume
metadata:
name: local-disks
namespace: local-storage
spec:
logLevel: Normal
managementState: Managed
nodeSelector:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- sdh-worker1
- sdh-worker2
- sdh-worker3
storageClassDevices:
- devicePaths:
- /dev/sdb
fsType: ext4
storageClassName: local-sc
volumeMode: Filesystem
apiVersion: v1
items:
- apiVersion: v1
kind: Pod
metadata:
annotations:
openshift.io/scc: restricted
creationTimestamp: "2020-01-16T12:50:24Z"
generateName: scann-
labels:
app: scann
controller-revision-hash: scann-544659767f
statefulset.kubernetes.io/pod-name: scann-0
name: scann-0
namespace: scann-bug
ownerReferences:
- apiVersion: apps/v1
blockOwnerDeletion: true
controller: true
kind: StatefulSet
name: scann
uid: c383651e-385e-11ea-ae57-005056123202
resourceVersion: "18683561"
selfLink: /api/v1/namespaces/scann-bug/pods/scann-0
uid: c3875d6f-385e-11ea-ad11-005056123203
spec:
containers:
- image: openshift/hello-openshift
imagePullPolicy: IfNotPresent
name: hello-openshift
ports:
- containerPort: 8080
protocol: TCP
resources: {}
securityContext:
capabilities:
drop:
- KILL
- MKNOD
- SETGID
- SETUID
privileged: false
runAsUser: 1000530000
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /mnt
name: scann
- mountPath: /var/run/secrets/kubernetes.io/serviceaccount
name: default-token-686rc
readOnly: true
dnsPolicy: ClusterFirst
enableServiceLinks: true
hostname: scann-0
imagePullSecrets:
- name: default-dockercfg-8qbvn
priority: 0
restartPolicy: Always
schedulerName: default-scheduler
securityContext:
fsGroup: 1000530000
seLinuxOptions:
level: s0:c23,c12
serviceAccount: default
serviceAccountName: default
subdomain: scann
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: scann
persistentVolumeClaim:
claimName: scann-scann-0
- name: default-token-686rc
secret:
defaultMode: 420
secretName: default-token-686rc
status:
conditions:
- lastProbeTime: null
lastTransitionTime: "2020-01-16T12:50:24Z"
message: '0/9 nodes are available: 3 node(s) didn''t find available persistent
volumes to bind, 6 node(s) had taints that the pod didn''t tolerate.'
reason: Unschedulable
status: "False"
type: PodScheduled
phase: Pending
qosClass: BestEffort
kind: List
metadata:
resourceVersion: ""
selfLink: ""
apiVersion: v1
items:
- apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
volume.beta.kubernetes.io/storage-class: local-sc
creationTimestamp: "2020-01-16T12:50:24Z"
finalizers:
- kubernetes.io/pvc-protection
labels:
app: scann
name: scann-scann-0
namespace: scann-bug
resourceVersion: "18683555"
selfLink: /api/v1/namespaces/scann-bug/persistentvolumeclaims/scann-scann-0
uid: c385f6e7-385e-11ea-ad11-005056123203
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
volumeMode: Filesystem
status:
phase: Pending
kind: List
metadata:
resourceVersion: ""
selfLink: ""
apiVersion: v1
items:
- apiVersion: project.openshift.io/v1
kind: Project
metadata:
name: scann-bug
- apiVersion: apps/v1
kind: StatefulSet
metadata:
name: scann
namespace: scann-bug
spec:
replicas: 1
selector:
matchLabels:
app: scann
serviceName: "scann"
template:
metadata:
labels:
app: scann
spec:
containers:
- image: openshift/hello-openshift
imagePullPolicy: IfNotPresent
name: hello-openshift
ports:
- containerPort: 8080
protocol: TCP
resources: {}
securityContext:
capabilities: {}
privileged: false
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /mnt
name: scann
dnsPolicy: ClusterFirst
restartPolicy: Always
volumeClaimTemplates:
- metadata:
annotations:
volume.beta.kubernetes.io/storage-class: local-sc
labels:
app: scann
name: scann
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
volumeMode: Filesystem
#storageClassName: local-sc
status:
phase: Pending
kind: List
metadata:
apiVersion: v1
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
volume.beta.kubernetes.io/storage-class: local-sc
creationTimestamp: "2020-01-16T12:50:24Z"
finalizers:
- kubernetes.io/pvc-protection
labels:
app: scann
name: scann-scann-0
namespace: scann-bug
resourceVersion: "18683555"
selfLink: /api/v1/namespaces/scann-bug/persistentvolumeclaims/scann-scann-0
uid: c385f6e7-385e-11ea-ad11-005056123203
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
volumeMode: Filesystem
status:
phase: Pending
@miminar
Copy link
Author

miminar commented Jan 16, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment