Shell
x
56
56
1
# Run kubectl commands inside here
2
# e.g. kubectl get all
3
>
4
> helm repo add rancher-stable https://releases.rancher.com/server-charts/latest
5
"rancher-latest" has been added to your repositories
6
>
7
> helm repo update
8
Hang tight while we grab the latest from your chart repositories...
9
...Successfully got an update from the "rancher-stable" chart repository
10
Update Complete. ⎈Happy Helming!⎈
11
>
12
> helm upgrade rancher rancher-stable/rancher --namespace cattle-system --set hostname=rancher.my.org --set bootstrapPassword=P@55w0rdR00t
13
Starting delete for "bootstrap-secret" Secret
14
creating 1 resource(s)
15
checking 8 resources for changes
16
Patch ServiceAccount "rancher" in namespace cattle-system
17
Created a new ConfigMap called "rancher-config" in cattle-system
18
19
Patch ClusterRoleBinding "rancher" in namespace
20
Patch Service "rancher" in namespace cattle-system
21
Patch Deployment "rancher" in namespace cattle-system
22
Patch Ingress "rancher" in namespace cattle-system
23
Patch Issuer "rancher" in namespace cattle-system
24
Created a new PriorityClass called "rancher-critical" in
25
26
Release "rancher" has been upgraded. Happy Helming!
27
NAME: rancher
28
LAST DEPLOYED: Sun Feb 18 03:47:19 2024
29
NAMESPACE: cattle-system
30
STATUS: deployed
31
REVISION: 2
32
TEST SUITE: None
33
NOTES:
34
Rancher Server has been installed.
35
36
NOTE: Rancher may take several minutes to fully initialize. Please standby while Certificates are being issued, Containers are started and the Ingress rule comes up.
37
38
Check out our docs at https://rancher.com/docs/
39
40
If you provided your own bootstrap password during installation, browse to https://rancher.my.org to get started.
41
42
If this is the first time you installed Rancher, get started by running this command and clicking the URL it generates:
43
44
```
45
echo https://rancher.my.org/dashboard/?setup=$(kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}')
46
```
47
48
To get just the bootstrap password on its own, run:
49
50
```
51
kubectl get secret --namespace cattle-system bootstrap-secret -o go-template='{{.data.bootstrapPassword|base64decode}}{{ "\n" }}'
52
```
53
54
55
Happy Containering!
56
>