Skip to content

Commit e34450b

Browse files
authored
Add MongoDB charts (#36)
* Add MongoDB Community chart * Update typo in README * Update README of grafana stack Dump version 0.2.2 * Add empty linkerd chart folder * Fix md issue * Add NATS chart * Add MongoDB Bitnami chart * Small updates to cow demo and 2048 game * Update container image repo of game 2048 * Remove s3gw repo * Upgrade keycloak version to upstream chart version 18.7.0 * Update cow-demo to use BSI based image
1 parent c6dc916 commit e34450b

40 files changed

+648
-122
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
temp*.yaml
66
temp.sh
77
/charts/temp/
8-
values_mine.yaml
8+
values_*.y*ml

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ Helm charts to ease the deployment of containers on Kubernetes clusters and get
3030
* [Elasticsearch](charts/elasticsearch/README.md) 🗸
3131
* [MariaDB](charts/mariadb/README.md) 🗸
3232
* [memcached](charts/memcached/README.md)
33-
* [MongoDB](charts/mongodb/README.md)
33+
* [MongoDB (Bitnami)](charts/mongodb-bitnami/README.md) 🗸
34+
* [MongoDB Community](charts/mongodb-community/README.md) 🗸
3435
* [PostgreSQL](charts/postgresql/README.md) 🗸
3536
* [RabbitMQ](charts/rabbitmq/README.md) 🗸
3637
* [Redis](charts/redis/README.md) 🗸
@@ -43,9 +44,10 @@ Helm charts to ease the deployment of containers on Kubernetes clusters and get
4344
* [Kafka](charts/kafka/README.md)
4445
* [Kong](charts/kong/README.md)
4546
* [Let's Encrypt](charts/letsencrypt/README.md) 🗸
47+
* [Linkerd](charts/linkerd/README.md)
4648
* [MetalLB](charts/metallb/README.md)
4749
* [MQTT](charts/mqtt/README.md)
48-
* [NATS](charts/nats/README.md)
50+
* [NATS](charts/nats/README.md) 🗸
4951
* [NGINX Ingress Controller](charts/ingress-nginx/README.md) 🗸
5052
* [Traefik](charts/traefik/README.md) 🗸
5153
* Management
@@ -164,7 +166,7 @@ helm:
164166
### From Rancher
165167
166168
* In your cluster
167-
* Go to "Apps" > "Repositories", click on "Create" and enter "https://devpro.github.io/helm-charts" as "Index URL", then click on "Create"
169+
* Go to "Apps" > "Repositories", click on "Create" and enter `https://devpro.github.io/helm-charts` as "Index URL", then click on "Create"
168170
* Go to "Apps" > "Charts", look at the available applications (charts) and install the one(s) you want
169171

170172
## Cluster setup logic

charts/cow-demo/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ apiVersion: v2
22
name: cow-demo
33
description: Helm chart for Cow Demo Application
44
type: application
5-
version: 0.1.2
6-
appVersion: "1.0.0"
5+
version: 0.2.0
6+
appVersion: "2.0.0"
77
maintainers:
88
- name: devpro
99
email: bertrand@devpro.fr

charts/cow-demo/README.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ Helm chart to deploy cow demonstration application.
77
```bash
88
# lints the chart
99
helm lint .
10+
11+
# creates Kubernetes template file from chart
12+
helm template cow-demo . -f values.yaml --namespace demo > temp.yaml
1013
```
1114

1215
## How to deploy manually
@@ -15,17 +18,13 @@ helm lint .
1518
# gets ingress controller public IP
1619
NGINX_PUBLIC_IP=`kubectl get service -n ingress-nginx ingress-nginx-controller --output jsonpath='{.status.loadBalancer.ingress[0].ip}'`
1720

18-
# creates Kubernetes template file from chart
19-
helm template cow-demo . -f values.yaml \
20-
--namespace demo > temp.yaml
21-
2221
# applies the manifest (add "--debug > output.yaml" in case of issue)
23-
helm upgrade --install cow-demo . -f values.yaml \
24-
--set cow.color=green \
25-
--set host=cow-demo.${NGINX_PUBLIC_IP}.sslip.io \
26-
--set 'ingress.annotations.cert-manager\.io/cluster-issuer=selfsigned-cluster-issuer' \
27-
--set 'ingress.enabled=true' \
28-
--namespace demo --create-namespace
22+
helm upgrade --install cow-demo . -f values.yaml --namespace demo \
23+
--set pet.color=green \
24+
--set host=cow-demo.${NGINX_PUBLIC_IP}.sslip.io \
25+
--set ingress.annotations.'cert-manager\.io/cluster-issuer'=selfsigned-cluster-issuer \
26+
--set ingress.enabled=true \
27+
--create-namespace
2928

3029
# checks everythings is ok
3130
kubectl get all -n demo
@@ -41,8 +40,4 @@ helm delete cow-demo -n demo
4140

4241
### AMD64
4342

44-
* [monachus/rancher-demo](https://hub.docker.com/r/monachus/rancher-demo) ([code](https://github.com/oskapt/rancher-demo))
45-
46-
### ARM64
47-
48-
* [bashofmann/rancher-demo](https://hub.docker.com/r/bashofmann/rancher-demo) ([code](https://github.com/bashofmann/rancher-demo))
43+
* [devprofr/cow-demo](https://hub.docker.com/r/devprofr/cow-demo) ([code](https://github.com/devpro/container-images/tree/main/src/cow-demo))

charts/cow-demo/templates/deployment.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,17 @@ spec:
2020
app.kubernetes.io/name: {{ $name }}
2121
spec:
2222
containers:
23-
- name: {{ $name }}
23+
- name: webapp
2424
image: "{{ $.Values.image }}:{{ $.Values.tag }}"
2525
imagePullPolicy: Always
2626
env:
27-
- name: COW_COLOR
28-
value: {{ $.Values.cow.color }}
27+
- name: CONTAINER_COLOR
28+
value: {{ $.Values.pet.color }}
29+
- name: PETS
30+
value: {{ $.Values.pet.type }}
2931
ports:
30-
- containerPort: 8080
32+
- name: http
33+
containerPort: 8080
3134
protocol: TCP
3235
resources:
3336
{{- toYaml .Values.resources | nindent 12 }}

charts/cow-demo/templates/ingress.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
apiVersion: networking.k8s.io/v1
44
kind: Ingress
55
metadata:
6-
name: {{ $.Values.name }}-ingress
6+
name: {{ $.Values.name }}
77
{{- with $.Values.ingress.annotations }}
88
annotations:
99
{{- toYaml . | nindent 4 }}
@@ -13,20 +13,22 @@ spec:
1313
ingressClassName: {{ $.Values.ingress.className }}
1414
{{- end }}
1515
rules:
16-
- host: {{ $.Values.host }}
16+
- {{- if $.Values.ingress.host }}
17+
host: {{ $.Values.ingress.host }}
18+
{{- end }}
1719
http:
1820
paths:
1921
- path: /
2022
pathType: Prefix
2123
backend:
2224
service:
23-
name: {{ $.Values.name }}-svc
25+
name: {{ $.Values.name }}
2426
port:
25-
number: 80
27+
number: {{ $.Values.port }}
2628
{{- if $.Values.ingress.tls }}
2729
tls:
2830
- hosts:
29-
- {{ $.Values.host | quote }}
31+
- {{ $.Values.ingress.host | quote }}
3032
secretName: {{ $.Values.ingress.tls.secretName }}
3133
{{- end }}
3234
{{- end }}

charts/cow-demo/templates/service.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@
33
apiVersion: v1
44
kind: Service
55
metadata:
6+
name: {{ $name }}
67
labels:
78
app: {{ $name }}
89
app.kubernetes.io/name: {{ $name }}
9-
name: {{ $name }}-svc
1010
spec:
1111
type: ClusterIP
12-
ports:
13-
- port: 80
14-
protocol: TCP
15-
targetPort: 8080
1612
selector:
1713
app: {{ $name }}
1814
app.kubernetes.io/name: {{ $name }}
15+
ports:
16+
- name: http
17+
port: {{ $.Values.port }}
18+
protocol: TCP
19+
targetPort: 8080

charts/cow-demo/values.yaml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
name: cow-demo
2-
image: monachus/rancher-demo
3-
tag: latest
2+
image: devprofr/cow-demo
3+
tag: 1.0.8830193847
44
replicaCount: 2
5-
host: "cow-demo.example.com"
5+
port: 80
66
ingress:
77
enabled: false
88
className: "nginx"
9-
# annotations:
10-
# nginx.ingress.kubernetes.io/ssl-redirect: "false"
11-
# nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
9+
host: ""
10+
annotations: {}
11+
# nginx.ingress.kubernetes.io/ssl-redirect: "false"
12+
# nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
13+
# cert-manager.io/cluster-issuer: letsencrypt-prod
1214
tls:
1315
secretName: "cow-demo-tls"
14-
cow:
15-
color: red
16+
pet:
17+
# choice: cows, chameleons, cowmeleons
18+
type: cows
19+
# choice: red, orange, yellow, olive, green, teal, blue, violet, purple, pink, black
20+
color: blue
1621
resources: {}
1722
# limits:
1823
# cpu: 100m

charts/game-2048/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: game-2048
33
description: Helm chart for Game 2048
44
type: application
5-
version: 0.1.0
5+
version: 0.1.1
66
appVersion: "1.0.0"
77
maintainers:
88
- name: devpro

charts/game-2048/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ spec:
2626
ports:
2727
- name: http
2828
containerPort: 80
29+
protocol: TCP
2930
resources:
3031
{{- toYaml .Values.resources | nindent 12 }}
31-

0 commit comments

Comments
 (0)