Skip to content

Instantly share code, notes, and snippets.

💭
checking react these days!

rahul sahay rahulsahay19

💭
checking react these days!
Block or report user

Report or block rahulsahay19

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View swagger.json
{
"swagger": "2.0",
"info": {
"version": "v1",
"title": "Kognifai Galore API"
},
"paths": {
"/api/Attribute": {
"post": {
"tags": [
View initialdb.sql
IF NOT EXISTS (SELECT * FROM sys.databases WHERE name = N'AKSLearnDB')
BEGIN
PRINT 'Creating database AKSLearnDB...'
CREATE DATABASE [AKSLearnDB]
END;
GO
-- IF EXISTS (SELECT * FROM sys.databases WHERE name = N'AKSLearnDB')
-- BEGIN
-- PRINT 'Dropping existing database...'
View browseAKS.ps1
Param(
[parameter(Mandatory=$false)]
[string]$resourceGroupName="KubernetesRG",
[parameter(Mandatory=$false)]
[string]$clusterName="aksLearningCluster"
)
# Browse AKS dashboard
Write-Host "Browse AKS Learning cluster $clusterName" -ForegroundColor Yellow
az aks browse `
View CreateAKS.ps1
Param(
[parameter(Mandatory=$false)]
[string]$subscriptionName="Visual Studio Enterprise with MSDN",
[parameter(Mandatory=$false)]
[string]$resourceGroupName="KubernetesRG",
[parameter(Mandatory=$false)]
[string]$resourceGroupLocaltion="South East Asia",
[parameter(Mandatory=$false)]
[string]$clusterName="aksLearningCluster",
[parameter(Mandatory=$false)]
View db-service.yml
apiVersion: v1
kind: Service
metadata:
name: db-deployment
namespace: aks-learning
spec:
selector:
app: db
ports:
- protocol: TCP
View sa-password.yml
apiVersion: v1
kind: Secret
metadata:
name: sqlsecret
namespace: aks-learning
type: Opaque
data:
sapassword: AKSLearn(!)
View db-statefulset.yml
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: db-deployment
namespace: aks-learning
spec:
serviceName: db-deployment
replicas: 1
template:
metadata:
View web-deployment.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: aksweb
namespace: aks-learning
labels:
run: webfront
spec:
View api-deployment.yml
apiVersion: apps/v1
kind: Deployment
metadata:
name: aksapi
namespace: aks-learning
labels:
run: aksapi
spec:
View web-service.yml
apiVersion: v1
kind: Service
metadata:
name: webfront
namespace: aks-learning
spec:
type: NodePort
ports:
- port: 8080
selector:
You can’t perform that action at this time.