• Stars
    star
    159
  • Rank 235,916 (Top 5 %)
  • Language
    Java
  • License
    MIT License
  • Created over 6 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This is the workshop for k8s on AKS on Azure.

Azure Kubernetes Services WorkShop

Note: This contents is Beta version!!

1. Key Concept of k8s

2. How to install AKS on Azure

2.1 Install Azure cli on Mac
2.2 Login Azure by cli
2.3 Provider Register
2.4 Create Resource Gruop for AKS
2.5 Create Azure Container Service (AKS)
2.6 Install kubectl command
2.7 Get credential information to access AKS
2.8 Confirm the kubectl command is running or not
2.9 Scale the node for AKS node (VM) not pods
2.10 Version up the k8s in AKS
2.11 az aks command reference

3. Basic operation to create and publish the Service

3.0 Prepare Dockerfile (Multi-Stage Build)
3.1 Create Deployment manifest(YAML) file
3.1.1 Rolling Upgrade
3.1.2 Label is very important
3.1.3 Liveness & ReadinessProbe Probe
3.1.4 Request Limitation
3.1.5 Init Container
3.1.6 PostStart Hook of POD
3.1.7 PreStop Hook of POD
3.2 Create Service manifest(YAML) file
3.3 Create All-in-one manifest(YAML) file (create-deployment-svc.yaml)
3.4 Build and Publish the services
3.5 Confirm the deployment and services
3.6 Persistence Volume Mount with Azure Storage
3.7 How to access the Application (port-forward)
3.οΌ—8How to write YAML file?

4. Most userful kubectl command

4.1 About kubectl command
4.2 Display one or more resources
4.3 kubectl get namespaces(ns)
4.4 kubectl get pods(po)
4.5 kubectl get services(svc)
4.6 kubectl get deployments(deploy)
4.7 Show Multiple Resources
4.8 kubectl describe RESOURCES
4.9 kubectl exec -it pod command
4.10 kubectl logs pod
4.11 kubectl get configmap(cm)
4.12 kubectl get secrets
4.13 kubectl apply -f manifest(YAML)
4.14 kubectl delete resources
4.15 kubectl edit svc/jsr-confirm-service
4.16 kubectl get node -o wide
4.17 kubectl port-forward pod LOCALPORT:DESTPORT
4.18 kubectl scale deployment DEPLOYMENT --replicas=N
4.19 kubectl autoscale deployment DEPLOYMENT --min=2 --max=5 --cpu-percent=80
4.20 kubectl config --kubeconfig=config use-context akscluster
4.21 kubectl config set-context esakscluster --namespace=order-system-production
4.22 kubectl top pods --all-namespaces

5. RESTful operation

5.1 Verify API Server
5.2 Get an Access Token to connect
5.3 Get pod in namespace.
5.4 List all pods in namespace.
5.5 Scale the number of pod
5.6 RESTful API Reference documents

6. Istio 0.8 (Service Mesh)

6.1 About Istio concept for Java Developers
6.2 Install Istio 0.8.0 (LTS Version)
6.2.1 Download & Install
6.2.2 Install Add-On package
6.3 How to use the Istio
6.4 Traffic Management for Istio 0.8.0
6.4.1 front-service deployment
6.4.2 trans-text-service deployment (Two Version)
6.4.3 Transfer the request to services as Round Robin
6.4.4 Weight Routing to 100% specific service
6.4.5 Restrict access for special Header
6.4.6 Canary Release
6.4.7 Request Timeout
6.4.8 Invoke External Service from pods

7. Take care of using the k8s

7.1 Please don't use the latest tag
7.2 Please consider to create 1 svc on 1 container?
7.3 Please confirm which version are you using.
7.4 Please don't treat pod directly
7.5 Please consider to create more small size image?
7.6 Do you trust the images on DockerHub?
7.7 LoadBalancer is high cost to expose the service
7.8 Please don't access to Node directly by ssh
7.9 Rollout: Specify "--record" to apply command
7.10 Use configmap or secret for configure the external service

8. Useful Tool for k8s managing and monitoring

8.1 Development & Deploy
8.1.1 Helm (package management)
8.1.2 Draft (Dev & Deploy)
8.1.3 Spinnaker Release Pipeline
8.2 Monitoring on Server
8.2.1 Prometheus
8.2.2 Grafana
8.2.3 fluentd with ELK Stack
8.2.4 Searchlight
8.2.5 Weave
8.3 Monotoring on Desktop
8.3.1 Kubernetic
8.3.2 Kubetail
8.3.3 kubewatch (Notification to Slack)
8.4 Management
8.4.1 Heptio Ark (Backup & Restore)
8.4.2 Chaos Monkey for k8s
8.4.3 Open Policy Agent
8.4.4 Ksonnet (Definition instead of YAML)
8.4.5 Open Service Broker & Service Catalog
8.4.6 Clair (Static analysis of vulnerabilities)

9. AKS access to Azure Database for MySQL via VNet

9.1 Create Resource Group for AKS with VNet Support
9.2 Install AKS with VNet Support
9.3 Create Resoruce Group for MySQL with VNet Support
9.4 Add Security Rule for AKS to MySQL
9.5 Access to MySQL from k8s POD

10. Kubernetes Java Client Sample

Remark Column - useful links for AKS

  • Network Related
  • Disk Related
  • AAD & RBAC & Security Related
  • Management Cluster Related
  • Development and CI & CD
  • etc

More Repositories

1

Microsoft-Translator-WebSocket-Java

This is a Microsoft Translator Java Web Socket Application.
Java
14
star
2

Java-Update-From-JavaSE9-to-Java17

This is all of the list of the Java Update from Java SE 9 to Java 17.
13
star
3

