Giter Site home page Giter Site logo

rajkrishnamurthy / workshop-calicocloud-aks-security-observability Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tigera-solutions/workshop-calicocloud-aks-security-observability

0.0 0.0 0.0 13 KB

[Free Training Workshop] Containers and Kubernetes security and observability

Makefile 100.00%

workshop-calicocloud-aks-security-observability's Introduction

workshop-calicocloud-aks-security-observability

This content was built for free training workshops.

If you're looking for general docs for Calico, we recommend you start here

Prerequisites

Ensure the make, jq, helm, and azure-cli are installed and you have an Azure account with appropriate permissions.

Setup

First configure the repo’s config.mk to set the default Azure region.

$ cat config.mk
-include local-config.mk

LOCATION ?= eastus

Configure the local-config.mk settings.

$ cat local-config.mk
SUBSCRIPTION=<azure subscrition>
RESOURCE_GROUP_NAME=calicoCloudDemo
NAME=calicoCloudDemo
SSH_PUBKEY="ssh-rsa YOUR SSH PUBLIC KEY [email protected]"

Deploy the Cluster

$ make

Usage:
  make <target>

Manage Azure Resource Manager deployments.
  test             Validate the template.
  deploy           Deploy the template.
  cleanup          Cleanup the deployment leaving resource group intact.
  teardown         Teardown the deployment by removing the resource group.
  list             List the deployments.
  login            Login to Azure
  setup            Create the resource group and setup rbac.
  kubeconfig       Configure kubeconfig for AKS

Help
  help             Type make followed by target you wish to run.
  1. make login
  2. make setup
  3. make test
  4. make deploy
  5. make kubeconfig
  6. kubectl get nodes
kubectl get nodes
NAME                                STATUS   ROLES   AGE     VERSION
aks-agentpool-38582030-vmss000000   Ready    agent   6m22s   v1.21.2
aks-agentpool-38582030-vmss000001   Ready    agent   6m23s   v1.21.2
aks-agentpool-38582030-vmss000002   Ready    agent   6m23s   v1.21.2

Login to Calico Cloud and connect cluster with AKS curl bash script.

Sign up for Calico Cloud https://www.calicocloud.io/home and join your AKS cluster.

curl <your script url > | bash
kubectl get tigerastatus

Deploy demo apps

Deploy a Ubuntu pod that we can use to test connectivity in the cluster

kubectl apply -f demo/apps/shell

Deploy Wordpress into it's own namespace

helm repo add bitnami https://charts.bitnami.com/bitnami
helm install wordpress -f demo/apps/wordpress/values.yaml bitnami/wordpress -n wordpress --create-namespace
kubectl get pods -n wordpress -w

Get the Wordpress LB public ip address

kubectl get svc -n wordpress

Configure AKS cluster Calico settings

Apply FelixConfiguration to setup logging settings

kubectl apply -f demo/felix-config

Compliance and reporting

Apply Calico Cloud compliance reports to generate reports every 10 minutes

kubectl apply -f demo/compliance-reports

Live demo

Pod-based workload access controls

Setup our demo workload access control scenario to secure the demo apps

kubectl apply -R -f demo/tiers/
kubectl apply -R -f demo/network-policy

Get your public ip address

curl http://ifconfig.co

Live demo

DNS Policies

Live demo

Dynamic Service Graph and Dynamic Packet Capture

Live demo

workshop-calicocloud-aks-security-observability's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.