-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fog-view - blue/green and zone based deployments. (#4009)
* break out service and fogshardgenerator * add fog-view-fsg/fog-view-service charts * wire in fog-view-fsg to cd testing
- Loading branch information
Showing
30 changed files
with
1,218 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,3 +97,5 @@ minting-trust-root* | |
|
||
# new cache dir for mob prompt with user sccache | ||
.mob/ | ||
|
||
.devcontainer/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v2 | ||
name: fog-view-fsg | ||
description: fog-view fogShardGenerator chart | ||
type: application | ||
version: 0.0.0 | ||
appVersion: "0.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
# Fog-View-FSG | ||
|
||
Run a MobileCoin fog-view fogShardGenerator chart | ||
|
||
### Required Values | ||
|
||
You must set the fog view service hostnames and mobilecoin network and partner ids. | ||
|
||
```yaml | ||
mobilecoin: | ||
network: main | ||
partner: mc | ||
|
||
fogView: | ||
color: (blue|green) | ||
zone: <azure region + AZ number> | ||
responderID: fog.prod.mobilecoinww.com | ||
``` | ||
Install chart: | ||
```bash | ||
helm upgrade fog-view-fsg-blue-z1 mcf-public/fog-view-fsg -i -f values.yaml | ||
``` | ||
|
||
### Required ConfigMaps | ||
|
||
postgresReader example: | ||
|
||
```yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: fog-recovery-reader-0-postgresql | ||
data: | ||
postgresql-database: recovery | ||
postgresql-hostname: <hostname> | ||
postgresql-port: "5432" | ||
postgresql-ssl-options: "?sslmode=verify-full&sslrootcert=/etc/ssl/certs/ca-certificates.crt" | ||
postgresql-username: <user> | ||
``` | ||
### Required Secrets | ||
postgresReader example: | ||
```yaml | ||
apiVersion: v1 | ||
metadata: | ||
name: fog-recovery-reader-0-postgresql | ||
kind: Secret | ||
type: Opaque | ||
stringData: | ||
postgresql-password: <password> | ||
``` | ||
### Optional ConfigMaps | ||
sentry: | ||
```yaml | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: sentry | ||
data: | ||
fog-report-sentry-dsn: <sentry dsn> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
:::: :::: :::::::: ::::::::: ::::::::::: ::: :::::::::: | ||
+:+:+: :+:+:+ :+: :+: :+: :+: :+: :+: :+: | ||
+:+ +:+:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ +:+ | ||
+#+ +:+ +#+ +#+ +:+ +#++:++#+ +#+ +#+ +#++:++# | ||
+#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ +#+ | ||
#+# #+# #+# #+# #+# #+# #+# #+# #+# | ||
### ### ######## ######### ########### ########## ########## | ||
:::::::: :::::::: ::::::::::: :::: ::: | ||
:+: :+: :+: :+: :+: :+:+: :+: | ||
+:+ +:+ +:+ +:+ :+:+:+ +:+ | ||
+#+ +#+ +:+ +#+ +#+ +:+ +#+ | ||
+#+ +#+ +#+ +#+ +#+ +#+#+# | ||
#+# #+# #+# #+# #+# #+# #+#+# | ||
######## ######## ########### ### #### | ||
|
||
fog-view fogShardGenerator has been deployed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
{{- define "containers.sysctl" -}} | ||
- name: sysctl | ||
image: ubuntu:20.04 | ||
command: | ||
- sysctl | ||
- -w | ||
- net.ipv4.tcp_retries2=5 | ||
- net.core.somaxconn=65535 | ||
securityContext: | ||
privileged: true | ||
runAsUser: 0 | ||
runAsNonRoot: False | ||
readOnlyRootFilesystem: true | ||
{{- end -}} | ||
|
||
{{- define "containers.admin-http-gateway" -}} | ||
- name: admin-http-gateway | ||
image: "{{ .Values.image.org }}/{{ .Values.image.name }}:{{ .Values.image.tag | default .Chart.AppVersion }}" | ||
imagePullPolicy: Always | ||
args: | ||
- /usr/bin/mc-admin-http-gateway | ||
- --listen-host=0.0.0.0 | ||
- --listen-port=8000 | ||
- --admin-uri=insecure-mca://127.0.0.1:8001/ | ||
ports: | ||
- name: mgmt-http | ||
containerPort: 8000 | ||
# securityContext: | ||
# runAsUser: 1000 | ||
# runAsGroup: 1000 | ||
# runAsNonRoot: true | ||
# capabilities: | ||
# drop: | ||
# - ALL | ||
# readOnlyRootFilesystem: true | ||
{{- end -}} | ||
|
||
{{- define "containers.go-grpc-gateway" -}} | ||
- name: grpc-gateway | ||
image: "{{ .Values.image.org }}/go-grpc-gateway:{{ .Values.image.tag | default .Chart.AppVersion }}" | ||
imagePullPolicy: Always | ||
command: | ||
- /usr/bin/go-grpc-gateway | ||
- -grpc-server-endpoint=127.0.0.1:{{ .Values.grpcGateway.grpcServicePort }} | ||
- -grpc-insecure | ||
- -http-server-listen=:8200 | ||
- -logtostderr | ||
ports: | ||
- name: gateway-http | ||
containerPort: 8200 | ||
resources: | ||
limits: | ||
cpu: 1 | ||
memory: 256Mi | ||
requests: | ||
cpu: 256m | ||
memory: 256Mi | ||
{{- end -}} |
Oops, something went wrong.