Skip to content

Commit

Permalink
add bridge to k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
mosabami committed Jan 10, 2023
1 parent 76dc7a4 commit 6a642c5
Show file tree
Hide file tree
Showing 35 changed files with 6,111 additions and 662 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ build/Release
node_modules/
jspm_packages/
AKS-Construction/
k8s-Copy/

# TypeScript v1 declaration files
typings/
Expand Down
17 changes: 17 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "bridge-to-kubernetes.resource",
"type": "bridge-to-kubernetes.resource",
"resource": "worker-cluster-ip-service",
"resourceType": "service",
"ports": [
5001
],
"targetCluster": "aks-superapp",
"targetNamespace": "superapp",
"useKubernetesServiceEnvironmentVariables": false
}
]
}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ sed -i "s/<ACR name>/$ACRNAME/" worker-deployment.yaml
Update the secret provider class file
```bash
sed -i "s/<identity clientID>/$SUPERAPPID/" secret-provider-class.yaml
sed -i "s/<kv name>/$KVNAME/" postgres-secret-provider-class.yaml
sed -i "s/<tenant ID>/$TENANTID/" postgres-secret-provider-class.yaml
sed -i "s/<kv name>/$KVNAME/" secret-provider-class.yaml
sed -i "s/<tenant ID>/$TENANTID/" secret-provider-class.yaml
```

Update the service account files. These service accounts are using workload identity federated identity.
Expand Down
2 changes: 1 addition & 1 deletion fib-calculator/client/.dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
**/node_modules
node_modules/
2 changes: 1 addition & 1 deletion fib-calculator/client/src/Fib.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class Fib extends Component {
return (
<div>
<form onSubmit={this.handleSubmit}>
<p>This app calculates the Fibonacci number of a provided index</p>
<p>This app computes the Fibonacci number of a provided index</p>
<p>Enter a number below 40 and hit submit then refresh the page to see results</p>
<label>Enter your index:</label>
<input
Expand Down
2 changes: 2 additions & 0 deletions fib-calculator/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ services:
build:
dockerfile: Dockerfile.dev
context: ./worker
ports:
- 5001:5001
# volumes:
# - /app/node_modules
# - ./worker:/app
Expand Down
28 changes: 0 additions & 28 deletions fib-calculator/k8s - Copy/client-deployment.yaml

This file was deleted.

34 changes: 0 additions & 34 deletions fib-calculator/k8s - Copy/ingress-service.yaml

This file was deleted.

6 changes: 0 additions & 6 deletions fib-calculator/k8s - Copy/namespace.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions fib-calculator/k8s - Copy/postgres-cluster-ip-service.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions fib-calculator/k8s - Copy/postgres-deployment.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions fib-calculator/k8s - Copy/redis-cluster-ip-service.yaml

This file was deleted.

34 changes: 0 additions & 34 deletions fib-calculator/k8s - Copy/redis-deployment.yaml

This file was deleted.

24 changes: 0 additions & 24 deletions fib-calculator/k8s - Copy/redis-persistent-volume-claim.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions fib-calculator/k8s - Copy/secret-provider-class.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions fib-calculator/k8s - Copy/server-cluster-ip-service.yaml

This file was deleted.

60 changes: 0 additions & 60 deletions fib-calculator/k8s - Copy/server-deployment.yaml

This file was deleted.

Loading

0 comments on commit 6a642c5

Please sign in to comment.