Skip to content

Commit

Permalink
feat: added mysql container
Browse files Browse the repository at this point in the history
  • Loading branch information
henrywhitaker3 committed Feb 12, 2024
1 parent 14effb9 commit 3c4c992
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 1 deletion.
23 changes: 23 additions & 0 deletions argo/cluster/databases/mysql/chart/.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/
6 changes: 6 additions & 0 deletions argo/cluster/databases/mysql/chart/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: generic
repository: oci://ghcr.io/henrywhitaker3
version: v1.3.3
digest: sha256:c3074f3ac20f85ce95096de393d0b13aa23d823dfc9c7b09ddfd00ac66dd5959
generated: "2024-01-23T14:04:53.785073571Z"
29 changes: 29 additions & 0 deletions argo/cluster/databases/mysql/chart/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: v2
name: mysql-dev
description: A Helm chart for Kubernetes

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "1.16.0"

dependencies:
- name: generic
version: "v1.3.3"
repository: oci://ghcr.io/henrywhitaker3
34 changes: 34 additions & 0 deletions argo/cluster/databases/mysql/chart/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
generic:
nameOverride: mysql
fullnameOverride: mysql

replicaCount: 1

image:
repository: mysql-8
pullPolicy: Always
tag: latest

service:
portName: mysql
port: 3306

ingress:
enabled: false

pvc:
enabled: true
mountPath: /var/lib/mysql
storageClassName: longhorn
size: 1024M
accessModes:
- ReadWriteOnce

config:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: "true"
MARIADB_ROOT_PASSWORD: ""

probes:
type: tcpSocket
options:
port: mysql
22 changes: 22 additions & 0 deletions argo/cluster/databases/mysql/mysql-dev.app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: mysql
namespace: argo
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: databases
server: https://kubernetes.default.svc
project: apps
source:
path: argo/cluster/databases/mysql/chart
repoURL: https://gitlab.com/henrywhitaker3/homelab.git
targetRevision: HEAD
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
2 changes: 1 addition & 1 deletion terraform/actions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module "actions" {
cores = 2
nameserver = "1.1.1.1 8.8.8.8"
node = 2
disk_size = "8G"
disk_size = "25G"

tags = ["srep", "ubuntu"]
}

0 comments on commit 3c4c992

Please sign in to comment.