Examples from https://github.com/tomplus/kubernetes_asyncio
993
This image contains an example script from kubernetes_asyncio library. You can run it on your k8s cluster:
$ kubectl run kubernetes-asyncio-examples --image tpimages/kubernetes_asyncio_examples
Configure RBAC if necessary:
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pods-list
rules:
- apiGroups: [""]
resources: ["pods"]
verbs: ["list"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: pods-list
subjects:
- kind: ServiceAccount
name: default
namespace: default
roleRef:
kind: ClusterRole
name: pods-list
apiGroup: rbac.authorization.k8s.io
Content type
Image
Digest
Size
345.3 MB
Last updated
over 6 years ago
docker pull tpimages/kubernetes_asyncio_examples