Skip to content

Commit

Permalink
Merge branch 'dev' into new-changes
Browse files Browse the repository at this point in the history
* dev:
  Use helmfile layering for more flexibility
  Minor fixes and improvments
  Added Confluent helm charts as submodule
  • Loading branch information
keyvaann committed Sep 2, 2020
2 parents 855e582 + 2978641 commit a3568f3
Show file tree
Hide file tree
Showing 18 changed files with 73 additions and 113 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/.env
cp-helm-charts/
kubernetes-HDFS/
keystore.p12
radar-is.yml
Expand All @@ -8,3 +7,4 @@ production.yaml
.idea/
RADAR-Kubernetes.iml
postgreskeystore.jks
environments.yaml
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "cp-helm-charts"]
path = cp-helm-charts
url = https://github.com/RADAR-base/cp-helm-charts
35 changes: 3 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
# RADAR-Kubernetes [![Build Status](https://travis-ci.org/RADAR-base/RADAR-Kubernetes.svg?branch=master)](https://travis-ci.org/RADAR-base/RADAR-Kubernetes)
Kubernetes deployment of RADAR-base.

**Note:**
This repository is still in **alpha** stage and it's not ready for production use.


## Installation
You need to have a working Kubernetes installation and there are 3 ways to have that:
Expand All @@ -22,7 +19,7 @@ You need to have a working Kubernetes installation and there are 3 ways to have
* [Minikube](https://kubernetes.io/docs/setup/learning-environment/minikube/)
* [K3S](https://k3s.io/)

**Note 1:** This setup is currently only tested on [AWS EKS](https://aws.amazon.com/eks/) however because of cloud agnostic approach of Kubernetes you should be able install this stack on any Kubernetes installation. Also the idea behind using `helm` and `helmfile` has been allowing more complex and customized setups without too much change in the original repository, so if current approach isn't working in your environment you can easily change components to your needs.
**Note 1:** This setup is currently only tested on AWS EKS, OpenStack Magnum and Azure ASK however because of cloud agnostic approach of Kubernetes you should be able install this stack on any Kubernetes installation. Also the idea behind using `helm` and `helmfile` has been allowing more complex and customized setups without too much change in the original repository, so if current approach isn't working in your environment you can easily change components to your needs.

**Note 2:** If you're not using a cloud provider you need to make sure that you can [load balance](https://kubernetes.github.io/ingress-nginx/deploy/baremetal/) and [expose applications](https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#exposing-the-service) and provide [persistent volumes](https://kubernetes.io/docs/concepts/storage/persistent-volumes/).

Expand All @@ -36,9 +33,9 @@ You need to have following tools installed in your machine to install the stack:

After installing them run following commands:
```shell
git clone https://github.com/RADAR-base/RADAR-Kubernetes.git
git clone --recurse-submodules https://github.com/RADAR-base/RADAR-Kubernetes.git
cd RADAR-Kubernetes
git clone https://github.com/RADAR-base/cp-helm-charts.git
cp environments.yaml.tmpl environments.yaml
cp base.yaml production.yaml
vim production.yaml # Change setup parameters and configurations
./bin/keystore-init
Expand Down Expand Up @@ -202,29 +199,3 @@ Alternatively you can forward SSH port to your local machine and connect locally
kubectl port-forward svc/radar-output 2222:22
```
Now you can use "127.0.0.1" as `host` and "2222" as the `port` to connect to SFTP server.




# - name: rook
# chart: rook-release/rook-ceph
# version: v1.2.3
# namespace: rook-ceph
# wait: true
# installed: {{ .Values.rook._install }}
#
# - name: ceph
# chart: ../charts/ceph
# namespace: rook-ceph
# wait: true
# installed: {{ .Values.ceph._install }}
# values:
# - {{ .Values.ceph | toYaml | indent 8 | trim }}

#
# - name: sftp
# chart: ../charts/sftp
# wait: true
# installed: {{ .Values.sftp._install }}
# values:
# - {{ .Values.sftp | toYaml | indent 8 | trim }}
4 changes: 2 additions & 2 deletions charts/cert-manager/requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ dependencies:
- name: cert-manager
repository: https://charts.jetstack.io
version: v0.13.0
digest: sha256:286bd0a59060907dfadcadc5b8d6445635086132184b43f93a0eb9333fc1fc8b
generated: "2020-07-09T16:52:09.217042516+02:00"
digest: sha256:c7b4858b27dbfb9ac616c51a173f78bb13794d0c438fa1c62469caa814c842f2
generated: "2020-09-02T02:53:56.322995185+02:00"
1 change: 1 addition & 0 deletions cp-helm-charts
Submodule cp-helm-charts added at 872ee6
5 changes: 5 additions & 0 deletions environments.yaml.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
environments:
default:
values:
- ../base.yaml
- ../production.yaml
11 changes: 5 additions & 6 deletions helmfile.d/00-init.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
bases:
- ../environments.yaml

---

repositories:
- name: stable
url: https://kubernetes-charts.storage.googleapis.com
- name: elastic
url: https://helm.elastic.co

environments:
default:
values:
- ../base.yaml
- ../production.yaml

helmDefaults:
atomic: true
# force: true
Expand Down
11 changes: 4 additions & 7 deletions helmfile.d/10-base.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
environments:
default:
values:
- ../base.yaml
- ../../etc/production.yaml
secrets:
- ../../secrets/production.yaml
bases:
- ../environments.yaml

---

helmDefaults:
atomic: true
Expand Down
11 changes: 5 additions & 6 deletions helmfile.d/20-dashboard.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
environments:
default:
values:
- ../base.yaml
- ../production.yaml
bases:
- ../environments.yaml

---

helmDefaults:
atomic: true
timeout: 600
kubeContext: {{ .Values.kubeContext }}

releases:
- name: radar-dashboard
chart: ../charts/radar-dashboard
Expand Down
11 changes: 5 additions & 6 deletions helmfile.d/20-fitbit.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
environments:
default:
values:
- ../base.yaml
- ../production.yaml
bases:
- ../environments.yaml

---

helmDefaults:
atomic: true
timeout: 600
kubeContext: {{ .Values.kubeContext }}

releases:
- name: radar-fitbit-connector
chart: ../charts/radar-fitbit-connector
Expand Down
11 changes: 5 additions & 6 deletions helmfile.d/20-grafana.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
bases:
- ../environments.yaml

---

repositories:
- name: stable
url: https://kubernetes-charts.storage.googleapis.com

environments:
default:
values:
- ../base.yaml
- ../production.yaml

helmDefaults:
atomic: true
timeout: 600
Expand Down
11 changes: 4 additions & 7 deletions helmfile.d/20-hdfs.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
environments:
default:
values:
- ../base.yaml
- ../../etc/production.yaml
secrets:
- ../../secrets/production.yaml
bases:
- ../environments.yaml

---

helmDefaults:
atomic: true
Expand Down
13 changes: 5 additions & 8 deletions helmfile.d/20-ingestion.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
environments:
default:
values:
- ../base.yaml
- ../../etc/production.yaml
secrets:
- ../../secrets/production.yaml
bases:
- ../environments.yaml

---

helmDefaults:
atomic: true
timeout: 600
kubeContext: {{ .Values.kubeContext }}

releases:
- name: cp-kafka-rest
chart: ../cp-helm-charts/charts/cp-kafka-rest
Expand Down
11 changes: 5 additions & 6 deletions helmfile.d/20-kafka-analysis.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
environments:
default:
values:
- ../base.yaml
- ../production.yaml
bases:
- ../environments.yaml

---

helmDefaults:
atomic: true
timeout: 600
kubeContext: {{ .Values.kubeContext }}

releases:
- name: radar-backend-monitor
chart: ../charts/radar-backend
Expand Down
11 changes: 5 additions & 6 deletions helmfile.d/20-redcap.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
environments:
default:
values:
- ../base.yaml
- ../production.yaml
bases:
- ../environments.yaml

---

helmDefaults:
atomic: true
timeout: 600
kubeContext: {{ .Values.kubeContext }}

releases:
- name: radar-integration
chart: ../charts/radar-integration
Expand Down
13 changes: 5 additions & 8 deletions helmfile.d/20-s3.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
bases:
- ../environments.yaml

---

repositories:
- name: stable
url: https://kubernetes-charts.storage.googleapis.com
- name: bitnami
url: https://charts.bitnami.com/bitnami

environments:
default:
values:
- ../base.yaml
- ../../etc/production.yaml
secrets:
- ../../secrets/production.yaml

helmDefaults:
atomic: false
force: true
Expand Down
11 changes: 5 additions & 6 deletions helmfile.d/20-upload.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
environments:
default:
values:
- ../base.yaml
- ../production.yaml
bases:
- ../environments.yaml

---

helmDefaults:
atomic: true
timeout: 600
kubeContext: {{ .Values.kubeContext }}

releases:
- name: radar-upload-postgresql
chart: stable/postgresql
Expand Down
11 changes: 5 additions & 6 deletions helmfile.d/99-velero.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
environments:
default:
values:
- ../base.yaml
- ../production.yaml
bases:
- ../environments.yaml

---

helmDefaults:
atomic: true
force: true
timeout: 600
kubeContext: {{ .Values.kubeContext }}

releases:
- name: velero
chart: ../charts/velero
Expand Down

0 comments on commit a3568f3

Please sign in to comment.