slaventius 2 years ago
parent 3c9a8f6045
commit 4d87e95b93
  1. 1
      deploy/auth-config.yaml
  2. 2
      deploy/auth-deployment.yaml
  3. 7
      deploy/auth-secret.yaml
  4. 23
      deploy/ingress.yaml
  5. 26
      scripts/send_to_auth.sh

@ -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"

@ -21,6 +21,8 @@ spec:
ports:
- containerPort: 9994
envFrom:
- secretRef:
name: auth-secret
- configMapRef:
name: auth-config
livenessProbe:

@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: auth-secret
type: Opaque
data:
SENTRY_DSN: aHR0cHM6Ly8zZjRiMzFkYmJkOWE0YTZiOGE3MWY5ODgxZDk2MmYyNUBvNDUwNDY1NDU2OTc5OTY4MC5pbmdlc3Quc2VudHJ5LmlvLzQ1MDQ2NTQ1NzI2ODMyNjQ=

@ -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

@ -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 ""
Loading…
Cancel
Save