Add isolated UAT and production environments
This commit is contained in:
@@ -1,95 +0,0 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: step3-questions
|
||||
labels:
|
||||
app: step3-questions
|
||||
spec:
|
||||
replicas: 2
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxUnavailable: 0
|
||||
maxSurge: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: step3-questions
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: step3-questions
|
||||
annotations:
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/path: "/metrics"
|
||||
prometheus.io/port: "5008"
|
||||
spec:
|
||||
containers:
|
||||
- name: step3-questions
|
||||
image: step3-questions:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- containerPort: 5008
|
||||
env:
|
||||
- name: Jwt__Key
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: ranaze-auth
|
||||
key: jwt-key
|
||||
- name: Jwt__Issuer
|
||||
value: promiscuity
|
||||
- name: Jwt__Audience
|
||||
value: promiscuity-auth-api
|
||||
- name: PasswordReset__Enabled
|
||||
value: "false"
|
||||
- name: Steam__Realm
|
||||
value: https://s3q.ranaze.com
|
||||
- name: Steam__ReturnUrl
|
||||
value: https://s3q.ranaze.com/api/Auth/steam/callback
|
||||
- name: Legal__TermsVersion
|
||||
value: "2026-07-20"
|
||||
- name: Legal__PrivacyVersion
|
||||
value: "2026-07-20"
|
||||
- name: Legal__EffectiveUtc
|
||||
value: "2026-07-20T00:00:00Z"
|
||||
- name: Legal__TermsUrl
|
||||
value: https://doctor.ranaze.com/terms.html
|
||||
- name: Legal__PrivacyUrl
|
||||
value: https://doctor.ranaze.com/privacy.html
|
||||
- name: InternalPurge__Secret
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: medmind-internal-api
|
||||
key: purge-secret
|
||||
- name: Stripe__SecretKey
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: medmind-stripe
|
||||
key: secret-key
|
||||
- name: Stripe__WebhookSecret
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: medmind-stripe
|
||||
key: webhook-secret
|
||||
resources:
|
||||
requests:
|
||||
cpu: 250m
|
||||
memory: 256Mi
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: 512Mi
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /readyz
|
||||
port: 5008
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 5008
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
@@ -1,35 +0,0 @@
|
||||
apiVersion: autoscaling/v2
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: step3-questions
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: step3-questions
|
||||
minReplicas: 2
|
||||
maxReplicas: 10
|
||||
behavior:
|
||||
scaleUp:
|
||||
stabilizationWindowSeconds: 0
|
||||
policies:
|
||||
- type: Percent
|
||||
value: 100
|
||||
periodSeconds: 60
|
||||
- type: Pods
|
||||
value: 2
|
||||
periodSeconds: 60
|
||||
selectPolicy: Max
|
||||
scaleDown:
|
||||
stabilizationWindowSeconds: 300
|
||||
policies:
|
||||
- type: Percent
|
||||
value: 25
|
||||
periodSeconds: 60
|
||||
metrics:
|
||||
- type: Resource
|
||||
resource:
|
||||
name: cpu
|
||||
target:
|
||||
type: Utilization
|
||||
averageUtilization: 60
|
||||
@@ -1,9 +0,0 @@
|
||||
apiVersion: policy/v1
|
||||
kind: PodDisruptionBudget
|
||||
metadata:
|
||||
name: step3-questions
|
||||
spec:
|
||||
minAvailable: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: step3-questions
|
||||
@@ -1,15 +0,0 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: step3-questions
|
||||
labels:
|
||||
app: step3-questions
|
||||
spec:
|
||||
selector:
|
||||
app: step3-questions
|
||||
type: NodePort
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 5008
|
||||
nodePort: 30088
|
||||
Reference in New Issue
Block a user