AAF ― Applicita LTD
  • Getting Started
  • Development
    • Key Objectives
    • Development Environment & OS
    • Architecture
    • Visual Studio Solution
    • Setup for Local Development
      • Docker & Kubernates
      • Visual Studio Host Builder
  • Web
    • Feature
      • Authentication and Authorization
        • Sign up
        • Sign In
        • Sign out
        • Remember me
        • Recovering password
      • Tenant management
        • Create tenant
        • Search tenant
        • Tenant page
          • Change basic information
          • Change administrator
          • Change branding
          • Change style
          • Change status
          • Assets
        • Delete tenant
      • User management
        • Create user
        • Search user
        • Send email
        • User page
          • Editing page sections
          • Change basic information
          • Change profile picture
          • Change role
          • Change status
        • Delete user
        • Reset users password
      • Role management
        • Create role
        • Search role
        • Role page
          • Change basic information
          • Change status
          • Revoke role
          • Change permissions
          • Interactive permissions button
        • Delete role
      • Bug reporting
  • Testing
    • Testing Environment
    • Atata
    • Architecture
      • Feature structure
      • Common
        • Attributes
        • Components
        • Controls
        • Fixtures
        • Generators
    • Example
Powered by GitBook
On this page

Was this helpful?

  1. Development
  2. Setup for Local Development

Docker & Kubernates

PreviousSetup for Local DevelopmentNextVisual Studio Host Builder

Last updated 5 years ago

Was this helpful?

Open PowerShell (Admin) and run following commands:

  • Install

Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  • and

choco install kubernetes-cli kubernetes-helm -y
  • Docker for Desktop

choco install docker-desktop -y
  • Use default installation with Linux Containers

  • Enable Kubernetes in Docker settings on the Kubernetes tab

  • Make sure that Kubernetes context of Docker is set to docker-for-desktop

kubectl config use-context docker-for-desktop

Kubernetes dashboard

Open PowerShell (Admin) and run following commands:

kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml
kubectl proxy

Open PowerShell (Admin) and run following commands:

kubectl create serviceaccount dashboard -n default
kubectl create clusterrolebinding dashboard-admin -n default  --clusterrole=cluster-admin --serviceaccount=default:dashboard
$data = kubectl get secret $(kubectl get serviceaccount dashboard -o jsonpath="{.secrets[0].name}") -o jsonpath="{.data.token}"; [System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($data))`
  • Select token option, paste the token from PowerShell and Sign In (If lost token can be retrieved simply by using get secret command again)

Save the token from PowerShell and navigate to

Chocolatey
Kubernetes-cli
Kubernetes-helm
Kubernetes dashboard