Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • stackspin/stackspin-flux-example
  • xeruf/stackspout
2 results
Show changes
Commits on Source (21)
...@@ -28,17 +28,16 @@ basic/install.sh ...@@ -28,17 +28,16 @@ basic/install.sh
List the resource created by this flux repo: List the resource created by this flux repo:
```sh ```sh
kubectl -n example-basic get gitrepositories kubectl -n stackspout get gitrepositories
kubectl -n example-basic get kustomizations kubectl -n stackspout get kustomizations
kubectl -n example-basic get helmreleases kubectl -n stackspout get helmreleases
kubectl -n example-basic get pods kubectl -n stackspout get pods
``` ```
Show output of the single app applied, [podinfo](https://github.com/stefanprodan/podinfo) ## Customizations
```sh - Nextcloud apps overrides
curl --resolve podinfo.local:80:CLUSTER_IPV4_ADDRESS http://podinfo.local - Gitea installed
```
## What's next ? ## What's next ?
......
apiVersion: helm.toolkit.fluxcd.io/v2beta1 apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease kind: HelmRelease
metadata: metadata:
name: podinfo name: gitea
namespace: example-basic namespace: stackspout
spec: spec:
releaseName: podinfo releaseName: gitea
chart: chart:
spec: spec:
# https://artifacthub.io/packages/helm/podinfo/podinfo chart: gitea
chart: podinfo version: 5.0.4
version: 6.1.1
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: podinfo name: gitea
namespace: example-basic namespace: stackspout
interval: 60m interval: 10m
# Default values
# https://github.com/stefanprodan/podinfo/blob/master/charts/podinfo/values.yaml
values: values:
ingress: ingress:
enabled: true enabled: true
hosts:
- host: git.ftt.gmbh
paths:
- path: /
pathType: Prefix
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1 apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization kind: Kustomization
metadata: metadata:
name: examle-apps name: apps
namespace: example-basic namespace: stackspout
spec: spec:
interval: 24h interval: 10m
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: stackspin-flux-example name: stackspout
path: ./basic/apps path: ./basic/apps
prune: true prune: true
validation: client validation: client
...@@ -2,12 +2,12 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1beta1 ...@@ -2,12 +2,12 @@ apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization kind: Kustomization
metadata: metadata:
name: example-infrastructure name: example-infrastructure
namespace: example-basic namespace: stackspout
spec: spec:
interval: 24h interval: 10m
sourceRef: sourceRef:
kind: GitRepository kind: GitRepository
name: stackspin-flux-example name: stackspout
path: ./basic/infrastructure path: ./basic/infrastructure
prune: true prune: true
validation: client validation: client
apiVersion: kustomize.toolkit.fluxcd.io/v1beta1
kind: Kustomization
metadata:
name: overrides
namespace: stackspout
spec:
interval: 2m
sourceRef:
kind: GitRepository
name: stackspout
path: ./basic/overrides
prune: true
validation: client
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: example-basic name: stackspout
apiVersion: source.toolkit.fluxcd.io/v1beta1 apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository kind: HelmRepository
metadata: metadata:
name: podinfo name: gitea
namespace: example-basic namespace: stackspout
spec: spec:
interval: 1h interval: 10m
url: https://stefanprodan.github.io/podinfo url: https://dl.gitea.io/charts/
#!/usr/bin/env bash #!/usr/bin/env bash
echo "Creating / updating gitRepository stackspin-flux-example-basic in namespace example-basic" kubectl get namespace stackspout 2>/dev/null || kubectl create namespace stackspout
flux create source git stackspin-flux-example \
--namespace=example-basic \ echo "Creating / updating gitRepository stackspout in namespace stackspout"
--url=https://open.greenhost.net/stackspin/stackspin-flux-example.git \ flux create source git stackspout \
--namespace=stackspout \
--url=https://open.greenhost.net/xeruf/stackspout.git \
--branch=main \ --branch=main \
--interval=1h --interval=10m
echo "Creating / updating kustomization stackspin-flux-example in namespace example-basic" echo "Creating / updating kustomization stackspout in namespace stackspout"
flux create kustomization stackspin-flux-example \ flux create kustomization stackspout \
--namespace=example-basic \ --namespace=stackspout \
--source=GitRepository/stackspin-flux-example \ --source=GitRepository/stackspout \
--path="./basic/clusters/production/" \ --path="./basic/clusters/production/" \
--prune=true \ --prune=true \
--interval=1h --interval=10m
---
apiVersion: v1
kind: ConfigMap
metadata:
namespace: stackspin-apps
name: stackspin-nextcloud-override
data:
values.yaml: |
nextcloud:
# https://artifacthub.io/packages/helm/nextcloud/nextcloud#configuration
# https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/config_sample_php_parameters.html#user-experience
#'defaultapp' => 'dashboard,files',
# https://github.com/moment/moment/tree/2.18.1/locale
#'default_language' => 'en_de', # https://www.transifex.com/explore/languages/
#'theme' => 'dark',
nextcloud:
configs:
defaults.config.php: |-
<?php
$CONFIG = array (
'allow_user_to_change_display_name' => false,
'default_phone_region' => 'DE',
'default_locale' => 'en-gb',
'lost_password_link' => 'https://sso.ftt.gmbh/login/recovery',
);
apps:
# Basics
- name: password_policy
enabled: false
- name: photos
enabled: false
- name: passwords
enabled: false
- name: contacts
enabled: true
# Common Apps
- name: external
enabled: true
- name: polls
enabled: false
#unsure - maybe redundant to forms?
- name: forms
enabled: true
#- name: spreed
# enabled: false
# redundant to Zulip & Jitsi
- name: appointments
enabled: true
# Management
- name: deck
enabled: true
- name: tasks
enabled: true
# Convenience
- name: files_rightclick
enabled: true
- name: metadata
enabled: true
- name: extract
enabled: true
# Collaborative apps
#- name: drawio
# enabled: false
#buggy
- name: notes
enabled: true
#- name: files_mindmap
# enabled: false
#buggy
- name: files_markdown
enabled: true
- name: files_texteditor
enabled: true
- name: maps
enabled: true
- name: jitsi
enabled: false
# waiting for /var/lib/Stackspin/local-storage/pvc-3b008674-544c-46e7-b456-f20932eb9f23_stackspin-apps_nextcloud-files/custom_apps
# Aesthetics
#- name: theming
# enabled: true
- name: apporder
enabled: true
- name: side_menu
enabled: true
- name: breezedark
enabled: true
#- name: unsplash
# enabled: true
# Flow
- name: analytics
enabled: true
- name: workflow_pdf_converter
enabled: true
- name: files_accesscontrol
enabled: true
- name: files_automatedtagging
enabled: true
- name: workflow_media_converter
enabled: true
- name: workflow_ocr
enabled: true
# Testing
- name: event_update_notification
enabled: true
- name: integration_google
enabled: true