This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MongoDB.Bson; | |
using MongoDB.Bson.Serialization.Attributes; | |
using System; | |
namespace BookReadingProject | |
{ | |
public class BookReading : IEquatable<BookReading> | |
{ | |
[BsonId] | |
[BsonRepresentation(BsonType.ObjectId)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Extensions.Http; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.Extensions.Logging; | |
using Newtonsoft.Json; | |
using MongoDB.Driver; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using MongoDB.Driver; | |
using System; | |
using System.Collections.Generic; | |
using System.Security.Authentication; | |
using System.Threading.Tasks; | |
namespace BookReadingProject | |
{ | |
public class BookReadingDBManager | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl apply -f https://raw.githubusercontent.com/iamNoah1/aks-nginx-ingress/main/service1.yaml | |
kubectl apply -f https://raw.githubusercontent.com/iamNoah1/aks-nginx-ingress/main/service2.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
creationTimestamp: null | |
labels: | |
app: service1 | |
name: service1 | |
spec: | |
replicas: 1 | |
selector: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
helm upgrade --install ingress-nginx ingress-nginx \ | |
--repo https://kubernetes.github.io/ingress-nginx \ | |
--namespace ingress-nginx --create-namespace -f nginx-values.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
controller: | |
service: | |
loadBalancerIP: <public IP> | |
annotations: | |
"service.beta.kubernetes.io/azure-load-balancer-resource-group": "k8srg" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
az network vnet create --name k8sVnet --resource-group k8srg --location eastus --address-prefix "10.1.0.0/16" | |
az network vnet subnet create --name k8sSubnet --resource-group k8srg --vnet-name k8sVnet --address-prefix "10.1.0.0/22" | |
az network public-ip create --resource-group k8srg -n nginx-public-ip --allocation-method Static --location eastus --sku standard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kubectl apply -f https://raw.githubusercontent.com/iamNoah1/aks-traefik-ingress/main/service1.yml | |
kubectl apply -f https://raw.githubusercontent.com/iamNoah1/aks-traefik-ingress/main/service2.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
creationTimestamp: null | |
labels: | |
app: service1 | |
name: service1 | |
spec: | |
replicas: 1 | |
selector: |
NewerOlder