Browse Source

Cambios para crear pv en charts

main
Celestino Rey 2 years ago
parent
commit
1823c0e239
79 changed files with 95 additions and 1394 deletions
  1. +0
    -23
      HelmCharts/airsonic-advanced-chart/.helmignore
  2. +0
    -24
      HelmCharts/airsonic-advanced-chart/Chart.yaml
  3. +0
    -78
      HelmCharts/airsonic-advanced-chart/templates/airsonic-advanced-deployment.yaml
  4. +0
    -11
      HelmCharts/airsonic-advanced-chart/templates/registry-secrets.yaml
  5. +0
    -82
      HelmCharts/airsonic-advanced-chart/values.yaml
  6. +0
    -0
      HelmCharts/airsonic-chart/templates/pv-local-airsonic-data.yaml
  7. +0
    -0
      HelmCharts/airsonic-chart/templates/pv-local-airsonic-music.yaml
  8. +0
    -0
      HelmCharts/airsonic-chart/templates/pv-local-airsonic-playlists.yaml
  9. +0
    -0
      HelmCharts/airsonic-chart/templates/pv-local-airsonic-podcasts.yaml
  10. +12
    -0
      HelmCharts/airsonic.sh
  11. +0
    -1
      HelmCharts/entra-airsonic.sh
  12. +0
    -1
      HelmCharts/entra-asa.sh
  13. +0
    -0
      HelmCharts/entra-miweb.sh
  14. +0
    -22
      HelmCharts/helmAirsonic.sh
  15. +0
    -16
      HelmCharts/helmAirsonicadvanced.sh
  16. +0
    -17
      HelmCharts/helmCitas.sh
  17. +0
    -17
      HelmCharts/helmKanboard.sh
  18. +0
    -17
      HelmCharts/helmMediawiki.sh
  19. +0
    -0
      HelmCharts/helmMiweb.sh
  20. +0
    -17
      HelmCharts/helmNextCloud.sh
  21. +0
    -14
      HelmCharts/helmSpagoBI.sh
  22. +0
    -19
      HelmCharts/helmVaultwarden.sh
  23. +0
    -17
      HelmCharts/helmWordpress.sh
  24. +0
    -0
      HelmCharts/kanboard-chart/templates/pv-local-kanboard.yaml
  25. +0
    -0
      HelmCharts/kanboard-chart/templates/pv-local-mysql-kb.yaml
  26. +12
    -0
      HelmCharts/kanboard.sh
  27. +0
    -0
      HelmCharts/mediawiki-chart/templates/pv-local-mediawiki.yaml
  28. +0
    -0
      HelmCharts/mediawiki-chart/templates/pv-local-mysql-mw.yaml
  29. +12
    -0
      HelmCharts/mediawiki.sh
  30. +0
    -0
      HelmCharts/miweb-chart/templates/pv-local-miweb.yaml
  31. +11
    -0
      HelmCharts/miweb.sh
  32. +12
    -1
      HelmCharts/navidrome.sh
  33. +0
    -0
      HelmCharts/nextcloud-chart/templates/pv-local-mysql.yaml
  34. +0
    -0
      HelmCharts/nextcloud-chart/templates/pv-local-nextcloud.yaml
  35. +12
    -0
      HelmCharts/nextcloud.sh
  36. +0
    -4
      HelmCharts/preparaAirsonic/as-namespace.yaml
  37. +0
    -4
      HelmCharts/preparaAirsonicadvanced/asa-namespace.yaml
  38. +0
    -11
      HelmCharts/preparaAirsonicadvanced/pv-local-airsonic-advanced.yaml
  39. +0
    -4
      HelmCharts/preparaCitas/citas-namespace.yaml
  40. +0
    -12
      HelmCharts/preparaCitas/pv-local-citas.yaml
  41. +0
    -11
      HelmCharts/preparaCitas/pv-local-mysql.yaml
  42. +0
    -24
      HelmCharts/preparaKanboard/copyKanboardDB
  43. +0
    -4
      HelmCharts/preparaKanboard/kb-namespace.yaml
  44. +0
    -4
      HelmCharts/preparaMediawiki/mw-namespace.yaml
  45. +0
    -45
      HelmCharts/preparaMiweb/certbot-deployment.yaml
  46. +0
    -22
      HelmCharts/preparaMiweb/miweb-ingress.yaml
  47. +0
    -11
      HelmCharts/preparaMiweb/pv-local-miweb-certbot.yaml
  48. +0
    -11
      HelmCharts/preparaMiweb/pv-local-miweb-conf.yaml
  49. +0
    -4
      HelmCharts/preparaNextCloud/nc-namespace.yaml
  50. +0
    -4
      HelmCharts/preparaSpagoBI/bi-namespace.yaml
  51. +0
    -11
      HelmCharts/preparaSpagoBI/pv-local-mysql.yaml
  52. +0
    -12
      HelmCharts/preparaSpagoBI/pv-local-spagobi.yaml
  53. +0
    -4
      HelmCharts/preparaVaultwarden/vw-namespace.yaml
  54. +0
    -4
      HelmCharts/preparaWordpress/wp-namespace.yaml
  55. +0
    -23
      HelmCharts/spagobi-chart/.helmignore
  56. +0
    -24
      HelmCharts/spagobi-chart/Chart.yaml
  57. +0
    -82
      HelmCharts/spagobi-chart/templates/mysql-deployment.yaml
  58. +0
    -56
      HelmCharts/spagobi-chart/templates/php-deployment.yaml
  59. +0
    -11
      HelmCharts/spagobi-chart/templates/registry-secrets.yaml
  60. +0
    -84
      HelmCharts/spagobi-chart/templates/spagobi-deployment.yaml
  61. +0
    -10
      HelmCharts/spagobi-chart/templates/spagobi-secrets.yaml
  62. +0
    -82
      HelmCharts/spagobi-chart/values.yaml
  63. +0
    -0
      HelmCharts/vaultwarden-chart/templates/issuer-production.yaml
  64. +0
    -0
      HelmCharts/vaultwarden-chart/templates/pv-local-vaultwarden.yaml
  65. +0
    -0
      HelmCharts/vaultwarden-chart/templates/vaultwarden-ingress.yaml
  66. +12
    -0
      HelmCharts/vaultwarden.sh
  67. +0
    -0
      HelmCharts/wordpress-chart/templates/pv-local-mysql.yaml
  68. +0
    -0
      HelmCharts/wordpress-chart/templates/pv-local-wordpress.yaml
  69. +12
    -0
      HelmCharts/wordpress.sh
  70. +0
    -23
      HelmCharts/wpcitas/.helmignore
  71. +0
    -24
      HelmCharts/wpcitas/Chart.yaml
  72. +0
    -22
      HelmCharts/wpcitas/templates/NOTES.txt
  73. +0
    -62
      HelmCharts/wpcitas/templates/_helpers.tpl
  74. +0
    -70
      HelmCharts/wpcitas/templates/mysql-deployment.yaml
  75. +0
    -56
      HelmCharts/wpcitas/templates/php-deployment.yaml
  76. +0
    -11
      HelmCharts/wpcitas/templates/registry-secrets.yaml
  77. +0
    -80
      HelmCharts/wpcitas/templates/wpcitas-deployment.yaml
  78. +0
    -9
      HelmCharts/wpcitas/templates/wpcitas-secrets.yaml
  79. +0
    -82
      HelmCharts/wpcitas/values.yaml

