Get error “unknown field “serviceName” in io.k8s.api.networking.v1.IngressBackend” when switch from v1beta1 to v1 in Kubernetes Ingress

I think that this PR contains the change you’re asking about. `Ingress` and `IngressClass` resources have graduated to `networking.k8s.io/v1`. Ingress and IngressClass types in the `extensions/v1beta1` and `networking.k8s.io/v1beta1` API versions are deprecated and will no longer be served in 1.22+. Persisted objects can be accessed via the `networking.k8s.io/v1` API. Notable changes in v1 Ingress objects … Read more

Listing all resources in a namespace

Based on this comment , the supported way to list all resources is to iterate through all the api versions listed by kubectl api-resources: kubectl api-resources enumerates the resource types available in your cluster. this means you can combine it with kubectl get to actually list every instance of every resource type in a namespace: … Read more

Kubernetes sort pods by age [closed]

Pods have status, which you can use to find out startTime. I guess something like kubectl get po –sort-by=.status.startTime should work. You could also try: kubectl get po –sort-by='{.firstTimestamp}’. kubectl get pods –sort-by=.metadata.creationTimestamp Thanks @chris Also apparently in Kubernetes 1.7 release, sort-by is broken. https://github.com/kubernetes/kubectl/issues/43 Here’s the bug report : https://github.com/kubernetes/kubernetes/issues/48602 Here’s the PR: https://github.com/kubernetes/kubernetes/pull/48659/files

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)