Skip to content

Commit

Permalink
fix resources bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bbengfort committed Jul 9, 2024
1 parent 15821bd commit a8064b2
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 19 deletions.
2 changes: 1 addition & 1 deletion charts/envoy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.3.0
version: 0.4.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 0 additions & 1 deletion charts/envoy/examples/alice-testnet.yaml

This file was deleted.

122 changes: 106 additions & 16 deletions charts/envoy/examples/alice.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,117 @@
isTestnet: false
# The Charlie VASP is an Envoy node that is managed by Helm
# These are the values that are set for the helm chart.

environment: "staging"
# If this node is a TRISA testnet node, then it's testnet values will be updated
isTestnet: true

# Environment can be set to "staging", "development", "production", or omitted
environment: "demo"

# Name overrides: by default the name will be release-envoy and it is
# recommended that the release name be the name of the VASP. If you would like to
# override the name, you can do so below; if you would like to override the -envoy
# suffix, then use the fullnameOverride.
nameOverride: "rvasp-alice"
fullnameOverride: ""

# Service name defines the domain of the headless service to connect to the pods on
# By default the name computed for the application is used but with "." instead of "-"
# for testnet prefixing.
serviceName: "rvasp-alice"

certificate:
name: "api.alice.vaspbot.net.pem"

# The following is the TRISA configuration for the Envoy node. For more about
# configuration options, please see https://trisa.dev/envoy/configuration/index.html
# These values are mounted into each pod as an environment variable.
trisa:
endpoint: api.alice.vaspbot.net:443
maintenance: "false"
logLevel: info

# Required: user must populate this value!
# Endpoint must include the hostname:port as it is defined for external users to
# connect to this service. If ingresses are enabled, it must match the ingress route.
endpoint: "api.alice.vaspbot.net:443"

web:
enabled: "true"
apiEnabled: "true"
uiEnabled: "true"

# Required: user must populate this value!
# Set to the full URL of the web UI which should match the ingress route
origin: "https://alice.vaspbot.net"

auth:
# Optional: specify keys for generating JWT tokens (random ones will be generated if blank)
keys: ""

# Specify access token behavior for login
accessTokenTTL: "1h"
refreshTokenTTL: "2h"
tokenOverlap: "-15m"

node:
enabled: "true"


# Because TRISA is a globally distributed system, region deployment information is
# useful information on the node. This information can be provided via config map or
# manually specified in the values.yaml -- behavior is not defined for when both are
# specified.
regioninfo:
# If enabled is true, will load the region info into the environment from the
# specified config map
enabled: true
configMap: "region-info"

# Define the ports to bind the envoy service(s) on. Note that this will also influence
# the configuration of the node to bind to these ports as well so they only have to be
# defined once in this values file rather than multiple times.
services:
web:
origin: https://alice.vaspbot.net
enabled: true
port: 8000
type: ClusterIP
grpc:
enabled: true
port: 8100
type: ClusterIP

ingresses:
enabled: false
enabled: true
web:
hostname: alice.vaspbot.net
className: "IngressRoute"
annotations: {}
hostname: "alice.vaspbot.net"
entryPoints:
- websecure
tls:
secretName: envoy-certs
grpc:
hostname: api.alice.vaspbot.net
className: "IngressRouteTCP"
annotations: {}
hostname: "api.alice.vaspbot.net"
entryPoints:
- websecure
tls:
passthrough: true

regioninfo:
enabled: true
install: true
info:
id: "213"
name: "us-central1"
country: "us-central1"
cloud: "GCP"
cluster: "testing-gke-usa-1"
# Define the resources used by the container (left blank if unset)
resources:
requests:
memory: "32Mi"
cpu: "100m"
limits:
memory: "512Mi"
cpu: "500m"

# Define PVCs that are allocated per pod on the stateful set (e.g. envoy data)
volumeClaimTemplates:
# The node data spec will be included in volume claim templates.
nodeData:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 16Gi
2 changes: 1 addition & 1 deletion charts/envoy/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ spec:
{{- end }}
{{- with .Values.resources }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- toYaml . | nindent 12 }}
{{- end }}
ports:
{{- with .Values.services }}
Expand Down

0 comments on commit a8064b2

Please sign in to comment.