Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Karthikeyan VK karthikeyanVK

🎯
Focusing
View GitHub Profile
View Helmingress.yaml
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: petshop-ingress
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
View Helmorderservice.yaml
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-orders-service
labels:
app: {{ .Values.orders.label.name }}
spec:
ports:
- port: {{ .Values.orders.service.port }}
protocol: TCP
View HelmOrdersDeployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-orders-deployment
labels:
app: {{ .Values.orders.label.name }}
spec:
replicas: {{ .Values.orders.replicas }}
selector:
matchLabels:
View Helmproductservice.yaml
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-products-service
labels:
app: {{ .Values.products.label.name }}
spec:
ports:
- port: {{ .Values.products.service.port }}
protocol: TCP
View Helmproductdeployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-products-deployment
labels:
app: {{ .Values.products.label.name }}
spec:
replicas: {{ .Values.products.replicas }}
selector:
matchLabels:
View HelmValues.yaml
environment: development
apphost: k8s
products:
label:
name: aspnet3core
container:
name: aspnet3
View orders.local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"DatabaseName": "petshopapps",
"ContainerName": "orders",
"Account": "https://petshopapps.documents.azure.com:443/",
"CosmosKey": "sBlINeLXdn9PLk157Zu3PGMQ7hljAvZF02LOYrjLdqJO5GTHhro79WlxsGPXQT7GF4KptfJnsnqhjDaKZgRHXA==",
"ProductBaseUrl": "http://localhost:7071/api/UpdateProductQuantity"
View OrderedProduct .cs
using System;
namespace PetShop.Model
{
public class OrderedProduct
{
public Guid ProductId;
public int OrderedProductQuantity { get; set; }
}
}
View UpdateProductQuantity.json
{
"ProductName":"Dog1",
"CustomerId":"17EDCACA-C902-431A-B935-A1FCF05CA52A",
"ProductId":"17EDCACb-C902-431A-B935-A1FCF05CA52A",
"OrderedProductQuantity":"20"
}
You can’t perform that action at this time.