+ 0
- 23
HelmCharts/airsonic-advanced-chart/.helmignore View File

@ -1,23 +0,0 @@
# 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/

+ 0
- 24
HelmCharts/airsonic-advanced-chart/Chart.yaml View File

@ -1,24 +0,0 @@
apiVersion: v2
name: airsonic-advanced-chart
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"

+ 0
- 78
HelmCharts/airsonic-advanced-chart/templates/airsonic-advanced-deployment.yaml View File

@ -1,78 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: airsonic-advanced
namespace: airsonic-advanced
spec:
type: NodePort
ports:
- name: http
#port: 4040
port: 80
nodePort: 30781
targetPort: air-adv-http
selector:
app: airsonic-advanced
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: airsonic-advanced-pv-claim
namespace: airsonic-advanced
labels:
app: airsonic-advanced
spec:
accessModes:
- ReadWriteMany
storageClassName: ""
resources:
requests:
storage: 2Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: airsonic-advanced
namespace: airsonic-advanced
labels:
app: airsonic-advanced
spec:
selector:
matchLabels:
app: airsonic-advanced
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: airsonic-advanced
tier: frontend
spec:
containers:
- image: sentriz/gonic:latest
name: airsonic-advanced
#image: airsonicadvanced/airsonic-advanced
#image: docker-registry:32000/airsonic:1.0
ports:
- containerPort: 80
name: "air-adv-http"
volumeMounts:
- name: airsonic-advanced-www-folder
#mountPath: /var/airsonic
mountPath: /data
- name: airsonic-advanced-www-folder
#mountPath: /var/music
mountPath: /music
- name: airsonic-advanced-www-folder
#mountPath: /var/playlists
mountPath: /cache
- name: airsonic-advanced-www-folder
#mountPath: /var/podcasts
mountPath: /podcasts
imagePullSecrets:
- name: reg-cred-secret
volumes:
- name: airsonic-advanced-www-folder
persistentVolumeClaim:
claimName: airsonic-advanced-pv-claim

+ 0
- 11
HelmCharts/airsonic-advanced-chart/templates/registry-secrets.yaml View File

@ -1,11 +0,0 @@
apiVersion: v1
data:
.dockerconfigjson: eyJhdXRocyI6eyJkb2NrZXItcmVnaXN0cnk6MzIwMDAiOnsidXNlcm5hbWUiOiJjcmV5bG9wZXoiLCJwYXNzd29yZCI6IlJleS0xMTc2IiwiYXV0aCI6IlkzSmxlV3h2Y0dWNk9sSmxlUzB4TVRjMiJ9fX0=
kind: Secret
metadata:
creationTimestamp: "2023-01-29T10:54:14Z"
name: reg-cred-secret
namespace: airsonic-advanced
resourceVersion: "19890385"
uid: 66b3b7c5-26c1-4e5a-af4e-dc973aaafe4b
type: kubernetes.io/dockerconfigjson

+ 0
- 82
HelmCharts/airsonic-advanced-chart/values.yaml View File

@ -1,82 +0,0 @@
# Default values for airsonic-advanced-chart.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: nginx
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: ClusterIP
port: 80
ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}

