Skip to content

Maheshk-MSFT/AKS_Windows_container_ASP.NET_Redis_SSL_Connectivity_POC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASP.NET App > published as Container > deployed to AKS Windows VM > connecting Azure Redis SSL endpoint and writing logs to Blob storage - POC to check whether Redis SSL end point can be reached from .NET code running on 'aspnet:4.8-windowsservercore-ltsc2019' image.

================================================

FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019
ARG source
WORKDIR /inetpub/wwwroot
COPY ${source:-obj/Docker/publish} .

docker 
docker login mikkyshoprepo.azurecr.io -u mikkyshoprepo -p something
docker tag mikkyredis2 mikkyshoprepo.azurecr.io/mikkyredis2:latest
docker push mikkyshoprepo.azurecr.io/mikkyredis2:latest
apiVersion: apps/v1
kind: Deployment
metadata:
  name: sampleredis
  labels:
    app: sampleredis
spec:
  replicas: 1
  template:
    metadata:
      name: sampleredis
      labels:
        app: sampleredis
    spec:
      nodeSelector:
        "kubernetes.io/os": windows
      containers:
      - name: sampleredis
        image: mikkyshoprepo.azurecr.io/mikkyredis2:latest
        resources:
          limits:
            cpu: 1
            memory: 800M
        ports:
          - containerPort: 80
  selector:
    matchLabels:
      app: sampleredis
---
apiVersion: v1
kind: Service
metadata:
  name: sampleredis
spec:
  type: LoadBalancer
  ports:
  - protocol: TCP
    port: 80
  selector:
    app: sampleredis

5

1

2

3

4

Screenshot 2022-10-16 000109

Screenshot 2022-10-15 190342

s

s1

s2

apiVersion: apps/v1
kind: Deployment
metadata:
  name: sampleredis2022
  labels:
    app: sampleredis2022
spec:
  replicas: 1
  template:
    metadata:
      name: sampleredis2022
      labels:
        app: sampleredis2022
    spec:
      nodeSelector:
        "kubernetes.azure.com/os-sku": Windows2022
      containers:
      - name: sampleredis2022
        image: mikkyshoprepo.azurecr.io/mikkyredis2:2022
        resources:
          limits:
            cpu: 1
            memory: 800M
        ports:
          - containerPort: 80
  selector:
    matchLabels:
      app: sampleredis2022
---
apiVersion: v1
kind: Service
metadata:
  name: sampleredis2022
spec:
  type: LoadBalancer
  ports:
  - protocol: TCP
    port: 80
  selector:
    app: sampleredis2022	
 kubectl get node akswsnine000000 -o json | jq '.metadata.labels'
 az aks nodepool add --resource-group mygroup-rg --cluster-name urikey --os-type Windows --os-sku Windows2022 --name npwin --node-count 1

About

AKS_Windows_container_Redis_SSL_Connectivity_POC

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages