Created
December 6, 2019 20:28
-
-
Save wlan0/39b879fd83b8c6deba5958e0ac57c3cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: demo | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: demo | |
spec: | |
serviceAccountName: kubectl-role | |
containers: | |
- name: demo | |
imagePullPolicy: Always | |
image: wlan0/ubuntu:fully-loaded | |
--- | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: kubectl-role-binding | |
subjects: | |
- kind: ServiceAccount | |
name: kubectl-role | |
namespace: default | |
roleRef: | |
kind: ClusterRole | |
name: cluster-admin | |
apiGroup: rbac.authorization.k8s.io | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: kubectl-role |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment