Skip to content

Commit

Permalink
Merge pull request #3 from iamyeka/main
Browse files Browse the repository at this point in the history
  • Loading branch information
work-jlsun authored Jan 14, 2023
2 parents 74e8507 + f5d1aa1 commit e8616fa
Show file tree
Hide file tree
Showing 77 changed files with 8,840 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/horizon/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
charts/*.tgz
.DS_Store
23 changes: 23 additions & 0 deletions charts/horizon/.helmignore
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/
42 changes: 42 additions & 0 deletions charts/horizon/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: v2
name: horizon
description: A CICD DevOps Platform

type: application

version: 2.0.1
appVersion: v2.0.1

dependencies:
- name: gitlab
version: 2.0.1
repository: https://horizoncd.github.io/helm-charts
condition: gitlab.enabled
- name: tektoncd
version: 2.0.1
repository: https://horizoncd.github.io/helm-charts
condition: tektoncd.enabled
- name: minio
version: 11.10.13
repository: https://charts.bitnami.com/bitnami
condition: minio.enabled
- name: mysql
version: 9.4.1
repository: https://charts.bitnami.com/bitnami
condition: mysql.enabled
- name: chartmuseum
version: 3.9.1
repository: https://chartmuseum.github.io/charts
condition: chartmuseum.enabled
- name: grafana
version: 6.26.5
repository: https://grafana.github.io/helm-charts
condition: grafana.enabled
- name: argo-cd
version: 5.0.0
repository: https://argoproj.github.io/argo-helm
condition: argo-cd.enabled
- name: harbor
version: 1.6.3
repository: https://helm.goharbor.io
condition: harbor.enabled
449 changes: 449 additions & 0 deletions charts/horizon/README.md

Large diffs are not rendered by default.

21 changes: 21 additions & 0 deletions charts/horizon/charts/redis-ha/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v1
name: redis-ha
home: http://redis.io/
engine: gotpl
keywords:
- redis
- keyvalue
- database
version: 4.12.15
appVersion: 6.0.7
description: This Helm chart provides a highly available Redis implementation with a master/slave configuration and uses Sentinel sidecars for failover management
icon: https://upload.wikimedia.org/wikipedia/en/thumb/6/6b/Redis_Logo.svg/1200px-Redis_Logo.svg.png
maintainers:
- email: [email protected]
name: ssalaues
- email: [email protected]
name: dandydeveloper
sources:
- https://redis.io/download
- https://github.com/DandyDeveloper/charts/blob/master/charts/redis-ha
- https://github.com/oliver006/redis_exporter
292 changes: 292 additions & 0 deletions charts/horizon/charts/redis-ha/README.md

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions charts/horizon/charts/redis-ha/templates/NOTES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Redis can be accessed via {{ if ne (int .Values.redis.port) 0 }}port {{ .Values.redis.port }}{{ end }} {{ if .Values.redis.tlsPort }} tls-port {{ .Values.redis.tlsPort }}{{ end }} and Sentinel can be accessed via {{ if ne (int .Values.sentinel.port) 0 }}port {{ .Values.sentinel.port }}{{ end }} {{ if .Values.sentinel.tlsPort }} tls-port {{ .Values.sentinel.tlsPort }}{{ end }} on the following DNS name from within your cluster:
{{ template "redis-ha.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local

To connect to your Redis server:

{{- if .Values.auth }}
1. To retrieve the redis password:
echo $(kubectl get secret {{ template "redis-ha.fullname" . }} -o "jsonpath={.data['auth']}" | base64 --decode)

2. Connect to the Redis master pod that you can use as a client. By default the {{ template "redis-ha.fullname" . }}-server-0 pod is configured as the master:

kubectl exec -it {{ template "redis-ha.fullname" . }}-server-0 sh -n {{ .Release.Namespace }}

3. Connect using the Redis CLI (inside container):

redis-cli -a <REDIS-PASS-FROM-SECRET>
{{- else }}
1. Run a Redis pod that you can use as a client:

kubectl exec -it {{ template "redis-ha.fullname" . }}-server-0 sh -n {{ .Release.Namespace }}

2. Connect using the Redis CLI:

redis-cli -h {{ template "redis-ha.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local
{{- end }}
Loading

0 comments on commit e8616fa

Please sign in to comment.