diff --git a/deploy/auth-config.yaml b/deploy/auth-config.yaml index f8c8fa9..8783684 100644 --- a/deploy/auth-config.yaml +++ b/deploy/auth-config.yaml @@ -6,4 +6,3 @@ data: DB_HOST: "auth-db-service" DB_PORT: "9995" APP_PORT: "9994" - SENTRY_DSN: "https://3f4b31dbbd9a4a6b8a71f9881d962f25@o4504654569799680.ingest.sentry.io/4504654572683264" diff --git a/deploy/auth-deployment.yaml b/deploy/auth-deployment.yaml index 129241d..c174d2e 100644 --- a/deploy/auth-deployment.yaml +++ b/deploy/auth-deployment.yaml @@ -21,6 +21,8 @@ spec: ports: - containerPort: 9994 envFrom: + - secretRef: + name: auth-secret - configMapRef: name: auth-config livenessProbe: diff --git a/deploy/auth-secret.yaml b/deploy/auth-secret.yaml new file mode 100644 index 0000000..f28f356 --- /dev/null +++ b/deploy/auth-secret.yaml @@ -0,0 +1,7 @@ +apiVersion: v1 +kind: Secret +metadata: + name: auth-secret +type: Opaque +data: + SENTRY_DSN: aHR0cHM6Ly8zZjRiMzFkYmJkOWE0YTZiOGE3MWY5ODgxZDk2MmYyNUBvNDUwNDY1NDU2OTc5OTY4MC5pbmdlc3Quc2VudHJ5LmlvLzQ1MDQ2NTQ1NzI2ODMyNjQ= diff --git a/deploy/ingress.yaml b/deploy/ingress.yaml deleted file mode 100644 index 64103d7..0000000 --- a/deploy/ingress.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: ingress - labels: - app: auth-application -spec: - # defaultBackend: - # service: - # name: auth-service - # port: - # number: 9994 - rules: - # - host: www.test3k.com - - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: auth-service - port: - number: 9994 diff --git a/scripts/send_to_auth.sh b/scripts/send_to_auth.sh deleted file mode 100644 index d303e23..0000000 --- a/scripts/send_to_auth.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -if [ -z "$1" ] - then - echo "No argument uid (1 of 3)" - exit 1 -fi - -if [ -z "$2" ] - then - echo "No argument email (2 of 3)" - exit 1 -fi - -if [ -z "$3" ] - then - echo "No argument password (3 of 3)" - exit 1 -fi - -curl --location --request POST 'http://{ingress_address}/api/v1/registration' \ - --header 'Content-Type: application/x-www-form-urlencoded' \ - --data-urlencode uid=""$1"" \ - --data-urlencode email=""$2"" \ - --data-urlencode password=""$3"" -echo ""