Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

generate kubernetes dashboard token longer time

In the v2.2.0 version (~year 2021) of the default installation (https://raw.githubusercontent.com/kubernetes/dashboard/v2.2.0/aio/deploy/recommended.yaml), they use kubernetes-dashboard as the namespace.

The command would look like this:

kubectl edit deployment kubernetes-dashboard -n kubernetes-dashboard
The change would look like this:


# ... content before...

    spec:
      containers:
      - args:
        - --auto-generate-certificates
        - --namespace=kubernetes-dashboard
        - --token-ttl=0 # <-- add this with your timeout
      image: kubernetesui/dashboard:v2.0.0

# ... content after ...

As TJ Zimmerman suggested: 0 = no-timeout.
Comment

generate kubernetes dashboard token longer time

There are two ways. When you deploy the manifest originally, this can be done by modifying the Container Args to include this directive: --token-ttl=43200 where 43200 is the number of seconds you want to set the automatic timeout to be.

If you want to manipulate the configuration post-deployment, then you can edit the existing deployment which will trigger the pod to be redeployed with the new arguments. To do this run kubectl edit deployment -n kube-system kubernetes-dashboard and add the argument mentioned above to the args section.

EDIT: If you are using V2 of the Dashboard (Still in beta) then you will need to change the namespace in the command from kube-system to kubernetes-dashboard. (Or somewhere else if you customized it)

EDIT2: You can also set token-ttl to 0 to disable timeouts entirely.

# ... content before...

    spec:
      containers:
      - args:
        - --auto-generate-certificates
        - --namespace=kubernetes-dashboard
        - --token-ttl=0 # <-- add this with your timeout
      image: kubernetesui/dashboard:v2.0.0

# ... content after ...
Comment

PREVIOUS NEXT
Code Example
Shell :: zsh move file 
Shell :: journalctl --flush --rotate; journalctl --vacuum-time=1s; 
Shell :: betterlock screen set wallpaper 
Shell :: visule stdio fro kali 
Shell :: save terminal history to file 
Shell :: How do I fix issue "E: some index files fail to download.They have been ignored or old ones are used instead" while apt-get update 
Shell :: ubuntu 21.04 install gnome tweak tool 
Shell :: nmap -sY command use 
Shell :: conan set option in command line 
Shell :: tapping homebrew/core 
Shell :: Install Chrome Linux Red Hat 
Shell :: regex log level info or warn or erro 
Shell :: view git pull changes terminal 
Shell :: how to chang spark hadoop replication factor on commandline 
Shell :: instal specific version software in archlinux 
Shell :: calibre on centos terminal 
Shell :: hide active app from dock 
Shell :: python tree library 
Shell :: git find commit by message 
Shell :: changed files githib 
Shell :: how to find and replace in nano editor 
Shell :: how to save file in linux 
Shell :: first commit github 
Shell :: run artisan queue --once loop 
Shell :: git hub set up 
Shell :: How to run a command in the background 
Shell :: scp 
Shell :: i wrongly deleted code , can i retrieve through git command 
Shell :: python-swiftclient 3.5.0 uninstall ubuntu 
Php :: laravel clear route cache 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =