Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit 2bb425e

Browse files
committed
Adding deployment script for the server
1 parent 4f5b0e9 commit 2bb425e

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

Diff for: deploy/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
grpcsv.pfx
2+
private.pem
3+
public.pem
4+
connection-string

Diff for: deploy/build_push_image.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
cd ..
4+
docker build . -t tsuyoshiushio/durableexternalscaler:latest -t tsuyoshiushio/durableexternalscaler:0.1
5+
docker push tsuyoshiushio/durableexternalscaler
6+
cd deploy

Diff for: deploy/create_secret.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
kubectl create secret generic keda-durable-external-scaler --from-file grpcsv.pfx --from-file connection-string --namespace keda

Diff for: deploy/generate_cert.sh

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
openssl genrsa 2048 > private.pem
4+
openssl req -x509 -new -key private.pem -out public.pem
5+
openssl pkcs12 -export -in public.pem -inkey private.pem -out grpcsv.pfx

0 commit comments

Comments
 (0)