| @ -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/ | |||||
| @ -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" | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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: {} | |||||
| @ -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 | |||||
| @ -1 +0,0 @@ | |||||
| kubectl exec -ti deployment.apps/airsonic -n airsonic -- /bin/bash | |||||
| @ -1 +0,0 @@ | |||||
| kubectl exec -ti deployment.apps/airsonic-advanced -n airsonic-advanced -- /bin/bash | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -1,4 +0,0 @@ | |||||
| apiVersion: v1 | |||||
| kind: Namespace | |||||
| metadata: | |||||
| name: airsonic | |||||
| @ -1,4 +0,0 @@ | |||||
| apiVersion: v1 | |||||
| kind: Namespace | |||||
| metadata: | |||||
| name: airsonic-advanced | |||||
| @ -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" | |||||
| @ -1,4 +0,0 @@ | |||||
| apiVersion: v1 | |||||
| kind: Namespace | |||||
| metadata: | |||||
| name: wpcitas | |||||
| @ -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" | |||||
| @ -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" | |||||
| @ -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 | |||||
| @ -1,4 +0,0 @@ | |||||
| apiVersion: v1 | |||||
| kind: Namespace | |||||
| metadata: | |||||
| name: kanboard | |||||
| @ -1,4 +0,0 @@ | |||||
| apiVersion: v1 | |||||
| kind: Namespace | |||||
| metadata: | |||||
| name: mediawiki | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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" | |||||
| @ -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" | |||||
| @ -1,4 +0,0 @@ | |||||
| apiVersion: v1 | |||||
| kind: Namespace | |||||
| metadata: | |||||
| name: nextcloud | |||||
| @ -1,4 +0,0 @@ | |||||
| apiVersion: v1 | |||||
| kind: Namespace | |||||
| metadata: | |||||
| name: spagobi | |||||
| @ -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" | |||||
| @ -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" | |||||
| @ -1,4 +0,0 @@ | |||||
| apiVersion: v1 | |||||
| kind: Namespace | |||||
| metadata: | |||||
| name: vaultwarden | |||||
| @ -1,4 +0,0 @@ | |||||
| apiVersion: v1 | |||||
| kind: Namespace | |||||
| metadata: | |||||
| name: wordpress | |||||
| @ -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/ | |||||
| @ -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" | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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= | |||||
| @ -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: {} | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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/ | |||||
| @ -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" | |||||
| @ -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 }} | |||||
| @ -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 }} | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -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 | |||||
| @ -1,9 +0,0 @@ | |||||
| apiVersion: v1 | |||||
| kind: Secret | |||||
| metadata: | |||||
| name: mysqlcitas-pass | |||||
| namespace: wpcitas | |||||
| data: | |||||
| password: RHNhLTAyMTM= | |||||
| db_user: cm9vdA== | |||||
| db_passwd: RHNhLTAyMTM= | |||||
| @ -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: {} | |||||