HelmCharts/preparaAirsonic/pv-local-airsonic-data.yaml → HelmCharts/airsonic-chart/templates/pv-local-airsonic-data.yaml View File


HelmCharts/preparaAirsonic/pv-local-airsonic-music.yaml → HelmCharts/airsonic-chart/templates/pv-local-airsonic-music.yaml View File


HelmCharts/preparaAirsonic/pv-local-airsonic-playlists.yaml → HelmCharts/airsonic-chart/templates/pv-local-airsonic-playlists.yaml View File


HelmCharts/preparaAirsonic/pv-local-airsonic-podcasts.yaml → HelmCharts/airsonic-chart/templates/pv-local-airsonic-podcasts.yaml View File


+ 12
- 0
HelmCharts/airsonic.sh View File

@ -0,0 +1,12 @@
#!/bin/bash
if [ "$1" = "i" ]
then
helm install airsonic ./airsonic-chart --namespace=airsonic --create-namespace
elif [ "$1" = "u" ]
then
helm uninstall airsonic
kubectl delete namespace airsonic
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

+ 0
- 1
HelmCharts/entra-airsonic.sh View File

@ -1 +0,0 @@
kubectl exec -ti deployment.apps/airsonic -n airsonic -- /bin/bash

+ 0
- 1
HelmCharts/entra-asa.sh View File

@ -1 +0,0 @@
kubectl exec -ti deployment.apps/airsonic-advanced -n airsonic-advanced -- /bin/bash

+ 0
- 0
HelmCharts/entra-miweb.sh View File


+ 0
- 22
HelmCharts/helmAirsonic.sh View File

@ -1,22 +0,0 @@
#!/bin/bash
if [ "$1" = "i" ]
then
kubectl apply -f ./preparaAirsonic/as-namespace.yaml
kubectl apply -f ./preparaAirsonic/pv-local-airsonic-data.yaml
kubectl apply -f ./preparaAirsonic/pv-local-airsonic-music.yaml
kubectl apply -f ./preparaAirsonic/pv-local-airsonic-playlists.yaml
kubectl apply -f ./preparaAirsonic/pv-local-airsonic-podcasts.yaml
helm install airsonic airsonic-chart/
elif [ "$1" = "u" ]
then
helm uninstall airsonic
kubectl delete -f ./preparaAirsonic/as-namespace.yaml
kubectl delete -f ./preparaAirsonic/pv-local-airsonic-data.yaml
kubectl delete -f ./preparaAirsonic/pv-local-airsonic-music.yaml
kubectl delete -f ./preparaAirsonic/pv-local-airsonic-playlists.yaml
kubectl delete -f ./preparaAirsonic/pv-local-airsonic-podcasts.yaml
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

+ 0
- 16
HelmCharts/helmAirsonicadvanced.sh View File

@ -1,16 +0,0 @@
#!/bin/bash
if [ "$1" = "i" ]
then
kubectl apply -f ./preparaAirsonicadvanced/asa-namespace.yaml
kubectl apply -f ./preparaAirsonicadvanced/pv-local-airsonic-advanced.yaml
helm install airsonic-advanced airsonic-advanced-chart/
elif [ "$1" = "u" ]
then
helm uninstall airsonic-advanced
kubectl delete -f ./preparaAirsonicadvanced/asa-namespace.yaml
kubectl delete -f ./preparaAirsonicadvanced/pv-local-airsonic-advanced.yaml
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

+ 0
- 17
HelmCharts/helmCitas.sh View File

@ -1,17 +0,0 @@
#!/bin/bash
if [ "$1" = "i" ]
then
kubectl apply -f ./preparaCitas/citas-namespace.yaml
kubectl apply -f ./preparaCitas/pv-local-mysql.yaml
kubectl apply -f ./preparaCitas/pv-local-citas.yaml
helm install wpcitas wpcitas/
elif [ "$1" = "u" ]
then
helm uninstall wpcitas
kubectl delete -f ./preparaCitas/citas-namespace.yaml
kubectl delete -f ./preparaCitas/pv-local-mysql.yaml
kubectl delete -f ./preparaCitas/pv-local-citas.yaml
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

+ 0
- 17
HelmCharts/helmKanboard.sh View File

@ -1,17 +0,0 @@
#!/bin/bash
if [ "$1" = "i" ]
then
kubectl apply -f ./preparaKanboard/kb-namespace.yaml
kubectl apply -f ./preparaKanboard/pv-local-mysql-kb.yaml
kubectl apply -f ./preparaKanboard/pv-local-kanboard.yaml
helm install kanboard kanboard-chart/
elif [ "$1" = "u" ]
then
helm uninstall kanboard
kubectl delete -f ./preparaKanboard/kb-namespace.yaml
kubectl delete -f ./preparaKanboard/pv-local-mysql-kb.yaml
kubectl delete -f ./preparaKanboard/pv-local-kanboard.yaml
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

+ 0
- 17
HelmCharts/helmMediawiki.sh View File

@ -1,17 +0,0 @@
#!/bin/bash
if [ "$1" = "i" ]
then
kubectl apply -f ./preparaMediawiki/mw-namespace.yaml
kubectl apply -f ./preparaMediawiki/pv-local-mysql-mw.yaml
kubectl apply -f ./preparaMediawiki/pv-local-mediawiki.yaml
helm install mediawiki mediawiki-chart/
elif [ "$1" = "u" ]
then
helm uninstall mediawiki
kubectl delete -f ./preparaMediawiki/mw-namespace.yaml
kubectl delete -f ./preparaMediawiki/pv-local-mysql-mw.yaml
kubectl delete -f ./preparaMediawiki/pv-local-mediawiki.yaml
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

+ 0
- 0
HelmCharts/helmMiweb.sh View File


+ 0
- 17
HelmCharts/helmNextCloud.sh View File

@ -1,17 +0,0 @@
#!/bin/bash
if [ "$1" = "i" ]
then
kubectl apply -f ./preparaNextCloud/nc-namespace.yaml
kubectl apply -f ./preparaNextCloud/pv-local-mysql.yaml
kubectl apply -f ./preparaNextCloud/pv-local-nextcloud.yaml
helm install nextcloud nextcloud-chart/
elif [ "$1" = "u" ]
then
helm uninstall nextcloud
kubectl delete -f ./preparaNextCloud/nc-namespace.yaml
kubectl delete -f ./preparaNextCloud/pv-local-mysql.yaml
kubectl delete -f ./preparaNextCloud/pv-local-nextcloud.yaml
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

+ 0
- 14
HelmCharts/helmSpagoBI.sh View File

@ -1,14 +0,0 @@
#!/bin/bash
if [ "$1" = "i" ]
then
kubectl apply -f ./preparaSpagoBI/bi-namespace.yaml
kubectl apply -f ./preparaSpagoBI/pv-local-mysql.yaml
kubectl apply -f ./preparaSpagoBI/pv-local-spagobi.yaml
helm install spagobi spagobi-chart/
else
helm uninstall spagobi
kubectl delete -f ./preparaSpagoBI/bi-namespace.yaml
kubectl delete -f ./preparaSpagoBI/pv-local-mysql.yaml
kubectl delete -f ./preparaSpagoBI/pv-local-spagobi.yaml
fi

+ 0
- 19
HelmCharts/helmVaultwarden.sh View File

@ -1,19 +0,0 @@
#!/bin/bash
if [ "$1" = "i" ]
then
kubectl apply -f ./preparaVaultwarden/vw-namespace.yaml
kubectl apply -f ./preparaVaultwarden/pv-local-vaultwarden.yaml
kubectl create -f ./preparaVaultwarden/issuer-production.yaml
helm install vaultwarden vaultwarden-chart/
kubectl apply -f ./preparaVaultwarden/vaultwarden-ingress.yaml
elif [ "$1" = "u" ]
then
kubectl delete -f ./preparaVaultwarden/vaultwarden-ingress.yaml
helm uninstall vaultwarden
kubectl delete -f ./preparaVaultwarden/issuer-production.yaml
kubectl delete -f ./preparaVaultwarden/vw-namespace.yaml
kubectl delete -f ./preparaVaultwarden/pv-local-vaultwarden.yaml
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

+ 0
- 17
HelmCharts/helmWordpress.sh View File

@ -1,17 +0,0 @@
#!/bin/bash
if [ "$1" = "i" ]
then
kubectl apply -f ./preparaWordpress/wp-namespace.yaml
kubectl apply -f ./preparaWordpress/pv-local-mysql.yaml
kubectl apply -f ./preparaWordpress/pv-local-wordpress.yaml
helm install wordpress wordpress-chart/
elif [ "$1" = "u" ]
then
helm uninstall wordpress
kubectl delete -f ./preparaWordpress/wp-namespace.yaml
kubectl delete -f ./preparaWordpress/pv-local-mysql.yaml
kubectl delete -f ./preparaWordpress/pv-local-wordpress.yaml
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

HelmCharts/preparaKanboard/pv-local-kanboard.yaml → HelmCharts/kanboard-chart/templates/pv-local-kanboard.yaml View File


HelmCharts/preparaKanboard/pv-local-mysql-kb.yaml → HelmCharts/kanboard-chart/templates/pv-local-mysql-kb.yaml View File


+ 12
- 0
HelmCharts/kanboard.sh View File

@ -0,0 +1,12 @@
#!/bin/bash
if [ "$1" = "i" ]
then
helm install kanboard ./kanboard-chart --namespace=kanboard --create-namespace
elif [ "$1" = "u" ]
then
helm uninstall kanboard
kubectl delete namespace kanboard
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

HelmCharts/preparaMediawiki/pv-local-mediawiki.yaml → HelmCharts/mediawiki-chart/templates/pv-local-mediawiki.yaml View File


HelmCharts/preparaMediawiki/pv-local-mysql-mw.yaml → HelmCharts/mediawiki-chart/templates/pv-local-mysql-mw.yaml View File


+ 12
- 0
HelmCharts/mediawiki.sh View File

@ -0,0 +1,12 @@
#!/bin/bash
if [ "$1" = "i" ]
then
helm install mediawiki ./mediawiki-chart --namespace=mediawiki --create-namespace
elif [ "$1" = "u" ]
then
helm uninstall mediawiki
kubectl delete namespace mediawiki
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

HelmCharts/preparaMiweb/pv-local-miweb.yaml → HelmCharts/miweb-chart/templates/pv-local-miweb.yaml View File


+ 11
- 0
HelmCharts/miweb.sh View File

@ -0,0 +1,11 @@
#!/bin/bash
if [ "$1" = "i" ]
then
helm install miweb ./miweb-chart
elif [ "$1" = "u" ]
then
helm uninstall miweb
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

+ 12
- 1
HelmCharts/navidrome.sh View File

@ -1 +1,12 @@
helm install navidrome ./navidrome-chart --namespace=navidrome --create-namespace
#!/bin/bash
if [ "$1" = "i" ]
then
helm install navidrome ./navidrome-chart --namespace=navidrome --create-namespace
elif [ "$1" = "u" ]
then
helm uninstall navidrome
kubectl delete namespace navidrome
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

HelmCharts/preparaNextCloud/pv-local-mysql.yaml → HelmCharts/nextcloud-chart/templates/pv-local-mysql.yaml View File


HelmCharts/preparaNextCloud/pv-local-nextcloud.yaml → HelmCharts/nextcloud-chart/templates/pv-local-nextcloud.yaml View File


+ 12
- 0
HelmCharts/nextcloud.sh View File

@ -0,0 +1,12 @@
#!/bin/bash
if [ "$1" = "i" ]
then
helm install nextcloud ./nextcloud-chart --namespace=nextcloud --create-namespace
elif [ "$1" = "u" ]
then
helm uninstall nextcloud
kubectl delete namespace nextcloud
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

+ 0
- 4
HelmCharts/preparaAirsonic/as-namespace.yaml View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: airsonic

+ 0
- 4
HelmCharts/preparaAirsonicadvanced/asa-namespace.yaml View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: airsonic-advanced

+ 0
- 11
HelmCharts/preparaAirsonicadvanced/pv-local-airsonic-advanced.yaml View File

@ -1,11 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: airsonic-advanced-data-folder
spec:
capacity:
storage: 2Gi
accessModes:
- ReadWriteMany
hostPath:
path: "/mnt/Externo/airsonic-advanced"

+ 0
- 4
HelmCharts/preparaCitas/citas-namespace.yaml View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: wpcitas

+ 0
- 12
HelmCharts/preparaCitas/pv-local-citas.yaml View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: citas-folder
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/cluster/wpcitas/wpcitas-citas"

+ 0
- 11
HelmCharts/preparaCitas/pv-local-mysql.yaml View File

@ -1,11 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: citas-data
spec:
capacity:
storage: 20Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/cluster/wpcitas/wpcitas-db"

+ 0
- 24
HelmCharts/preparaKanboard/copyKanboardDB View File

@ -1,24 +0,0 @@
# Backup date
today=$(date "+%Y_%m_%d-%H_%M_%S")
echo "Current date: $today"
# build up filename
# destination folder (change to your own needs)
BACKUP_FOLDER=/tmp
file_name=$BACKUP_FOLDER/bkup_kanboard
new_name=$file_name-$today.sql
echo "Backup file name: " "$new_name"
#sudo docker exec `sudo docker container ls | grep mysql_kanboard | cut -f1 -d' '` /usr/bin/mysqldump -u root --password=Dsa-0213 kanboard > $new_name
sudo kubectl --kubeconfig /home/creylopez/.kube/config exec `kubectl --kubeconfig /home/creylopez/.kube/config get pod -n kanboard|grep mysql|cut -f1 -d' '` -n kanboard -- /usr/bin/mysqldump -u root --password=Dsa-0213 kanboard > $new_name
message="Backup stored "$today
sudo -u creylopez cat $new_name | mail -s "Kanboard backup finished" "creylopez@yahoo.es"
sudo rm $new_name

+ 0
- 4
HelmCharts/preparaKanboard/kb-namespace.yaml View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: kanboard

+ 0
- 4
HelmCharts/preparaMediawiki/mw-namespace.yaml View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: mediawiki

+ 0
- 45
HelmCharts/preparaMiweb/certbot-deployment.yaml View File

@ -1,45 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: miweb-certbot-pv-claim
labels:
app: miweb
spec:
accessModes:
- ReadWriteMany
storageClassName: ""
resources:
requests:
storage: 200M
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: miweb-certbot
labels:
app: miweb
spec:
selector:
matchLabels:
app: miweb
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: miweb
tier: frontend
spec:
containers:
- name: certbot
image: certbot/certbot:latest
volumeMounts:
- name: miweb-certbot-folder
mountPath: /var/www/certbot
imagePullSecrets:
- name: reg-cred-secret
volumes:
- name: miweb-certbot-folder
persistentVolumeClaim:
claimName: miweb-certbot-pv-claim

+ 0
- 22
HelmCharts/preparaMiweb/miweb-ingress.yaml View File

@ -1,22 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: miweb-ingress
namespace: default
spec:
ingressClassName: nginx
tls:
- hosts:
- reymota.ddns.net
secretName: ingress-cert
rules:
- host: "reymota.ddns.net"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: miweb
port:
number: 80

+ 0
- 11
HelmCharts/preparaMiweb/pv-local-miweb-certbot.yaml View File

@ -1,11 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: miweb-certbot-folder
spec:
capacity:
storage: 200M
accessModes:
- ReadWriteMany
hostPath:
path: "/mnt/cluster/miweb/certbot"

+ 0
- 11
HelmCharts/preparaMiweb/pv-local-miweb-conf.yaml View File

@ -1,11 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: miweb-conf-folder
spec:
capacity:
storage: 100M
accessModes:
- ReadWriteMany
hostPath:
path: "/mnt/cluster/miweb/conf"

+ 0
- 4
HelmCharts/preparaNextCloud/nc-namespace.yaml View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: nextcloud

+ 0
- 4
HelmCharts/preparaSpagoBI/bi-namespace.yaml View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: spagobi

+ 0
- 11
HelmCharts/preparaSpagoBI/pv-local-mysql.yaml View File

@ -1,11 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: bi-data
spec:
capacity:
storage: 20Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/Externo/spagobi/spagobi-db"

+ 0
- 12
HelmCharts/preparaSpagoBI/pv-local-spagobi.yaml View File

@ -1,12 +0,0 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: bi-folder
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/Externo/spagobi/spagobi-bi"

+ 0
- 4
HelmCharts/preparaVaultwarden/vw-namespace.yaml View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: vaultwarden

+ 0
- 4
HelmCharts/preparaWordpress/wp-namespace.yaml View File

@ -1,4 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: wordpress

+ 0
- 23
HelmCharts/spagobi-chart/.helmignore View File

@ -1,23 +0,0 @@
# 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/

+ 0
- 24
HelmCharts/spagobi-chart/Chart.yaml View File

@ -1,24 +0,0 @@
apiVersion: v2
name: spagobi-chart
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"

+ 0
- 82
HelmCharts/spagobi-chart/templates/mysql-deployment.yaml View File

@ -1,82 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: spagobi-mysql
namespace: spagobi
labels:
app: spagobi
spec:
ports:
- port: 3306
selector:
app: spagobi
tier: mysql
clusterIP: None
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mysql-bi-pv-claim
namespace: spagobi
labels:
app: spagobi
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: spagobi-mysql
namespace: spagobi
labels:
app: spagobi
spec:
selector:
matchLabels:
app: spagobi
tier: mysql
strategy:
type: Recreate
template:
metadata:
labels:
app: spagobi
tier: mysql
spec:
containers:
- image: docker-registry:32000/mariadb:1.0
name: mysql
env:
- name: MYSQL_USER
valueFrom:
secretKeyRef:
name: mysqlbi-pass
key: db_user
- name: MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: mysqlbi-pass
key: db_pass
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mysqlbi-pass
key: db_root_pass
- name: MYSQL_DATABASE
value: spagobi
ports:
- containerPort: 3306
name: mysql
volumeMounts:
- name: mysql-persistent-storage
mountPath: /var/lib/mysql
imagePullSecrets:
- name: reg-cred-secret
volumes:
- name: mysql-persistent-storage
persistentVolumeClaim:
claimName: mysql-bi-pv-claim

+ 0
- 56
HelmCharts/spagobi-chart/templates/php-deployment.yaml View File

@ -1,56 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: phpmyadmin-spagobi
namespace: spagobi
labels:
app: spagobi
spec:
selector:
app: spagobi
tier: phpmyadmin
type: NodePort
ports:
- name: phpadmin
port: 80
nodePort: 30680
targetPort: phpmyadm
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: phpmyadmin-spagobi
namespace: spagobi
labels:
app: spagobi
spec:
selector:
matchLabels:
app: spagobi
tier: phpmyadmin
strategy:
type: Recreate
template:
metadata:
labels:
app: spagobi
tier: phpmyadmin
spec:
containers:
- name: phpmyadmin
image: docker-registry:32000/phpmyadmin:1.0
ports:
- containerPort: 80
name: phpmyadm
env:
- name: PMA_HOST
value: spagobi-mysql
- name: PMA_PORT
value: "3306"
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mysqlbi-pass
key: password
imagePullSecrets:
- name: reg-cred-secret

+ 0
- 11
HelmCharts/spagobi-chart/templates/registry-secrets.yaml View File

@ -1,11 +0,0 @@
apiVersion: v1
data:
.dockerconfigjson: eyJhdXRocyI6eyJkb2NrZXItcmVnaXN0cnk6MzIwMDAiOnsidXNlcm5hbWUiOiJjcmV5bG9wZXoiLCJwYXNzd29yZCI6IlJleS0xMTc2IiwiYXV0aCI6IlkzSmxlV3h2Y0dWNk9sSmxlUzB4TVRjMiJ9fX0=
kind: Secret
metadata:
creationTimestamp: "2023-01-29T10:54:14Z"
name: reg-cred-secret
namespace: spagobi
resourceVersion: "19890385"
uid: 66b3b7c5-26c1-4e5a-af4e-dc973aaafe4b
type: kubernetes.io/dockerconfigjson

+ 0
- 84
HelmCharts/spagobi-chart/templates/spagobi-deployment.yaml View File

