Skip to content

Latest commit

 

History

History

safe-client-gateway

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Safe-Client-Gateway

Warning

Disclaimer: This repository is currently a work in progress. While contributions and feedback are welcome, please note that the code and features may change frequently, and some functionalities may not be fully implemented or tested. Use this project at your own risk.

Introduction

This chart bootstraps a safe-client-gateway deployment on a Kubernetes cluster using the Helm package manager.

We also package the following helm charts from Bitnami for you to optionally use:

Chart Descrption
Redis For enabling caching

Prerequisites

Installing the Chart

To install the chart with the release name [RELEASE-NAME]:

helm repo add safe https://5afe.github.io/safe-helm-charts/charts/packages

helm install [RELEASE-NAME] safe/safe-client-gateway

The command deploys safe-client-gateway on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall the [RELEASE-NAME] deployment:

helm uninstall [RELEASE-NAME]

The command removes all the Kubernetes components associated with the chart and deletes the release.

Upgrading Chart

To upgrade the [RELEASE-NAME] deployment with the latest version:

helm upgrade [RELEASE-NAME] safe/safe-client-gateway

Configuration

The following table lists the configurable parameters of the safe-client-gateway chart and their default values.

See Customizing the Chart Before Installing. To see all configurable options with detailed comments:

helm show values safe-client-gateway

Common parameters

Parameter Description Default
nameOverride Provide a name in place of safe-client-gateway for app: labels ""
fullnameOverride Provide a name to substitute for the full names of resources ""

Installation parameters

Parameter Description Default
replicaCount Number of instance for safe-client-gateway-web 1
image.repository safe-client-gateway image name safeglobal/safe-client-gateway-nest
image.tag safe-client-gateway image tag latest
image.pullPolicy Image pull policy Always
extraEnv Specify additional environment variables []

Configuration parameters

Parameter Description Default
config.debug Enable debug mode true
config.cfgService.url URL of the Config-Service ""
config.security.authToken Authentication token ""
config.redis.host Redis Host
if safe-client-gateway-redis.enabled=false
""
config.redis.port Redis Port 6379

Pod parameters

Parameter Description Default
web.nodeSelector {}
web.affinity {}
web.tolerations {}
web.securityContext {}
web.podSecurityContext {}
web.resources {}

Ingress parameters

Parameter Description Default
ingress.enabled Enable ingress true
ingress.ingressClassName Ingress class name nginx
ingress.host Ingress host cgw-service.minikube.net
ingress.annotations Ingress annotations
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/enable-cors: "true"
nginx.ingress.kubernetes.io/cors-allow-methods: "OPTIONS, GET, HEAD, DELETE, PUT, POST"
nginx.ingress.kubernetes.io/cors-allow-origin: "https://*.minikube.net"
nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization,Safe-Wallet-Signature,Safe-Wallet-Signature-Timestamp"

Redis parameters

Parameter Description Default
safe-client-gateway-redis.enabled Spin up a Redis instance true

Refer to bitnami/redis for configuration.

Troubleshooting