Tag Archives: kubernetes

[K8s] Kubernetes – restrict user access to one namespace

In this example, we will create dev namespace and token for access this namespace only Create Namespace kubectl create namespace dev Create Service Account with permissions Create file permission-dev-namespace.yaml with content: — apiVersion: v1 kind: ServiceAccount metadata: name: dev-user namespace: dev — kind: Role apiVersion: rbac.authorization.k8s.io/v1 metadata: name: dev-user-full-access namespace: dev rules: – apiGroups: [“”, […]

Kubernetes Installation

Prerequisite (all nodes) yum update Install CRI (Docker) Install Docker from CentOS/RHEL repository yum install -y docker systemctl enable docker.service Setup daemon cat > /etc/docker/daemon.json <<EOF { #”exec-opts”: [“native.cgroupdriver=systemd”], #”log-driver”: “json-file”, “log-opts”: { “max-size”: “100m” }, #”storage-driver”: “overlay2”, “storage-opts”: [ “overlay2.override_kernel_check=true” ] } EOF Restart docker systemctl daemon-reload systemctl restart docker Installing kubeadm, kubelet and […]

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.