Refactor kafka to pure Go (franz-go), fix DBC stubs, update Dockerfile
This commit is contained in:
@@ -23,6 +23,7 @@ data:
|
||||
# Redis
|
||||
REDIS_HOST: cloud-dev.redis.svc.cluster.local
|
||||
REDIS_PORT: "6379"
|
||||
REDIS_PASSWORD: ""
|
||||
REDIS_IDLETIMEOUT_MS: "3600000"
|
||||
REDIS_MAXIDLECONN: "10"
|
||||
REDIS_MAXACTIVECONN: "10"
|
||||
@@ -38,6 +39,7 @@ data:
|
||||
# Auth (Keycloak)
|
||||
OIDC_ISSUER: https://keycloak.mini.cloud.fiskerinc.com/realms/compute-auth
|
||||
OIDC_JWK_URL: https://keycloak.mini.cloud.fiskerinc.com/realms/compute-auth/protocol/openid-connect/certs
|
||||
JWK_URL: https://keycloak.mini.cloud.fiskerinc.com/realms/compute-auth/protocol/openid-connect/certs
|
||||
|
||||
# Vault
|
||||
VAULT_URL: http://vault.vault.svc.cluster.local:8200/v1
|
||||
|
||||
@@ -6,9 +6,7 @@ namespace: cloud-services
|
||||
resources:
|
||||
- ../../base
|
||||
- secrets.yaml
|
||||
# Services (uncomment as migrated)
|
||||
# - services/gateway/
|
||||
# - services/auth/
|
||||
- services/gateway/
|
||||
|
||||
commonLabels:
|
||||
environment: development
|
||||
|
||||
62
deploy/overlays/development/services/gateway/deployment.yaml
Normal file
62
deploy/overlays/development/services/gateway/deployment.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: gateway
|
||||
namespace: cloud-services
|
||||
labels:
|
||||
app: gateway
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: gateway
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: gateway
|
||||
spec:
|
||||
containers:
|
||||
- name: gateway
|
||||
image: localhost:32000/gateway:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8077
|
||||
name: http
|
||||
- containerPort: 11011
|
||||
name: health
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: cloud-common-config
|
||||
- secretRef:
|
||||
name: cloud-db-credentials
|
||||
resources:
|
||||
requests:
|
||||
cpu: 100m
|
||||
memory: 128Mi
|
||||
limits:
|
||||
memory: 256Mi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /liveness
|
||||
port: 11011
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /readiness
|
||||
port: 11011
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: gateway
|
||||
namespace: cloud-services
|
||||
spec:
|
||||
selector:
|
||||
app: gateway
|
||||
ports:
|
||||
- port: 8077
|
||||
targetPort: 8077
|
||||
name: http
|
||||
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- deployment.yaml
|
||||
Reference in New Issue
Block a user