August 10, 2025

Rancher RKE 2 Deployment

Rancher RKE 2 Deployment

Rancher Logo

RKE2 Installation Guide (Ubuntu, 3 Nodes: 1 Master, 2 Workers)

## Prerequisites

- Ubuntu 20.04+ on all nodes
- SSH access to all nodes
- Unique hostnames and static IPs
- Sudo privileges

## Node Roles

| Hostname   | Role    | IP Address      |
|------------|---------|-----------------|
| master-1   | Master  | `192.168.1.10`  |
| worker-1   | Worker  | `192.168.1.11`  |
| worker-2   | Worker  | `192.168.1.12`  |

## Pre-Configuration (All Nodes)

```bash

sudo apt update && sudo apt upgrade -y
sudo apt install -y curl wget vim
sudo swapoff -a
sudo sed -i '/ swap / s/^/#/' /etc/fstab
sudo modprobe br_netfilter
echo 'net.bridge.bridge-nf-call-iptables=1' | sudo tee -a /etc/sysctl.conf
echo 'net.ipv4.ip_forward=1' | sudo tee -a /etc/sysctl.conf

sudo sysctl -p

```

## Install RKE2 (Master Node)

```bash
curl -sfL https://get.rke2.io | sudo sh -
sudo systemctl enable rke2-server.service
sudo systemctl start rke2-server.service

```

### Get Join Token

```bash
sudo cat /var/lib/rancher/rke2/server/node-token
```

## Install RKE2 (Worker Nodes)

```bash
curl -sfL https://get.rke2.io | sudo sh -
sudo mkdir -p /etc/rancher/rke2/
echo "server: https://192.168.1.10:9345" | sudo tee /etc/rancher/rke2/config.yaml
echo "token: <MASTER_NODE_TOKEN>" | sudo tee -a /etc/rancher/rke2/config.yaml
sudo systemctl enable rke2-agent.service
sudo systemctl start rke2-agent.service
```

## Post-Configuration (Master Node)

```bash
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
kubectl get nodes
```

## Notes