Office-365-Excel-REST-API-for-Java

This is the sample application of Excel REST API for Java
Java
8
star
4

Azure-Functions-For-Java-Sample

This is an sample application of Azure Functions for Java which implement the Microsoft Translator text API.
Java
8
star
5

OCR-Sample-of-Cognitive-Service

This is the OCR sample of Microsoft Cognitive Service by Java
Java
6
star
6

Reactive-Java-CosmosDB-On-Quarkus

In this project, I created a sample Cosmos DB Application with Asynchronous and Non-Blocking operation by using Project Reactor and Mutiny for Reactive Operation. And this sample application is created running on Quarkus.
Java
6
star
7

PostgreSQL-Vector-Search-pgvector--for-PDF-file-on-Blob-Storage

PDF フゑむルを Azure Blob Storage にをップロードすると、θ‡ͺε‹•ηš„γ« PDF γƒ•γ‚‘γ‚€γƒ«γ‚’γƒ†γ‚­γ‚Ήγƒˆγ«ε€‰ζ›γ—γ€Azure OpenAI Embedding γƒ’γƒ‡γƒ«γ‚’εˆ©η”¨γ—γ¦γ€γƒ™γ‚―γƒˆγƒ«ζ€œη΄’γ‚’θ‘Œγ†ζ–Ήζ³•γ«γ€γ„γ¦θͺ¬ζ˜Žγ—ます。
Java
6
star
8

ConcurrentUtil4EE

concurrent utilities for Java EE 7
Java
5
star
9

JAX-RS-Cognitive-HoL

This is HoL of Cognitive Service with JAX-RS
Java
5
star
10

PostgreSQL-Vector-Search-pgvector--for-PDF-file-on-Blob-Storage-english

This passage explains the process of automatically converting PDF files to text and performing vector searches using the Azure OpenAI Embedding model when PDF files are uploaded to Azure Blob Storage.
Java
5
star
11

Spring-Boot-AzureStorage-File-Upload-Microservices-

This is a spring boot microservices app for Azure Storega File upload
Java
4
star
12

Azure-OpenAI-Java-Spring-Sample-for-Chat-GPT-4

Azure-OpenAI-Java-Spring-Sample-for-Chat-GPT-4
Java
4
star
13

Face-Detect-Cognitive-Service-with-Java-EE

This is the sample application of Face Detect Cognitive Service with Java EE.
Java
4
star
14

GlassFish-Docker

Shell
3
star
15

Java-EE-7-Authentication-App-for-AzureAD

Java EE 7 Multi-Factor Authentication with Azure
Java
3
star
16

RaspberryPi-To-Azure-IoT-Hub

This is the sample Java application of Raspberry Pi (with BME 280). It send the sensor data of Celsius, Pressure and Humidity to Azure IoT Hub.
Java
3
star
17

java-jsr-bot-MSA

This is a sample application of JSR search and confirm Bot by using Microsoft Bot Framework,LUIS and Translator.
Java
3
star
18

Quarkus-run-on-Azure-Container-Apps-with-Dapr

Azure Container Apps is a technology announced by Microsoft at the Microsoft Ignite 2021 event (2021/11/04) and is available as a public preview at the time of this writing (2022/3/24). This article will show you how to use Qurkus's native image to launch fast on Azure Container Apps and take advantage of Dapr's state management.
HTML
3
star
19

MS-Translator-Speech-HoL

Java
2
star
20

acme-fitness-store

This is ACME Fitness Store Sample App Japanese Version
CSS
2
star
21

JavaEE7-HoL

Java
2
star
22

AzureAD-Login-Auth

GlassFish Custom Realm for Microsoft Azure
Java
2
star
23

Azure-Media-Service-Redact-Face-from-Images

This is a redact the face Java Application by using Azure Mediaservice Java SDK.
Java
2
star
24

Azure-Spring-Cloud-with-MySQL-Sample

TSQL
2
star
25

JDBC-Realm-Sample

This is a JDBC Realm Sample Appliaction
Java
2
star
26

CompletableFuture-Sample-WebSocket-Application

This is a CompletableFuture Sample WebSocket Application.
Java
1
star
27

vscode-feedback

1
star
28

Back-Service-for-Container-Apps

This is test repo
HTML
1
star
29

Apache-Kafka-Java-Sample-for-Azure

Java
1
star
30

JSF-Sample

This repository is used to share the JSF Sample Application.
1
star
31

JSR-Confirm-Service-MSA

This is a sample JSR Confirm Service by implemening Payara Micro 4.1.1.72.
Java
1
star
32

BotSampleApp

This is Bot Sample App for Java
Java
1
star
33

Cognitive-Bot-LUIS-Util

This is the utility libraries for Cognitive Service(Face,Emotion,OCR,Translator) and Bot and LUIS
Java
1
star
34

PayaraMicro-MicroServices-for-Azure

Java
1
star
35

Deploy-PrimeFaces-JSF-Web-App-on-Tomcat-9.0

This is a sample PrimeFaces JSF Web Application on Tomcat
Java
1
star
36

Java-Sample-app-for-LEGO-Mindstorms

This is a sample Java application for LEGO Mindostorms(leJOS) which is created as Maven project on NetBeans.
Java
1
star
37

MS-Build-OpenJDK-Container-Best-Practice

This is the best practice to use the MS BuildOpenJDK on Container Environment
Shell
1
star
38

Face-Detect-Sample-Applicaiton-of-MS-Cognitive-Service

This is first commit.
Java
1
star
39

Java-WebApp-to-Tomcat-on-Azure-App-Service-Linux

This is a sample Java Web Applicaiton which can deploy to Tomcat 9 with Java 11 on Azure App Service Linux.
Java
1
star