main
slaventius 2 years ago
parent f318339c23
commit f68e494b3a
  1. 0
      deploy/.pre/auth-db-config.yaml
  2. 0
      deploy/.pre/auth-db-deployment.yaml
  3. 0
      deploy/.pre/auth-db-secret.yaml
  4. 0
      deploy/.pre/auth-db-service.yaml
  5. 6
      deploy/helm/Chart.yaml
  6. 8
      deploy/helm/templates/config.yaml
  7. 41
      deploy/helm/templates/deployment.yaml
  8. 7
      deploy/helm/templates/secret.yaml
  9. 14
      deploy/helm/templates/service.yaml
  10. 3
      deploy/helm/values.yaml

@ -0,0 +1,6 @@
apiVersion: apps/v1
name: auth-db-HelmChart
description: Helm Chart for auth-db
type: application
version: 0.1.0
appVersion: "1.0.0"

@ -0,0 +1,8 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-config
data:
KAFKA_HOST: "37.143.12.169"
KAFKA_PORT: "19092"
APP_PORT: "9995"

@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-application
labels:
app: {{ .Release.Name }}-application
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Release.Name }}-application
template:
metadata:
labels:
app: {{ .Release.Name }}-application
spec:
containers:
- name: {{ .Release.Name }}-application
image: {{ .Values.container.image }}
imagePullPolicy: Always
ports:
- containerPort: {{ .Values.container.port }}
envFrom:
- secretRef:
name: {{ .Release.Name }}-secret
- configMapRef:
name: {{ .Release.Name }}-config
# livenessProbe:
# grpc:
# port: {{ .Values.container.port }}
# periodSeconds: 1
# initialDelaySeconds: 2
# failureThreshold: 3
# successThreshold: 1
# readinessProbe:
# grpc:
# port: {{ .Values.container.port }}
# periodSeconds: 1
# initialDelaySeconds: 4
# failureThreshold: 3
# successThreshold: 1

@ -0,0 +1,7 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ .Release.Name }}-secret
type: Opaque
data:
SENTRY_DSN: aHR0cHM6Ly8zZjRiMzFkYmJkOWE0YTZiOGE3MWY5ODgxZDk2MmYyNUBvNDUwNDY1NDU2OTc5OTY4MC5pbmdlc3Quc2VudHJ5LmlvLzQ1MDQ2NTQ1NzI2ODMyNjQ=

@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-service
labels:
app: {{ .Release.Name }}-application
spec:
type: ClusterIP
selector:
app: {{ .Release.Name }}-application
ports:
- protocol: TCP
port: {{ .Values.container.port }}
targetPort: {{ .Values.container.port }}

@ -0,0 +1,3 @@
container:
image: slaventius/test3k_auth_db:latest
port: 9995
Loading…
Cancel
Save