@ -1,84 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: spagobi
namespace: spagobi
labels:
app: spagobi
spec:
type: NodePort
ports:
- port: 8080
nodePort: 30188
targetPort: spagobi
selector:
app: spagobi
tier: frontend
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: bi-pv-claim
namespace: spagobi
labels:
app: spagobi
spec:
accessModes:
- ReadWriteOnce
storageClassName: ""
resources:
requests:
storage: 10Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: spagobi
namespace: spagobi
labels:
app: spagobi
spec:
selector:
matchLabels:
app: spagobi
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: spagobi
tier: frontend
spec:
containers:
- image: docker-registry:32000/spagobi:1.0
name: spagobi
env:
- name: DB_ENV_MYSQL_USER
valueFrom:
secretKeyRef:
name: mysqlbi-pass
key: db_user
- name: DB_ENV_MYSQL_PASSWORD
valueFrom:
secretKeyRef:
name: mysqlbi-pass
key: db_pass
- name: DB_ENV_MYSQL_DATABASE
value: spagobi
- name: DB_PORT_3306_TCP_ADDR
value: spagobi-mysql
- name: DB_PORT_3306_TCP_PORT
value: "3306"
ports:
- containerPort: 8080
name: spagobi
#volumeMounts:
#- name: spagobi-persistent-storage
#mountPath: /var/www/html
imagePullSecrets:
- name: reg-cred-secret
volumes:
- name: spagobi-persistent-storage
persistentVolumeClaim:
claimName: bi-pv-claim

+ 0
- 10
HelmCharts/spagobi-chart/templates/spagobi-secrets.yaml View File

@ -1,10 +0,0 @@
apiVersion: v1
kind: Secret
metadata:
name: mysqlbi-pass
namespace: spagobi
data:
password: RHNhLTAyMTM=
db_user: cm9vdA==
db_pass: RHNhLTAyMTM=
db_root_pass: RHNhLTAyMTM=

+ 0
- 82
HelmCharts/spagobi-chart/values.yaml View File

@ -1,82 +0,0 @@
# Default values for wordpress-chart.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: docker-registry:32000
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
imagePullSecrets: [reg-cred-secret]
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: NodePort
port: 80
ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}

HelmCharts/preparaVaultwarden/issuer-production.yaml → HelmCharts/vaultwarden-chart/templates/issuer-production.yaml View File


HelmCharts/preparaVaultwarden/pv-local-vaultwarden.yaml → HelmCharts/vaultwarden-chart/templates/pv-local-vaultwarden.yaml View File


HelmCharts/preparaVaultwarden/vaultwarden-ingress.yaml → HelmCharts/vaultwarden-chart/templates/vaultwarden-ingress.yaml View File


+ 12
- 0
HelmCharts/vaultwarden.sh View File

@ -0,0 +1,12 @@
#!/bin/bash
if [ "$1" = "i" ]
then
helm install vaultwarden ./vaultwarden-chart --namespace=vaultwarden --create-namespace
elif [ "$1" = "u" ]
then
helm uninstall vaultwarden
kubectl delete namespace vaultwarden
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

HelmCharts/preparaWordpress/pv-local-mysql.yaml → HelmCharts/wordpress-chart/templates/pv-local-mysql.yaml View File


HelmCharts/preparaWordpress/pv-local-wordpress.yaml → HelmCharts/wordpress-chart/templates/pv-local-wordpress.yaml View File


+ 12
- 0
HelmCharts/wordpress.sh View File

@ -0,0 +1,12 @@
#!/bin/bash
if [ "$1" = "i" ]
then
helm install wordpress ./wordpress-chart --namespace=wordpress --create-namespace
elif [ "$1" = "u" ]
then
helm uninstall wordpress
kubectl delete namespace wordpress
else
echo "Falta comando: i=instalar, u=desinstalar"
fi

+ 0
- 23
HelmCharts/wpcitas/.helmignore View File

@ -1,23 +0,0 @@
# 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/

+ 0
- 24
HelmCharts/wpcitas/Chart.yaml View File

@ -1,24 +0,0 @@
apiVersion: v2
name: wpcitas
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"

+ 0
- 22
HelmCharts/wpcitas/templates/NOTES.txt View File

@ -1,22 +0,0 @@
1. Get the application URL by running these commands:
{{- if .Values.ingress.enabled }}
{{- range $host := .Values.ingress.hosts }}
{{- range .paths }}
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
{{- end }}
{{- end }}
{{- else if contains "NodePort" .Values.service.type }}
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "wpcitas.fullname" . }})
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT
{{- else if contains "LoadBalancer" .Values.service.type }}
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "wpcitas.fullname" . }}'
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "wpcitas.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "wpcitas.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}")
echo "Visit http://127.0.0.1:8080 to use your application"
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT
{{- end }}

+ 0
- 62
HelmCharts/wpcitas/templates/_helpers.tpl View File

