parent
f318339c23
commit
f68e494b3a
10 changed files with 79 additions and 0 deletions
@ -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…
Reference in new issue