diff --git a/bin/dryrun-app.sh b/bin/dryrun-app.sh new file mode 100755 index 0000000..237c694 --- /dev/null +++ b/bin/dryrun-app.sh @@ -0,0 +1,19 @@ +#!/bin/bash +set -e + +full_path=${1} +deployment=${2:-dev} +app=$(basename $full_path) +location=$(dirname $full_path) +tmp_path=$(realpath ".tmp/$location/$deployment-$app.yaml") +echo "writing $location/$app to $tmp_path" + +mkdir -p $(dirname $tmp_path) + +pushd $full_path +helm dependency update +helm template $app . --namespace $app \ + --debug \ + --values values.yaml \ + --values values-$deployment.yaml \ + > $tmp_path \ No newline at end of file diff --git a/bin/start-minikube.sh b/bin/start-minikube.sh old mode 100644 new mode 100755 diff --git a/k8s/infra/longhorn/Chart.lock b/k8s/infra/longhorn/Chart.lock new file mode 100644 index 0000000..fb615ce --- /dev/null +++ b/k8s/infra/longhorn/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: longhorn + repository: https://charts.longhorn.io + version: 1.4.0 +digest: sha256:886b8ed9d5d3d5f6d4fde6c11d9cd4e0b28a58cde2d87e6a81d17882c3937619 +generated: "2023-03-14T22:21:42.863841952Z" diff --git a/k8s/infra/longhorn/Chart.yaml b/k8s/infra/longhorn/Chart.yaml index ab88cef..0e0da97 100644 --- a/k8s/infra/longhorn/Chart.yaml +++ b/k8s/infra/longhorn/Chart.yaml @@ -1,8 +1,9 @@ apiVersion: v2 name: longhorn -description: "" +description: A Helm chart for Kubernetes type: application version: 0.1.0 +dependencies: - name: longhorn version: v1.4.0 repository: https://charts.longhorn.io diff --git a/k8s/infra/longhorn/charts/longhorn-1.4.0.tgz b/k8s/infra/longhorn/charts/longhorn-1.4.0.tgz new file mode 100644 index 0000000..1e0fc17 Binary files /dev/null and b/k8s/infra/longhorn/charts/longhorn-1.4.0.tgz differ diff --git a/k8s/infra/longhorn/templates/iscsi.yaml b/k8s/infra/longhorn/templates/iscsi.yaml index 54e75a8..6027da2 100644 --- a/k8s/infra/longhorn/templates/iscsi.yaml +++ b/k8s/infra/longhorn/templates/iscsi.yaml @@ -19,19 +19,19 @@ spec: hostNetwork: true hostPID: true initContainers: - - name: iscsi-installation - command: - - nsenter - - --mount=/proc/1/ns/mnt - - -- - - bash - - -c - - *cmd - image: alpine:3.12 - securityContext: - privileged: true + - name: iscsi-installation + command: + - nsenter + - --mount=/proc/1/ns/mnt + - -- + - bash + - -c + - *cmd + image: alpine:3.12 + securityContext: + privileged: true containers: - - name: sleep - image: k8s.gcr.io/pause:3.1 + - name: sleep + image: k8s.gcr.io/pause:3.1 updateStrategy: - type: RollingUpdate \ No newline at end of file + type: RollingUpdate diff --git a/k8s/infra/longhorn/templates/nfs.yaml b/k8s/infra/longhorn/templates/nfs.yaml index 703b5f2..c62d3bc 100644 --- a/k8s/infra/longhorn/templates/nfs.yaml +++ b/k8s/infra/longhorn/templates/nfs.yaml @@ -20,19 +20,19 @@ spec: hostNetwork: true hostPID: true initContainers: - - name: nfs-installation - command: - - nsenter - - --mount=/proc/1/ns/mnt - - -- - - bash - - -c - - *cmd - image: alpine:3.12 - securityContext: - privileged: true + - name: nfs-installation + command: + - nsenter + - --mount=/proc/1/ns/mnt + - -- + - bash + - -c + - *cmd + image: alpine:3.12 + securityContext: + privileged: true containers: - - name: sleep - image: k8s.gcr.io/pause:3.1 + - name: sleep + image: k8s.gcr.io/pause:3.1 updateStrategy: - type: RollingUpdate \ No newline at end of file + type: RollingUpdate diff --git a/k8s/infra/longhorn/values-dev.yaml b/k8s/infra/longhorn/values-dev.yaml index e69de29..7085e92 100644 --- a/k8s/infra/longhorn/values-dev.yaml +++ b/k8s/infra/longhorn/values-dev.yaml @@ -0,0 +1 @@ +global: diff --git a/k8s/infra/longhorn/values.yaml b/k8s/infra/longhorn/values.yaml index e69de29..7085e92 100644 --- a/k8s/infra/longhorn/values.yaml +++ b/k8s/infra/longhorn/values.yaml @@ -0,0 +1 @@ +global: diff --git a/k8s/infra/reverse-proxy/Chart.yaml b/k8s/infra/reverse-proxy/Chart.yaml index 2195453..8e859ff 100644 --- a/k8s/infra/reverse-proxy/Chart.yaml +++ b/k8s/infra/reverse-proxy/Chart.yaml @@ -1,24 +1,5 @@ apiVersion: v2 -name: . +name: reverse-proxy 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"