kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch21/kubeless-cli.yaml

33 lines
598 B
YAML

apiVersion: v1
kind: ServiceAccount
metadata:
name: kubeless-cli
labels:
kiamol: ch21
---
apiVersion: v1
kind: Pod
metadata:
name: kubeless-cli
labels:
kiamol: ch21
spec:
serviceAccountName: kubeless-cli
containers:
- name: kubeless-cli
image: kiamol/ch21-kubeless-cli
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kubeless-cli
labels:
kiamol: ch21
subjects:
- kind: ServiceAccount
name: kubeless-cli
namespace: default
roleRef:
kind: ClusterRole
name: cluster-admin # tsk
apiGroup: rbac.authorization.k8s.io