Skip to content

Commit

Permalink
#159 Update CI/CD for k8s-london for helm charts #45 (#46)
Browse files Browse the repository at this point in the history
* Fixed AWS config (#25): #24

* Fixed update script ordering. (#27)

* Sync'd central-config.yml with central/values.yml (#29)

* Fixed update script ordering.

* Sync'd config-central.yaml to match central/values.yaml

* Feature/#60 automate the cd pipeline for central ledger (#34)

* Fixed AWS config (#25): #24 (#26)

* Fixed update script ordering. (#27)

* Develop (#30)

* added initial configs for central dev and prod deployments

* Added a new chart called "mojaloop" which deploys all components for the mojaloop switch.

* Feature/#60 automate the cd pipeline for central ledger (#36)

* added initial configs for central dev and prod deployments

* Added a new chart called "mojaloop" which deploys all components for the mojaloop switch.

* Updated ingress for prod deployment

* Updated Ingress Host Names

* updated dev config for all tags to point to 'snapshot' instead of 'latst'

* updated dev config for all tags to point to 'snapshot' instead of 'latst'

* updated centralledger chart to v0.2.0 (#43)

* updated centralledger chart to v0.2.0

Changes made:
- added mysql dep on centralledger, and associated configurations for either postgres or mysql
- changed centralledger config to use value for the knex config
- removed AWS values (not needed)
- removed values in the root folder. Rather use the value.yaml in each chart folder, which is easier to maintain.

* Bumbped chart versions impacted by centralledger update to 0.2.0 to match the same version

* Bumbped chart versions impacted by centralledger update to 0.2.0 to match the same version

For previous commit:
Added db_type and db_driver under the config values for CentralLedger. This will allow us to switch between postgresql and mysql. Note the mysql deployment has not been tested since we do not have working backend code to fully support this yet.

* #159 Update CI/CD for k8s-london for helm charts (#45)

* Published Helm repo from the develop branch

* Bugfix/mock pathfinder port names too long (#11)

* Fixed typo in readme.md

* Fixed port name for mock pathfinder. Name was longer then 15 characters.

* Published bug fix

* Fixed to published repo (#15)

* Develop (#12)

* Initial Helm Commit (#1)

1. Added Helm charts for:
- Central Directory
- Central End User Registry
- Central Ledger
- Central Hub
- Central KMS
- Mock Pathfinder
- Forensic Logging Sidecar
- Central
- Ingress Nginx

2. Updated documentation:
- readme.md

3. Added helper scripts:
- deploy-central.sh
- deploy-ingress.sh
- clean.sh
- update-charts-dep.sh

4. Added global configs:
- config-central.sh
- config-ingress.sh

5. Added how to deploy mojaloop to a local minikube k8s environment to readme.md

* updated typos (#3)

* Bugfix/readme improvements (#4)

* Fixed typo in readme for updating dependencies

* Added local dev guide

* Feature/adding external service (#7)

* Several feature updates, bug and typo fixes

1. Removed duplicate central-directory references
2. Removed duplicate central-kms references
3. Cleanred up values.yaml
4. Added external hikacking service capability for all k8s services. This will allow for easier local development.
5. Updated readme.md, and moved development guide into https://github.com/mojaloop/mojaloop

* added package.sh to assist in indexing and creating a helm repo

* updated README.MD to include instructions on how to use the helm repo for mojaloop

* Fixed typo in readme.md

* Fixed port name for mock pathfinder. Name was longer then 15 characters. (#10)

* Develop (#14)

* Initial Helm Commit (#1)

1. Added Helm charts for:
- Central Directory
- Central End User Registry
- Central Ledger
- Central Hub
- Central KMS
- Mock Pathfinder
- Forensic Logging Sidecar
- Central
- Ingress Nginx

2. Updated documentation:
- readme.md

3. Added helper scripts:
- deploy-central.sh
- deploy-ingress.sh
- clean.sh
- update-charts-dep.sh

4. Added global configs:
- config-central.sh
- config-ingress.sh

5. Added how to deploy mojaloop to a local minikube k8s environment to readme.md

* updated typos (#3)

* Bugfix/readme improvements (#4)

* Fixed typo in readme for updating dependencies

* Added local dev guide

* Feature/adding external service (#7)

* Several feature updates, bug and typo fixes

1. Removed duplicate central-directory references
2. Removed duplicate central-kms references
3. Cleanred up values.yaml
4. Added external hikacking service capability for all k8s services. This will allow for easier local development.
5. Updated readme.md, and moved development guide into https://github.com/mojaloop/mojaloop

* added package.sh to assist in indexing and creating a helm repo

* updated README.MD to include instructions on how to use the helm repo for mojaloop

* Fixed typo in readme.md

* Fixed port name for mock pathfinder. Name was longer then 15 characters. (#10)

* Several updates: (#13)

Several updates

* Published master changes

* Publishing latest charts

* publishing to repo

* Publishing fixes

* Updated deployments

* added pod affinity, nodeSelector and tollarations

* Updates requirements to relfect v0.1.1 version

* Fixed issue on tolerations from {} to []

* Fixed tolerations in centralledger

* Feature/#76 implementa poc for stream processing pattern (#38)

* Feature/#60 automate the cd pipeline for central ledger (#36)

* added initial configs for central dev and prod deployments

* Added a new chart called "mojaloop" which deploys all components for the mojaloop switch.

* Updated ingress for prod deployment

* Updated Ingress Host Names

* updated dev config for all tags to point to 'snapshot' instead of 'latst'

* updated dev config for all tags to point to 'snapshot' instead of 'latst'

* added pod affinity, nodeSelector and tollarations

* Updates requirements to relfect v0.1.1 version

* Fixed issue on tolerations from {} to []

* Fixed tolerations in centralledger

* Published v1.1

* Updated the templates to cater for external DBs

* Fixed circleci typo

* Updated versions for impacted chats

* publishing v0.1.2 of chats

* fixed issue with central-ledger secret config

* fixed issue with centralledger secret

* updated config to use correct URI for api and admin hosts

* Updated deployment to show proper host for centralledger

* Fixed issue #41

* Fixed #41

* sperated the ingress for admin and api

* Seperated the ingress for admin and api

* removing repo

* Bumped all versions to 2.0

* realignment fixes

* fixed config file

* Merge/developintomaster (#47)

* Develop (#44)

* Fixed AWS config (#25): #24

* Fixed update script ordering. (#27)

* Sync'd central-config.yml with central/values.yml (#29)

* Fixed update script ordering.

* Sync'd config-central.yaml to match central/values.yaml

* Feature/#60 automate the cd pipeline for central ledger (#34)

* Fixed AWS config (#25): #24 (#26)

* Fixed update script ordering. (#27)

* Develop (#30)

* added initial configs for central dev and prod deployments

* Added a new chart called "mojaloop" which deploys all components for the mojaloop switch.

* Feature/#60 automate the cd pipeline for central ledger (#36)

* added initial configs for central dev and prod deployments

* Added a new chart called "mojaloop" which deploys all components for the mojaloop switch.

* Updated ingress for prod deployment

* Updated Ingress Host Names

* updated dev config for all tags to point to 'snapshot' instead of 'latst'

* updated dev config for all tags to point to 'snapshot' instead of 'latst'

* updated centralledger chart to v0.2.0 (#43)

* updated centralledger chart to v0.2.0

Changes made:
- added mysql dep on centralledger, and associated configurations for either postgres or mysql
- changed centralledger config to use value for the knex config
- removed AWS values (not needed)
- removed values in the root folder. Rather use the value.yaml in each chart folder, which is easier to maintain.

* Bumbped chart versions impacted by centralledger update to 0.2.0 to match the same version

* Bumbped chart versions impacted by centralledger update to 0.2.0 to match the same version

For previous commit:
Added db_type and db_driver under the config values for CentralLedger. This will allow us to switch between postgresql and mysql. Note the mysql deployment has not been tested since we do not have working backend code to fully support this yet.

* removed 'type: http' from the centrslledger values which is unused.

* Removed 'type: http' from centralledger values in central and centralHub charts as these are not used.
  • Loading branch information
mdebarros authored Apr 20, 2018
1 parent bc16249 commit c61b5b7
Show file tree
Hide file tree
Showing 28 changed files with 273 additions and 59 deletions.
2 changes: 1 addition & 1 deletion central/requirements.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ dependencies:
repository: "file://../centralhub"
condition: centralhub.enabled
- name: centraldirectory
version: 0.1.0
version: 0.2.0
repository: "file://../centraldirectory"
condition: centraldirectory.enabled
23 changes: 19 additions & 4 deletions central/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Default values for central.
# This is a YAML-formatted file.
# Declare global configurations
global:
config:
## Pod scheduling preferences.
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}

## Node labels for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
nodeSelector: {}

## Set toleration for schedular
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

# Declare variables to be passed into your templates.

centralhub:
Expand Down Expand Up @@ -219,7 +235,6 @@ centralhub:

ingress:
enabled: true
type: http
externalPath:
api: /
admin: /admin/
Expand Down Expand Up @@ -542,16 +557,16 @@ centralhub:

## Uncomment to create a database user
##
mysqlUser: test
mysqlPassword: test
mysqlUser: central_ledger
mysqlPassword: oyMxgZChuu

## Allow unauthenticated access, uncomment to enable
##
# mysqlAllowEmptyPassword: true

## Uncomment to Create a database
##
mysqlDatabase: test
mysqlDatabase: central_ledger

## hosts to allow root user access from
# set to "127.0.0.1" to deny remote root.
Expand Down
2 changes: 1 addition & 1 deletion centraldirectory/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Central-Directory Helm chart for Kubernetes
name: centraldirectory
version: 0.1.0
version: 0.2.0
home: http://mojaloop.io
icon: http://mojaloop.io/images/logo.png
sources:
Expand Down
6 changes: 3 additions & 3 deletions centraldirectory/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# requirements.yaml
dependencies:
- name: centralenduserregistry
version: 0.1.0
version: 0.2.0
repository: "file://../centralenduserregistry"
condition: centralenduserregistry.enabled
- name: mockpathfinder
version: 0.1.0
version: 0.2.0
repository: "file://../mockpathfinder"
condition: mockpathfinder.enabled
- name: postgresql
version: 0.8.4
version: 0.9.1
repository: https://kubernetes-charts.storage.googleapis.com/
condition: postgresql.enabled
12 changes: 12 additions & 0 deletions centraldirectory/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ spec:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
{{- if .Values.global.config.affinity }}
affinity:
{{ toYaml .Values.global.config.affinity | indent 8 }}
{{- end }}
{{- if .Values.global.config.nodeSelector }}
nodeSelector:
{{ toYaml .Values.global.config.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.global.config.tolerations }}
tolerations:
{{ toYaml .Values.global.config.tolerations | indent 8 }}
{{- end }}
{{- if .Values.init.enabled }}
initContainers:
- name: wait-for-postgres
Expand Down
17 changes: 17 additions & 0 deletions centraldirectory/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Default values for central-directory.
# This is a YAML-formatted file.

# Declare global configurations
global:
config:
## Pod scheduling preferences.
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}

## Node labels for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
nodeSelector: {}

## Set toleration for schedular
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

# Declare variables to be passed into your templates.
replicaCount: 1
image:
Expand Down
2 changes: 1 addition & 1 deletion centralenduserregistry/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Central-End-User-Registry Helm chart for Kubernetes
name: centralenduserregistry
version: 0.1.0
version: 0.2.0
home: http://mojaloop.io
icon: http://mojaloop.io/images/logo.png
sources:
Expand Down
2 changes: 1 addition & 1 deletion centralenduserregistry/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# requirements.yaml
dependencies:
- name: postgresql
version: 0.8.4
version: 0.9.1
repository: https://kubernetes-charts.storage.googleapis.com/
condition: postgresql.enabled
12 changes: 12 additions & 0 deletions centralenduserregistry/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ spec:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
{{- if .Values.global.config.affinity }}
affinity:
{{ toYaml .Values.global.config.affinity | indent 8 }}
{{- end }}
{{- if .Values.global.config.nodeSelector }}
nodeSelector:
{{ toYaml .Values.global.config.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.global.config.tolerations }}
tolerations:
{{ toYaml .Values.global.config.tolerations | indent 8 }}
{{- end }}
{{- if .Values.init.enabled }}
initContainers:
- name: wait-for-postgres
Expand Down
18 changes: 18 additions & 0 deletions centralenduserregistry/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,24 @@
# Default values for central-end-user-registry.
# This is a YAML-formatted file.

# Declare global configurations
global:
config:
## Pod scheduling preferences.
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}

## Node labels for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
nodeSelector: {}

## Set toleration for schedular
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

# Declare variables to be passed into your templates.

replicaCount: 1
image:
repository: mojaloop/central-end-user-registry
Expand Down
12 changes: 12 additions & 0 deletions centralhub/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,18 @@ spec:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
{{- if .Values.global.config.affinity }}
affinity:
{{ toYaml .Values.global.config.affinity | indent 8 }}
{{- end }}
{{- if .Values.global.config.nodeSelector }}
nodeSelector:
{{ toYaml .Values.global.config.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.global.config.tolerations }}
tolerations:
{{ toYaml .Values.global.config.tolerations | indent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand Down
24 changes: 20 additions & 4 deletions centralhub/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Default values for central-kms.
# This is a YAML-formatted file.

# Declare global configurations
global:
config:
## Pod scheduling preferences.
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}

## Node labels for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
nodeSelector: {}

## Set toleration for schedular
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: []

# Declare variables to be passed into your templates.

replicaCount: 1
Expand Down Expand Up @@ -216,7 +233,6 @@ centralledger:

ingress:
enabled: true
type: http
externalPath:
api: /
admin: /admin/
Expand Down Expand Up @@ -539,16 +555,16 @@ centralledger:

## Uncomment to create a database user
##
mysqlUser: test
mysqlPassword: test
mysqlUser: central_ledger
mysqlPassword: oyMxgZChuu

## Allow unauthenticated access, uncomment to enable
##
# mysqlAllowEmptyPassword: true

## Uncomment to Create a database
##
mysqlDatabase: test
mysqlDatabase: central_ledger

## hosts to allow root user access from
# set to "127.0.0.1" to deny remote root.
Expand Down
2 changes: 1 addition & 1 deletion centralkms/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
description: Central-KMS Helm chart for Kubernetes
name: centralkms
version: 0.1.0
version: 0.2.0
home: http://mojaloop.io
icon: http://mojaloop.io/images/logo.png
sources:
Expand Down
2 changes: 1 addition & 1 deletion centralkms/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# requirements.yaml
dependencies:
- name: postgresql
version: 0.8.4
version: 0.9.1
repository: https://kubernetes-charts.storage.googleapis.com/
condition: postgresql.enabled
12 changes: 12 additions & 0 deletions centralkms/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ spec:
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
spec:
{{- if .Values.global.config.affinity }}
affinity:
{{ toYaml .Values.global.config.affinity | indent 8 }}
{{- end }}
{{- if .Values.global.config.nodeSelector }}
nodeSelector:
{{ toYaml .Values.global.config.nodeSelector | indent 8 }}
{{- end }}
{{- if .Values.global.config.tolerations }}
tolerations:
{{ toYaml .Values.global.config.tolerations | indent 8 }}
{{- end }}
initContainers:
- name: wait-for-postgres
image: bowerswilkins/awaitpostgres
Expand Down
17 changes: 17 additions & 0 deletions centralkms/values.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Default values for central-kms.
# This is a YAML-formatted file.

# Declare global configurations
global:
config:
## Pod scheduling preferences.
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
##
affinity: {}

## Node labels for pod assignment
## ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector
nodeSelector: {}

## Set toleration for schedular
## ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
tolerations: {}

# Declare variables to be passed into your templates.

replicaCount: 1
Expand Down
6 changes: 3 additions & 3 deletions centralledger/requirements.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# requirements.yaml
dependencies:
- name: forensicloggingsidecar
version: 0.1.0
version: 0.2.0
repository: "file://../forensicloggingsidecar"
condition: forensicloggingsidecar.enabled
- name: postgresql
version: 0.8.4
repository: https://kubernetes-charts.storage.googleapis.com
version: 0.9.1
repository: https://kubernetes-charts.storage.googleapis.com/
condition: postgresql.enabled
- name: percona-xtradb-cluster
version: 0.1.4
Expand Down
Loading

0 comments on commit c61b5b7

Please sign in to comment.