-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path00-variables.sh
More file actions
51 lines (43 loc) · 1.73 KB
/
Copy path00-variables.sh
File metadata and controls
51 lines (43 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Variables
# Azure Resources
PREFIX='zeus'
SUFFIX='test'
LOCATION='italynorth'
RESOURCE_GROUP_NAME="${PREFIX}-rg"
ACR_NAME="${PREFIX,,}acr${SUFFIX,,}"
ACR_SKU='Standard'
SUBSCRIPTION_NAME=$(az account show --query name --output tsv)
SUBSCRIPTION_ID=$(az account show --query id --output tsv)
TENANT_ID=$(az account show --query tenantId --output tsv)
CURRENT_DIR="$(cd "$(dirname "$0")" && pwd)"
# In-cluster PostgreSQL (deployed via statefulset.yml)
PG_PORT='5432'
PG_USER_NAME='testuser'
PG_USER_PASSWORD='TestP@ssw0rd123'
PG_DATABASE_NAME='PlannerDB'
# StatefulSet topology and write/read endpoints (see statefulset.yml).
# The app does writes, so it must target the primary (write) endpoint.
PG_STATEFULSET_NAME='pg-postgres'
PG_PRIMARY_POD='pg-postgres-0'
PG_PRIMARY_SERVICE='pg-postgres-primary'
# Superuser bootstrap credentials. These MUST match the POSTGRES_PASSWORD in the
# pg-postgres-secret defined in statefulset.yml — keep both in sync if changed.
PG_SUPERUSER='postgres'
PG_SUPERUSER_PASSWORD='SuperStrongPass123'
# Local port used by `kubectl port-forward` to reach the in-cluster DB from the
# host (scripts 03 and 06).
PG_LOCAL_PORT='5432'
# Application config — must match the seed-row `username` in 06-create-test-data.sh.
# PostgreSQL `=` is case-sensitive (unlike SQL Server), so this stays lowercase.
LOGIN_NAME='paolo'
# Docker Image
IMAGE_NAME="vacation-planner-postgres-in-cluster"
IMAGE_PULL_POLICY="Always"
IMAGE_TAG="v1"
PORT="8080"
# Kubernetes
NAMESPACE="vacation-planner-postgres-in-cluster"
DEPLOYMENT_NAME="vacation-planner-postgres-in-cluster"
SERVICE_NAME="vacation-planner-postgres-in-cluster"
CONFIGMAP_NAME="vacation-planner-postgres-in-cluster-config"
K8S_SECRET_NAME="vacation-planner-postgres-in-cluster-secrets"