- Replace IPs and hostnames as needed.
- Open required ports in firewall (9345, 6443, etc.).
- For more info: [RKE2 Docs](https://docs.rke2.io/)

## Configure Kubeconfig on Windows 11

1. **Download Kubeconfig File**

    - Copy `/etc/rancher/rke2/rke2.yaml` from the master node to your Windows machine (e.g., using WinSCP or `scp`):

      ```powershell
      scp user@192.168.1.10:/etc/rancher/rke2/rke2.yaml C:\Users\<YourUser>\.kube\config
      ```

2. **Edit Kubeconfig File**

    - Open `C:\Users\<YourUser>\.kube\config` in a text editor.
    - Change the `server:` address from `localhost` to the master node IP, e.g.:
      ```
      server: https://192.168.1.10:6443
      ```

3. **Install kubectl**

    - Download [kubectl](https://kubernetes.io/docs/tasks/tools/install-kubectl-windows/) and add it to your PATH.

    - Verify installation:
      ```powershell
      kubectl version --client
      kubectl get nodes
      ```

4. **Install Helm**

    - Download [Helm](https://helm.sh/docs/intro/install/#from-script) for Windows.
    - Extract and add `helm.exe` to your PATH.
    - Verify installation:
      ```powershell
      helm version
      ```

5. **Test Connectivity**

    - Run:
      ```powershell
      kubectl get pods --all-namespaces
      helm list -A
      ```

**Tip:** Ensure your Windows machine can reach the master node IP and required ports are open. 

October 10, 2018

Setup SharePoint Framework Extension Development Environment on Windows 10



SharePoint Framework (SPFx) Extensions are client-side components that run inside the context of a SharePoint page. You can deploy extensions to SharePoint Online, and you can use modern JavaScript tools and libraries to build them.



Minimum requirements

  1. Cmder – http://cmder.net/ 
  2. NodeJS - https://nodejs.org/en/
  3. Npm 3 or latest 
  4. Git
  5. Yeoman - http://yeoman.io/codelab/setup.html
  6. Gulp
  7. Visual Studio Code


Step 1
Download and Install Cmder http://cmder.net/

Step 2
Download and Install NodeJS https://nodejs.org/en/
  1.  Verify if Node is installed on your system
    1. Open Cmder and type “node --version && npm –version”
  2. Install npm run “npm install --global npm@latest”
  3. Check Git is installed or not “git –version”


Install Yeoman Toolset

Run “ npm install --global yo”

Step 3
Install Gulp
  1. Open cmder
  2.  Run “npm install -g gulp”

Step 4
Install SharePoint Generator Module which will need for following training
SharePoint Extension - https://docs.microsoft.com/en-us/sharepoint/dev/spfx/extensions/get-started/build-a-hello-world-extension
  1. Open cmder
  2. Run “npm install @microsoft/generator-sharepoint”
To use UI Fabric Core
  1. Run “npm install #microsoft/sp-office-ui-fabric-core” 


April 26, 2018

Microsoft Azure Active Directory Management Tips

Microsoft Azure Active Directory Management Tips
Image result for azure ad
Sync On-Prem User "Full Sync: from PowerShell

Start-ADSyncSyncCycle -PolicyType Initial

https://docs.microsoft.com/en-us/azure/active-directory/connect/active-directory-aadconnectsync-feature-scheduler

Check Features of AD Sync configured
https://docs.microsoft.com/en-us/azure/active-directory/connect/active-directory-aadconnectsyncservice-features

Turn Off AD Sync
https://support.office.com/en-us/article/turn-off-directory-synchronization-for-office-365-ee5f861e-bd48-4267-83d1-a4ead4b4a00d

$UserCredential = Get-Credential
Connect-MsolService -Credential $UserCredential

MFA Users
Install-Module MSOnline
Connect-MsolService

Set-MsolDirSyncEnabled -EnableDirSync $false

Connect with the Azure Active Directory PowerShell for Graph module
Install-Module -Name AzureAD
$UserCredential = Get-Credential
Connect-AzureAD -Credential $UserCredential

If MFA

Connect-AzureAD

Connect Other Online Service Product

https://docs.microsoft.com/en-us/office365/enterprise/powershell/connect-to-office-365-powershell

November 7, 2017

How to Activate your free Visual Studio Dev Essentials

Steps
1. Logon to my.visualstudio.com with you live ID,
2. Once you login in to it you will ask for following Prompt
3. Click Confirm

 


4. Once you click on confirm, you will see following screen
5. Click on Azure (Activate link)

6. Fill and activate your free Azure account



May 17, 2017

June 21, 2016

Microsoft Planner

Microsoft Planner


Organize teamwork with 
Microsoft Planner
Take the chaos out of teamwork and get more done! Planner makes it easy for your team to create new plans, organize and assign tasks, share files, chat about what you’re working on, and get updates on progress.

Get organized quickly
Easy to use
Launch Planner from the Office 365 app launcher with a single click. You can then create a new plan, build a team, assign tasks, and update status—in a few easy steps.
Organize work visually
Each plan has its own board, where you can organize tasks into buckets. You can categorize tasks based on their status or on whom they’re assigned to. To update the status or change assignments, just drag and drop tasks between columns.
Work together effortlessly
Visibility and transparency
The My Tasks view provides a comprehensive list of all your tasks and their status across all your plans. When working together on a plan, team members always know who is working on what.
Collaborate around tasks
Built for Office 365, Planner lets you attach files to tasks, work together on those files, and even have conversations around tasks without switching between apps. With Planner, all your team’s discussions and deliverables stay with the plan and don’t get locked away across disparate applications.
Never miss a beat
Works across devices
Planner works across all your devices. And with Planner, everyone is always on the same page. A glance at Charts is all it takes to know where things stand and if the team is making enough progress towards their goal.
Email notifications
With Planner, you’ll never miss a beat! Receive email notifications whenever you’re assigned a new task or added to a conversation.