Skip to content

Commit

Permalink
base templates
Browse files Browse the repository at this point in the history
  • Loading branch information
kuzxnia committed Jan 22, 2024
1 parent 32acf8c commit b48a491
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 0 deletions.
23 changes: 23 additions & 0 deletions helm/.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/
10 changes: 10 additions & 0 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v2
name: tasks
description: A Helm chart that allows deploy multiple instances of workload drivers

type: application
version: 0.1.0
appVersion: "0.1.0"
dependencies:
- name: workload
version: 0.1.0
6 changes: 6 additions & 0 deletions helm/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: workload-cfg
data:
hello: world
26 changes: 26 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: workload
namespace: {{ .Values.global.namespace }}
spec:
replicas: 1
selector:
matchLabels:
role: workload
mongodb_clustername: {{ .Values.global.cluster.name }}
strategy:
type: Recreate
template:
metadata:
labels:
role: workload
mongodb_clustername: {{ .Values.global.cluster.name }}
spec:
containers:
- name: load-driver
image: {{ .Values.workload.image }}
command: ["{{ .Values.workload.command }}"]
args: ["{{ .Values.workload.args }}"]
ports:
- containerPort: 22
Empty file added helm/values.yaml
Empty file.

0 comments on commit b48a491

Please sign in to comment.