@ -1,62 +0,0 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "wpcitas.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "wpcitas.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.nameOverride }}
{{- if contains $name .Release.Name }}
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
{{- end }}
{{- end }}
{{- end }}
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "wpcitas.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}
{{/*
Common labels
*/}}
{{- define "wpcitas.labels" -}}
helm.sh/chart: {{ include "wpcitas.chart" . }}
{{ include "wpcitas.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end }}
{{/*
Selector labels
*/}}
{{- define "wpcitas.selectorLabels" -}}
app.kubernetes.io/name: {{ include "wpcitas.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}
{{/*
Create the name of the service account to use
*/}}
{{- define "wpcitas.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "wpcitas.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
{{- end }}

+ 0
- 70
HelmCharts/wpcitas/templates/mysql-deployment.yaml View File

@ -1,70 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: wpcitas-mysql
namespace: wpcitas
labels:
app: wpcitas
spec:
ports:
- port: 3306
selector:
app: wpcitas
tier: mysql
clusterIP: None
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mysql-citas-pv-claim
namespace: wpcitas
labels:
app: wpcitas
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wpcitas-mysql
namespace: wpcitas
labels:
app: wpcitas
spec:
selector:
matchLabels:
app: wpcitas
tier: mysql
strategy:
type: Recreate
template:
metadata:
labels:
app: wpcitas
tier: mysql
spec:
containers:
- image: docker-registry:32000/mariadb:1.0
name: mysql
env:
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mysqlcitas-pass
key: password
ports:
- containerPort: 3306
name: mysql
volumeMounts:
- name: mysql-persistent-storage
mountPath: /var/lib/mysql
imagePullSecrets:
- name: reg-cred-secret
volumes:
- name: mysql-persistent-storage
persistentVolumeClaim:
claimName: mysql-citas-pv-claim

+ 0
- 56
HelmCharts/wpcitas/templates/php-deployment.yaml View File

@ -1,56 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: phpmyadmin-wpcitas
namespace: wpcitas
labels:
app: wpcitas
spec:
selector:
app: wpcitas
tier: phpmyadmin
type: NodePort
ports:
- name: phpadmin
port: 80
nodePort: 30680
targetPort: phpmyadm
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: phpmyadmin-wpcitas
namespace: wpcitas
labels:
app: wpcitas
spec:
selector:
matchLabels:
app: wpcitas
tier: phpmyadmin
strategy:
type: Recreate
template:
metadata:
labels:
app: wpcitas
tier: phpmyadmin
spec:
containers:
- name: phpmyadmin
image: docker-registry:32000/phpmyadmin:1.0
ports:
- containerPort: 80
name: phpmyadm
env:
- name: PMA_HOST
value: wpcitas-mysql
- name: PMA_PORT
value: "3306"
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mysqlcitas-pass
key: password
imagePullSecrets:
- name: reg-cred-secret

+ 0
- 11
HelmCharts/wpcitas/templates/registry-secrets.yaml View File

@ -1,11 +0,0 @@
apiVersion: v1
data:
.dockerconfigjson: eyJhdXRocyI6eyJkb2NrZXItcmVnaXN0cnk6MzIwMDAiOnsidXNlcm5hbWUiOiJjcmV5bG9wZXoiLCJwYXNzd29yZCI6IlJleS0xMTc2IiwiYXV0aCI6IlkzSmxlV3h2Y0dWNk9sSmxlUzB4TVRjMiJ9fX0=
kind: Secret
metadata:
creationTimestamp: "2023-01-29T10:54:14Z"
name: reg-cred-secret
namespace: wpcitas
resourceVersion: "19890385"
uid: 66b3b7c5-26c1-4e5a-af4e-dc973aaafe4b
type: kubernetes.io/dockerconfigjson

+ 0
- 80
HelmCharts/wpcitas/templates/wpcitas-deployment.yaml View File

@ -1,80 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: wpcitas
namespace: wpcitas
labels:
app: wpcitas
spec:
type: NodePort
ports:
- port: 80
nodePort: 30440
targetPort: wpcitas
selector:
app: wpcitas
tier: frontend
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: citas-pv-claim
namespace: wpcitas
labels:
app: wpcitas
spec:
accessModes:
- ReadWriteOnce
storageClassName: ""
resources:
requests:
storage: 10Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wpcitas
namespace: wpcitas
labels:
app: wpcitas
spec:
selector:
matchLabels:
app: wpcitas
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: wpcitas
tier: frontend
spec:
containers:
- image: docker-registry:32000/wordpress:1.0
name: wpcitas
env:
- name: WORDPRESS_DB_HOST
value: wpcitas-mysql
- name: WORDPRESS_DB_PASSWORD
valueFrom:
secretKeyRef:
name: mysqlcitas-pass
key: password
- name: WORDPRESS_DB_USER
valueFrom:
secretKeyRef:
name: mysqlcitas-pass
key: db_user
ports:
- containerPort: 80
name: wpcitas
volumeMounts:
- name: wpcitas-persistent-storage
mountPath: /var/www/html
imagePullSecrets:
- name: reg-cred-secret
volumes:
- name: wpcitas-persistent-storage
persistentVolumeClaim:
claimName: citas-pv-claim

+ 0
- 9
HelmCharts/wpcitas/templates/wpcitas-secrets.yaml View File

@ -1,9 +0,0 @@
apiVersion: v1
kind: Secret
metadata:
name: mysqlcitas-pass
namespace: wpcitas
data:
password: RHNhLTAyMTM=
db_user: cm9vdA==
db_passwd: RHNhLTAyMTM=

+ 0
- 82
HelmCharts/wpcitas/values.yaml View File

@ -1,82 +0,0 @@
# Default values for wordpress-chart.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
replicaCount: 1
image:
repository: docker-registry:32000
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: ""
imagePullSecrets: [reg-cred-secret]
nameOverride: ""
fullnameOverride: ""
serviceAccount:
# Specifies whether a service account should be created
create: true
# Annotations to add to the service account
annotations: {}
# The name of the service account to use.
# If not set and create is true, a name is generated using the fullname template
name: ""
podAnnotations: {}
podSecurityContext: {}
# fsGroup: 2000
securityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
service:
type: NodePort
port: 80
ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80
nodeSelector: {}
tolerations: []
affinity: {}

Loading…
Cancel
Save