Merge branch 'master' of ssh://git.cynarski.pl:65522/playgrounds/vagrant-lab-k8s

This commit is contained in:
Aleksander Cynarski 2022-10-08 19:24:30 +02:00
commit ec24359084
2 changed files with 7 additions and 7 deletions

4
Vagrantfile vendored
View File

@ -49,7 +49,7 @@ Vagrant.configure(2) do |config|
lv.memory = 2*1024 lv.memory = 2*1024
end end
config.vm.hostname = fqdn config.vm.hostname = fqdn
config.vm.network :private_network, ip: ip_address, libvirt__forward_mode: 'none', libvirt__dhcp_enabled: false config.vm.network :private_network, ip: ip_address, libvirt__forward_mode: 'open', libvirt__dhcp_enabled: false, bridge: 'enp0s31f6'
config.vm.provision 'hosts' do |hosts| config.vm.provision 'hosts' do |hosts|
hosts.autoconfigure = true hosts.autoconfigure = true
hosts.sync_hosts = true hosts.sync_hosts = true
@ -82,7 +82,7 @@ Vagrant.configure(2) do |config|
lv.memory = 2*1024 lv.memory = 2*1024
end end
config.vm.hostname = fqdn config.vm.hostname = fqdn
config.vm.network :private_network, ip: ip_address, libvirt__forward_mode: 'none', libvirt__dhcp_enabled: false config.vm.network :private_network, ip: ip_address, libvirt__forward_mode: 'none', libvirt__dhcp_enabled: false, bridge: 'enp0s31f6'
config.vm.provision 'hosts' do |hosts| config.vm.provision 'hosts' do |hosts|
hosts.autoconfigure = true hosts.autoconfigure = true
hosts.sync_hosts = true hosts.sync_hosts = true

View File

@ -176,11 +176,11 @@ kubectl get clusterrolebinding --all-namespaces -o json | jq .items[].subjects
# rbac access matrix. # rbac access matrix.
# see https://github.com/corneliusweig/rakkess/blob/master/doc/USAGE.md # see https://github.com/corneliusweig/rakkess/blob/master/doc/USAGE.md
kubectl krew install access-matrix #kubectl krew install access-matrix
kubectl access-matrix version --full #kubectl access-matrix version --full
kubectl access-matrix # at cluster scope. #kubectl access-matrix # at cluster scope.
kubectl access-matrix --namespace default #kubectl access-matrix --namespace default
kubectl access-matrix --sa kubernetes-dashboard --namespace kubernetes-dashboard #kubectl access-matrix --sa kubernetes-dashboard --namespace kubernetes-dashboard
# list system secrets. # list system secrets.
kubectl -n kube-system get secret kubectl -n kube-system get secret