Skip to content

Commit

Permalink
Merge pull request #76 from glaciation-heu/feature/replica-service
Browse files Browse the repository at this point in the history
[replica service] adding application
  • Loading branch information
ktatarnikovhiro authored Nov 29, 2024
2 parents f20e8f8 + 8dc2409 commit 9e333e5
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 2 deletions.
3 changes: 2 additions & 1 deletion base/apps/dkg-engine/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ resources:
- trade-off-service.yaml
- kg-exporter.yaml
- nats.yaml
- dkg-tenant.yaml
- dkg-tenant.yaml
- replica-service.yaml
65 changes: 65 additions & 0 deletions base/apps/dkg-engine/replica-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: replica-service
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: dkg-engine
server: https://kubernetes.default.svc
project: default
source:
repoURL: https://HIRO-MicroDataCenters-BV.github.io/rhio/helm-charts/
chart: rhio
targetRevision: 0.*.*
helm:
valuesObject:
secretKey: "<not set>"

tolerations:
- key: "node-role.kubernetes.io/control-plane"
operator: "Equal"
effect: "NoSchedule"

nodeSelector:
master: "true"

services:
type: ClusterIP
# the port for the p2p networking endpoint
network:
port: 9102
# nodePort: 31100
# the port for the HTTP health endpoint
health:
port: 8080

configuration:
s3:
endpoint: "http://minio.dkg-engine.svc.cluster.local:9000"
region: "eu-central-1"
credentials:
access_key: "minio"
secret_key: "minio123"

# NATS
# Endpoint of the local NATS Server with JetStreams enabled.
#
nats:
endpoint: "nats-jetstream.dkg-engine.svc.cluster.local:4222"
# credentials:
# username: "rhio"
# password: "rhio_password"
# # Alternative authentication strategies:
# nkey: "..."
# token: "..."

syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
13 changes: 12 additions & 1 deletion overlays/integration/dkg-engine/patch-optional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,15 @@ spec:
source:
helm:
valuesObject:
ingressHostName: prediction.integration
ingressHostName: prediction.integration
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: replica-service
namespace: argocd
spec:
source:
helm:
valuesObject:
secretKey: "327c1a11f06ab80de030e5ff6e879a5b3fedd5be3df0fb43e7328ae0843c8cb1"
22 changes: 22 additions & 0 deletions overlays/validation/dkg-engine/patch-optional.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,25 @@ spec:
helm:
valuesObject:
ingressHostName: prediction.validation
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: dkg-tenant
namespace: argocd
spec:
source:
helm:
valuesObject:
ingressHostName: dkg-tenant.validation
---
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: replica-service
namespace: argocd
spec:
source:
helm:
valuesObject:
secretKey: "162ba197542be77b3e525f3afec7b0ad54b89997b64c5df72d0e9993bbc9efcc"

0 comments on commit 9e333e5

Please sign in to comment.