diff --git a/HelmCharts/airsonic-advanced-chart/.helmignore b/HelmCharts/airsonic-advanced-chart/.helmignore deleted file mode 100644 index 0e8a0eb3..00000000 --- a/HelmCharts/airsonic-advanced-chart/.helmignore +++ /dev/null @@ -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/ diff --git a/HelmCharts/airsonic-advanced-chart/Chart.yaml b/HelmCharts/airsonic-advanced-chart/Chart.yaml deleted file mode 100644 index dfa3d982..00000000 --- a/HelmCharts/airsonic-advanced-chart/Chart.yaml +++ /dev/null @@ -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" diff --git a/HelmCharts/airsonic-advanced-chart/templates/airsonic-advanced-deployment.yaml b/HelmCharts/airsonic-advanced-chart/templates/airsonic-advanced-deployment.yaml deleted file mode 100644 index 545c093d..00000000 --- a/HelmCharts/airsonic-advanced-chart/templates/airsonic-advanced-deployment.yaml +++ /dev/null @@ -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 diff --git a/HelmCharts/airsonic-advanced-chart/templates/registry-secrets.yaml b/HelmCharts/airsonic-advanced-chart/templates/registry-secrets.yaml deleted file mode 100644 index 4c2619dd..00000000 --- a/HelmCharts/airsonic-advanced-chart/templates/registry-secrets.yaml +++ /dev/null @@ -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 diff --git a/HelmCharts/airsonic-advanced-chart/values.yaml b/HelmCharts/airsonic-advanced-chart/values.yaml deleted file mode 100644 index e8474eab..00000000 --- a/HelmCharts/airsonic-advanced-chart/values.yaml +++ /dev/null @@ -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: {} diff --git a/HelmCharts/preparaAirsonic/pv-local-airsonic-data.yaml b/HelmCharts/airsonic-chart/templates/pv-local-airsonic-data.yaml similarity index 100% rename from HelmCharts/preparaAirsonic/pv-local-airsonic-data.yaml rename to HelmCharts/airsonic-chart/templates/pv-local-airsonic-data.yaml diff --git a/HelmCharts/preparaAirsonic/pv-local-airsonic-music.yaml b/HelmCharts/airsonic-chart/templates/pv-local-airsonic-music.yaml similarity index 100% rename from HelmCharts/preparaAirsonic/pv-local-airsonic-music.yaml rename to HelmCharts/airsonic-chart/templates/pv-local-airsonic-music.yaml diff --git a/HelmCharts/preparaAirsonic/pv-local-airsonic-playlists.yaml b/HelmCharts/airsonic-chart/templates/pv-local-airsonic-playlists.yaml similarity index 100% rename from HelmCharts/preparaAirsonic/pv-local-airsonic-playlists.yaml rename to HelmCharts/airsonic-chart/templates/pv-local-airsonic-playlists.yaml diff --git a/HelmCharts/preparaAirsonic/pv-local-airsonic-podcasts.yaml b/HelmCharts/airsonic-chart/templates/pv-local-airsonic-podcasts.yaml similarity index 100% rename from HelmCharts/preparaAirsonic/pv-local-airsonic-podcasts.yaml rename to HelmCharts/airsonic-chart/templates/pv-local-airsonic-podcasts.yaml diff --git a/HelmCharts/airsonic.sh b/HelmCharts/airsonic.sh new file mode 100755 index 00000000..b0c79fdf --- /dev/null +++ b/HelmCharts/airsonic.sh @@ -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 diff --git a/HelmCharts/entra-airsonic.sh b/HelmCharts/entra-airsonic.sh deleted file mode 100644 index a824a540..00000000 --- a/HelmCharts/entra-airsonic.sh +++ /dev/null @@ -1 +0,0 @@ -kubectl exec -ti deployment.apps/airsonic -n airsonic -- /bin/bash diff --git a/HelmCharts/entra-asa.sh b/HelmCharts/entra-asa.sh deleted file mode 100644 index bf07f65b..00000000 --- a/HelmCharts/entra-asa.sh +++ /dev/null @@ -1 +0,0 @@ -kubectl exec -ti deployment.apps/airsonic-advanced -n airsonic-advanced -- /bin/bash diff --git a/HelmCharts/entra-miweb.sh b/HelmCharts/entra-miweb.sh old mode 100644 new mode 100755 diff --git a/HelmCharts/helmAirsonic.sh b/HelmCharts/helmAirsonic.sh deleted file mode 100644 index 2bf40bfa..00000000 --- a/HelmCharts/helmAirsonic.sh +++ /dev/null @@ -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 - diff --git a/HelmCharts/helmAirsonicadvanced.sh b/HelmCharts/helmAirsonicadvanced.sh deleted file mode 100644 index 49a931da..00000000 --- a/HelmCharts/helmAirsonicadvanced.sh +++ /dev/null @@ -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 - diff --git a/HelmCharts/helmCitas.sh b/HelmCharts/helmCitas.sh deleted file mode 100644 index ddc89601..00000000 --- a/HelmCharts/helmCitas.sh +++ /dev/null @@ -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 diff --git a/HelmCharts/helmKanboard.sh b/HelmCharts/helmKanboard.sh deleted file mode 100644 index a9082cc0..00000000 --- a/HelmCharts/helmKanboard.sh +++ /dev/null @@ -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 diff --git a/HelmCharts/helmMediawiki.sh b/HelmCharts/helmMediawiki.sh deleted file mode 100644 index c5ba66e5..00000000 --- a/HelmCharts/helmMediawiki.sh +++ /dev/null @@ -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 diff --git a/HelmCharts/helmMiweb.sh b/HelmCharts/helmMiweb.sh old mode 100644 new mode 100755 diff --git a/HelmCharts/helmNextCloud.sh b/HelmCharts/helmNextCloud.sh deleted file mode 100644 index f043c767..00000000 --- a/HelmCharts/helmNextCloud.sh +++ /dev/null @@ -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 diff --git a/HelmCharts/helmSpagoBI.sh b/HelmCharts/helmSpagoBI.sh deleted file mode 100644 index 864ea23c..00000000 --- a/HelmCharts/helmSpagoBI.sh +++ /dev/null @@ -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 diff --git a/HelmCharts/helmVaultwarden.sh b/HelmCharts/helmVaultwarden.sh deleted file mode 100644 index 28db4f2b..00000000 --- a/HelmCharts/helmVaultwarden.sh +++ /dev/null @@ -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 diff --git a/HelmCharts/helmWordpress.sh b/HelmCharts/helmWordpress.sh deleted file mode 100644 index 6c5470dd..00000000 --- a/HelmCharts/helmWordpress.sh +++ /dev/null @@ -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 diff --git a/HelmCharts/preparaKanboard/pv-local-kanboard.yaml b/HelmCharts/kanboard-chart/templates/pv-local-kanboard.yaml similarity index 100% rename from HelmCharts/preparaKanboard/pv-local-kanboard.yaml rename to HelmCharts/kanboard-chart/templates/pv-local-kanboard.yaml diff --git a/HelmCharts/preparaKanboard/pv-local-mysql-kb.yaml b/HelmCharts/kanboard-chart/templates/pv-local-mysql-kb.yaml similarity index 100% rename from HelmCharts/preparaKanboard/pv-local-mysql-kb.yaml rename to HelmCharts/kanboard-chart/templates/pv-local-mysql-kb.yaml diff --git a/HelmCharts/kanboard.sh b/HelmCharts/kanboard.sh new file mode 100755 index 00000000..8274e5f3 --- /dev/null +++ b/HelmCharts/kanboard.sh @@ -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 diff --git a/HelmCharts/preparaMediawiki/pv-local-mediawiki.yaml b/HelmCharts/mediawiki-chart/templates/pv-local-mediawiki.yaml similarity index 100% rename from HelmCharts/preparaMediawiki/pv-local-mediawiki.yaml rename to HelmCharts/mediawiki-chart/templates/pv-local-mediawiki.yaml diff --git a/HelmCharts/preparaMediawiki/pv-local-mysql-mw.yaml b/HelmCharts/mediawiki-chart/templates/pv-local-mysql-mw.yaml similarity index 100% rename from HelmCharts/preparaMediawiki/pv-local-mysql-mw.yaml rename to HelmCharts/mediawiki-chart/templates/pv-local-mysql-mw.yaml diff --git a/HelmCharts/mediawiki.sh b/HelmCharts/mediawiki.sh new file mode 100755 index 00000000..a98172b3 --- /dev/null +++ b/HelmCharts/mediawiki.sh @@ -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 diff --git a/HelmCharts/preparaMiweb/pv-local-miweb.yaml b/HelmCharts/miweb-chart/templates/pv-local-miweb.yaml similarity index 100% rename from HelmCharts/preparaMiweb/pv-local-miweb.yaml rename to HelmCharts/miweb-chart/templates/pv-local-miweb.yaml diff --git a/HelmCharts/miweb.sh b/HelmCharts/miweb.sh new file mode 100755 index 00000000..58bc233b --- /dev/null +++ b/HelmCharts/miweb.sh @@ -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 diff --git a/HelmCharts/navidrome.sh b/HelmCharts/navidrome.sh old mode 100644 new mode 100755 index 79ceecec..67a2dd55 --- a/HelmCharts/navidrome.sh +++ b/HelmCharts/navidrome.sh @@ -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 diff --git a/HelmCharts/preparaNextCloud/pv-local-mysql.yaml b/HelmCharts/nextcloud-chart/templates/pv-local-mysql.yaml similarity index 100% rename from HelmCharts/preparaNextCloud/pv-local-mysql.yaml rename to HelmCharts/nextcloud-chart/templates/pv-local-mysql.yaml diff --git a/HelmCharts/preparaNextCloud/pv-local-nextcloud.yaml b/HelmCharts/nextcloud-chart/templates/pv-local-nextcloud.yaml similarity index 100% rename from HelmCharts/preparaNextCloud/pv-local-nextcloud.yaml rename to HelmCharts/nextcloud-chart/templates/pv-local-nextcloud.yaml diff --git a/HelmCharts/nextcloud.sh b/HelmCharts/nextcloud.sh new file mode 100755 index 00000000..6a8c59c8 --- /dev/null +++ b/HelmCharts/nextcloud.sh @@ -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 diff --git a/HelmCharts/preparaAirsonic/as-namespace.yaml b/HelmCharts/preparaAirsonic/as-namespace.yaml deleted file mode 100644 index 62a5a25e..00000000 --- a/HelmCharts/preparaAirsonic/as-namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: airsonic diff --git a/HelmCharts/preparaAirsonicadvanced/asa-namespace.yaml b/HelmCharts/preparaAirsonicadvanced/asa-namespace.yaml deleted file mode 100644 index 3e7e2c43..00000000 --- a/HelmCharts/preparaAirsonicadvanced/asa-namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: airsonic-advanced diff --git a/HelmCharts/preparaAirsonicadvanced/pv-local-airsonic-advanced.yaml b/HelmCharts/preparaAirsonicadvanced/pv-local-airsonic-advanced.yaml deleted file mode 100644 index 5ac3c209..00000000 --- a/HelmCharts/preparaAirsonicadvanced/pv-local-airsonic-advanced.yaml +++ /dev/null @@ -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" diff --git a/HelmCharts/preparaCitas/citas-namespace.yaml b/HelmCharts/preparaCitas/citas-namespace.yaml deleted file mode 100644 index 81930e8f..00000000 --- a/HelmCharts/preparaCitas/citas-namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: wpcitas diff --git a/HelmCharts/preparaCitas/pv-local-citas.yaml b/HelmCharts/preparaCitas/pv-local-citas.yaml deleted file mode 100644 index 93f90081..00000000 --- a/HelmCharts/preparaCitas/pv-local-citas.yaml +++ /dev/null @@ -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" - diff --git a/HelmCharts/preparaCitas/pv-local-mysql.yaml b/HelmCharts/preparaCitas/pv-local-mysql.yaml deleted file mode 100644 index 43a28e6a..00000000 --- a/HelmCharts/preparaCitas/pv-local-mysql.yaml +++ /dev/null @@ -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" diff --git a/HelmCharts/preparaKanboard/copyKanboardDB b/HelmCharts/preparaKanboard/copyKanboardDB deleted file mode 100755 index 5211cd46..00000000 --- a/HelmCharts/preparaKanboard/copyKanboardDB +++ /dev/null @@ -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 diff --git a/HelmCharts/preparaKanboard/kb-namespace.yaml b/HelmCharts/preparaKanboard/kb-namespace.yaml deleted file mode 100644 index e07bfebf..00000000 --- a/HelmCharts/preparaKanboard/kb-namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: kanboard diff --git a/HelmCharts/preparaMediawiki/mw-namespace.yaml b/HelmCharts/preparaMediawiki/mw-namespace.yaml deleted file mode 100644 index 12b611d5..00000000 --- a/HelmCharts/preparaMediawiki/mw-namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: mediawiki diff --git a/HelmCharts/preparaMiweb/certbot-deployment.yaml b/HelmCharts/preparaMiweb/certbot-deployment.yaml deleted file mode 100644 index e13104da..00000000 --- a/HelmCharts/preparaMiweb/certbot-deployment.yaml +++ /dev/null @@ -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 diff --git a/HelmCharts/preparaMiweb/miweb-ingress.yaml b/HelmCharts/preparaMiweb/miweb-ingress.yaml deleted file mode 100644 index 6dccd30e..00000000 --- a/HelmCharts/preparaMiweb/miweb-ingress.yaml +++ /dev/null @@ -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 diff --git a/HelmCharts/preparaMiweb/pv-local-miweb-certbot.yaml b/HelmCharts/preparaMiweb/pv-local-miweb-certbot.yaml deleted file mode 100644 index c17fa69f..00000000 --- a/HelmCharts/preparaMiweb/pv-local-miweb-certbot.yaml +++ /dev/null @@ -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" diff --git a/HelmCharts/preparaMiweb/pv-local-miweb-conf.yaml b/HelmCharts/preparaMiweb/pv-local-miweb-conf.yaml deleted file mode 100644 index b999f27e..00000000 --- a/HelmCharts/preparaMiweb/pv-local-miweb-conf.yaml +++ /dev/null @@ -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" diff --git a/HelmCharts/preparaNextCloud/nc-namespace.yaml b/HelmCharts/preparaNextCloud/nc-namespace.yaml deleted file mode 100644 index 16a19737..00000000 --- a/HelmCharts/preparaNextCloud/nc-namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: nextcloud diff --git a/HelmCharts/preparaSpagoBI/bi-namespace.yaml b/HelmCharts/preparaSpagoBI/bi-namespace.yaml deleted file mode 100644 index 2719088a..00000000 --- a/HelmCharts/preparaSpagoBI/bi-namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: spagobi diff --git a/HelmCharts/preparaSpagoBI/pv-local-mysql.yaml b/HelmCharts/preparaSpagoBI/pv-local-mysql.yaml deleted file mode 100644 index ed3fbf31..00000000 --- a/HelmCharts/preparaSpagoBI/pv-local-mysql.yaml +++ /dev/null @@ -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" diff --git a/HelmCharts/preparaSpagoBI/pv-local-spagobi.yaml b/HelmCharts/preparaSpagoBI/pv-local-spagobi.yaml deleted file mode 100644 index 63f6a5ef..00000000 --- a/HelmCharts/preparaSpagoBI/pv-local-spagobi.yaml +++ /dev/null @@ -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" - diff --git a/HelmCharts/preparaVaultwarden/vw-namespace.yaml b/HelmCharts/preparaVaultwarden/vw-namespace.yaml deleted file mode 100644 index c0beb5b9..00000000 --- a/HelmCharts/preparaVaultwarden/vw-namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: vaultwarden diff --git a/HelmCharts/preparaWordpress/wp-namespace.yaml b/HelmCharts/preparaWordpress/wp-namespace.yaml deleted file mode 100644 index d75fbe15..00000000 --- a/HelmCharts/preparaWordpress/wp-namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: wordpress diff --git a/HelmCharts/spagobi-chart/.helmignore b/HelmCharts/spagobi-chart/.helmignore deleted file mode 100644 index 0e8a0eb3..00000000 --- a/HelmCharts/spagobi-chart/.helmignore +++ /dev/null @@ -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/ diff --git a/HelmCharts/spagobi-chart/Chart.yaml b/HelmCharts/spagobi-chart/Chart.yaml deleted file mode 100644 index 39f32ff9..00000000 --- a/HelmCharts/spagobi-chart/Chart.yaml +++ /dev/null @@ -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" diff --git a/HelmCharts/spagobi-chart/templates/mysql-deployment.yaml b/HelmCharts/spagobi-chart/templates/mysql-deployment.yaml deleted file mode 100644 index 95b5c5ad..00000000 --- a/HelmCharts/spagobi-chart/templates/mysql-deployment.yaml +++ /dev/null @@ -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 diff --git a/HelmCharts/spagobi-chart/templates/php-deployment.yaml b/HelmCharts/spagobi-chart/templates/php-deployment.yaml deleted file mode 100644 index d456e9ea..00000000 --- a/HelmCharts/spagobi-chart/templates/php-deployment.yaml +++ /dev/null @@ -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 diff --git a/HelmCharts/spagobi-chart/templates/registry-secrets.yaml b/HelmCharts/spagobi-chart/templates/registry-secrets.yaml deleted file mode 100644 index a42bbeeb..00000000 --- a/HelmCharts/spagobi-chart/templates/registry-secrets.yaml +++ /dev/null @@ -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 diff --git a/HelmCharts/spagobi-chart/templates/spagobi-deployment.yaml b/HelmCharts/spagobi-chart/templates/spagobi-deployment.yaml deleted file mode 100644 index 29c64910..00000000 --- a/HelmCharts/spagobi-chart/templates/spagobi-deployment.yaml +++ /dev/null @@ -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 diff --git a/HelmCharts/spagobi-chart/templates/spagobi-secrets.yaml b/HelmCharts/spagobi-chart/templates/spagobi-secrets.yaml deleted file mode 100644 index 589c3afb..00000000 --- a/HelmCharts/spagobi-chart/templates/spagobi-secrets.yaml +++ /dev/null @@ -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= diff --git a/HelmCharts/spagobi-chart/values.yaml b/HelmCharts/spagobi-chart/values.yaml deleted file mode 100644 index 06692eed..00000000 --- a/HelmCharts/spagobi-chart/values.yaml +++ /dev/null @@ -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: {} diff --git a/HelmCharts/preparaVaultwarden/issuer-production.yaml b/HelmCharts/vaultwarden-chart/templates/issuer-production.yaml similarity index 100% rename from HelmCharts/preparaVaultwarden/issuer-production.yaml rename to HelmCharts/vaultwarden-chart/templates/issuer-production.yaml diff --git a/HelmCharts/preparaVaultwarden/pv-local-vaultwarden.yaml b/HelmCharts/vaultwarden-chart/templates/pv-local-vaultwarden.yaml similarity index 100% rename from HelmCharts/preparaVaultwarden/pv-local-vaultwarden.yaml rename to HelmCharts/vaultwarden-chart/templates/pv-local-vaultwarden.yaml diff --git a/HelmCharts/preparaVaultwarden/vaultwarden-ingress.yaml b/HelmCharts/vaultwarden-chart/templates/vaultwarden-ingress.yaml similarity index 100% rename from HelmCharts/preparaVaultwarden/vaultwarden-ingress.yaml rename to HelmCharts/vaultwarden-chart/templates/vaultwarden-ingress.yaml diff --git a/HelmCharts/vaultwarden.sh b/HelmCharts/vaultwarden.sh new file mode 100755 index 00000000..3e909038 --- /dev/null +++ b/HelmCharts/vaultwarden.sh @@ -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 diff --git a/HelmCharts/preparaWordpress/pv-local-mysql.yaml b/HelmCharts/wordpress-chart/templates/pv-local-mysql.yaml similarity index 100% rename from HelmCharts/preparaWordpress/pv-local-mysql.yaml rename to HelmCharts/wordpress-chart/templates/pv-local-mysql.yaml diff --git a/HelmCharts/preparaWordpress/pv-local-wordpress.yaml b/HelmCharts/wordpress-chart/templates/pv-local-wordpress.yaml similarity index 100% rename from HelmCharts/preparaWordpress/pv-local-wordpress.yaml rename to HelmCharts/wordpress-chart/templates/pv-local-wordpress.yaml diff --git a/HelmCharts/wordpress.sh b/HelmCharts/wordpress.sh new file mode 100755 index 00000000..03d6213c --- /dev/null +++ b/HelmCharts/wordpress.sh @@ -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 diff --git a/HelmCharts/wpcitas/.helmignore b/HelmCharts/wpcitas/.helmignore deleted file mode 100644 index 0e8a0eb3..00000000 --- a/HelmCharts/wpcitas/.helmignore +++ /dev/null @@ -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/ diff --git a/HelmCharts/wpcitas/Chart.yaml b/HelmCharts/wpcitas/Chart.yaml deleted file mode 100644 index f8992982..00000000 --- a/HelmCharts/wpcitas/Chart.yaml +++ /dev/null @@ -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" diff --git a/HelmCharts/wpcitas/templates/NOTES.txt b/HelmCharts/wpcitas/templates/NOTES.txt deleted file mode 100644 index 5e42047a..00000000 --- a/HelmCharts/wpcitas/templates/NOTES.txt +++ /dev/null @@ -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 }} diff --git a/HelmCharts/wpcitas/templates/_helpers.tpl b/HelmCharts/wpcitas/templates/_helpers.tpl deleted file mode 100644 index 0e6be7ec..00000000 --- a/HelmCharts/wpcitas/templates/_helpers.tpl +++ /dev/null @@ -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 }} diff --git a/HelmCharts/wpcitas/templates/mysql-deployment.yaml b/HelmCharts/wpcitas/templates/mysql-deployment.yaml deleted file mode 100755 index 71085b6a..00000000 --- a/HelmCharts/wpcitas/templates/mysql-deployment.yaml +++ /dev/null @@ -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 diff --git a/HelmCharts/wpcitas/templates/php-deployment.yaml b/HelmCharts/wpcitas/templates/php-deployment.yaml deleted file mode 100644 index 15e29807..00000000 --- a/HelmCharts/wpcitas/templates/php-deployment.yaml +++ /dev/null @@ -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 diff --git a/HelmCharts/wpcitas/templates/registry-secrets.yaml b/HelmCharts/wpcitas/templates/registry-secrets.yaml deleted file mode 100644 index 21671da2..00000000 --- a/HelmCharts/wpcitas/templates/registry-secrets.yaml +++ /dev/null @@ -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 diff --git a/HelmCharts/wpcitas/templates/wpcitas-deployment.yaml b/HelmCharts/wpcitas/templates/wpcitas-deployment.yaml deleted file mode 100755 index 8655a99c..00000000 --- a/HelmCharts/wpcitas/templates/wpcitas-deployment.yaml +++ /dev/null @@ -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 diff --git a/HelmCharts/wpcitas/templates/wpcitas-secrets.yaml b/HelmCharts/wpcitas/templates/wpcitas-secrets.yaml deleted file mode 100644 index 3db353bc..00000000 --- a/HelmCharts/wpcitas/templates/wpcitas-secrets.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: mysqlcitas-pass - namespace: wpcitas -data: - password: RHNhLTAyMTM= - db_user: cm9vdA== - db_passwd: RHNhLTAyMTM= diff --git a/HelmCharts/wpcitas/values.yaml b/HelmCharts/wpcitas/values.yaml deleted file mode 100644 index 06692eed..00000000 --- a/HelmCharts/wpcitas/values.yaml +++ /dev/null @@ -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: {}