Your ROOT_URL in app.ini is http://git.slaventius.ru/ but you are visiting http://37.143.12.169/test3k/auth/commit/7abbdc3e5fa4210d7ccc699c2db9be472618976f?style=unified&whitespace=ignore-eol
You should set ROOT_URL correctly, otherwise the web may not work correctly.
8 changed files with
150 additions and
0 deletions
deploy/other/a/README.md
deploy/other/a/a-config.yaml
deploy/other/a/a-deployment.yaml
deploy/other/ingress.yaml
deploy/other/pv.yaml
deploy/other/pvc.yaml
deploy/other/sc.yaml
deploy/other/test.sh
@ -0,0 +1,6 @@
# Создание секрета для приватного репозитория образов
kubectl create secret docker-registry a-secret-docker-registry \
--docker-email=slaventius@mail.ru \
--docker-username=vtievsky \
--docker-password={Access Tokens} \
--docker-server=https://git.applicatura.com:5050/obi/auth_service
@ -0,0 +1,31 @@
apiVersion : v1
kind : ConfigMap
metadata:
name : a-config
data:
APP_ENV : local
ARANGO_DBNAME : obi
ARANGO_HOST : 51.250 .23 .218
ARANGO_PASSWORD : : enrj+Cnhfiysq+Gfhjkm!
ARANGO_PORT : "8530"
ARANGO_USER : root
CODELEN : "4"
CODELIFETIME : "15"
CTEXPIREDTIMEOUT : "5"
FILE_SECRET : "12334566"
HASHSECRET : b25seWZvcm9iaXVzZXJz
PORTGRPCCLIENT : "8889"
PORTGRPCSERVER : "8890"
PORTRESTSERVER : "8888"
POSTGRE_DBNAME : postgres
POSTGRE_HOST : 51.250 .23 .218
POSTGRE_PASSWORD : : enrj+Cnhfiysq+Gfhjkm!
POSTGRE_PORT : "5432"
POSTGRE_USER : postgres
REGEXP : '""'
SECRET : T7vnDGlNwjc7pxY5agvksbj0adpKYfnbsbvqsnozA6YZWzohhJO1Dl95HTgMt1cN
SENTRY_DEBUG : "false"
SENTRY_DSN : https://75ba967920a2411a879a129217b74080@sentry.applicatura.com/1
SENTRY_MAX_ERROR_DEPTH : "9"
SENTRY_SERVER_NAME : MOBILE-AUTH V1
UTEXPIREDTIMEOUT : "1"
@ -0,0 +1,26 @@
apiVersion : apps/v1
kind : Deployment
metadata:
name : a-deployment
labels:
app : a-application
spec:
replicas : 1
selector:
matchLabels:
project : a-application
template:
metadata:
labels:
project : a-application
spec:
imagePullSecrets:
- name : a-secret-docker-registry
containers:
- name : a-application
image : git.applicatura.com:5050/obi/auth_service:latest
ports:
- containerPort : 8888
envFrom:
- configMapRef:
name : a-config
@ -0,0 +1,22 @@
apiVersion : networking.k8s.io/v1
kind : Ingress
metadata:
name : ingress
labels:
app : auth-application
spec:
# defaultBackend:
# service:
# name: auth-service
# port:
# number: 9994
rules:
- http:
paths:
- path : /
pathType : Prefix
backend:
service:
name : auth-service
port:
number : 9994
@ -0,0 +1,22 @@
apiVersion : v1
kind : PersistentVolume
metadata:
name : auth-pv
spec:
capacity:
storage : 1Gi
volumeMode : Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy : Retain
storageClassName : auth-sc
local:
path : /mnt/auth-storage
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key : kubernetes.io/hostname
operator : In
values:
- kub-node-1
@ -0,0 +1,11 @@
kind : PersistentVolumeClaim
apiVersion : v1
metadata:
name : auth-pvc
spec:
accessModes:
- ReadWriteOnce
volumeMode : Filesystem
resources:
requests:
storage : 1Gi
@ -0,0 +1,6 @@
kind : StorageClass
apiVersion : storage.k8s.io/v1
metadata:
name : auth-sc
provisioner : kubernetes.io/no-provisioner
volumeBindingMode : WaitForFirstConsumer
@ -0,0 +1,26 @@
#!/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://192.168.49.2/api/v1/registration' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode uid = "" $1 "" \
--data-urlencode email = "" $2 "" \
--data-urlencode password = "" $3 ""
echo ""