Skip to content

Commit b28cb90

Browse files
authored
Create digital-ocean-kubeconfig-to-servieaccount-kubeconfig.md
1 parent fe1800c commit b28cb90

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
```
2+
wget https://github.com/openshift/origin/releases/download/v3.11.0/openshift-origin-client-tools-v3.11.0-0cbc58b-mac.zip
3+
unzip and move the oc /usr/local/bin
4+
```
5+
6+
7+
```
8+
export KUBECONFIG=~/Downloads/shikha.yaml
9+
export DIGITALOCEAN_ACCESS_TOKEN=<key>
10+
```
11+
12+
13+
```
14+
oc create sa customsa -n kube-system
15+
oc adm policy add-cluster-role-to-user cluster-admin -z customsa -n kube-system
16+
oc -n kube-system sa create-kubeconfig customsa > ~/.kube/shikha.sa.yaml
17+
```

0 commit comments

Comments
 (0)