Skip to content

Commit

Permalink
Cleanup to all in applications and a bit more organized. Added rook-c…
Browse files Browse the repository at this point in the history
…eph to allow dynamic PV generation on demand
  • Loading branch information
jasonmcintosh committed Mar 3, 2024
1 parent 326902d commit 9b196c1
Show file tree
Hide file tree
Showing 62 changed files with 14,427 additions and 479 deletions.
File renamed without changes.
6 changes: 6 additions & 0 deletions applications/armory-enterprise-operator/namespace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
kind: Namespace
apiVersion: v1
metadata:
name: spinnaker-operator
labels:
name: spinnaker-operator
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
kind: Namespace
apiVersion: v1
metadata:
name: spinnaker
labels:
name: spinnaker
---
kind: Namespace
apiVersion: v1
metadata:
name: dev
labels:
Expand Down
51 changes: 0 additions & 51 deletions applications/demo-web-app/manifests/ingress-nginx-v1.yaml

This file was deleted.

54 changes: 0 additions & 54 deletions applications/gitness/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,11 @@ metadata:
name: gitness
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: postgresql-gitness
labels:
type: local
namespace: gitness
spec:
capacity:
storage: 40Gi
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- kubenode1
storageClassName: local-storage
persistentVolumeReclaimPolicy: Retain
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data/postgresql-gitness"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: postgresql-gitness
namespace: gitness
spec:
storageClassName: local-storage
accessModes:
- ReadWriteOnce
resources:
Expand Down Expand Up @@ -122,32 +95,6 @@ spec:
app: postgresql
clusterIP: None
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: git
labels:
type: local
namespace: gitness
spec:
capacity:
storage: 40Gi
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- kubenode1
storageClassName: local-storage
persistentVolumeReclaimPolicy: Retain
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data/gitness"
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -211,7 +158,6 @@ metadata:
name: gitness-pv
namespace: gitness
spec:
storageClassName: local-storage
accessModes:
- ReadWriteOnce
resources:
Expand Down
30 changes: 3 additions & 27 deletions applications/homebridge/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,6 @@ metadata:
name: homebridge

---
apiVersion: v1
kind: PersistentVolume
metadata:
name: homebridge
labels:
type: local
spec:
capacity:
storage: 40Gi
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- kubenode1
storageClassName: local-storage
persistentVolumeReclaimPolicy: Retain
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data/homebridge"
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -40,6 +15,8 @@ metadata:
name: homebridge
namespace: homebridge
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
Expand Down Expand Up @@ -72,12 +49,11 @@ metadata:
name: homebridge-pv
namespace: homebridge
spec:
storageClassName: local-storage
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
storage: 20Gi
---
apiVersion: v1
kind: Service
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,41 +1,15 @@
apiVersion: v1
kind: PersistentVolume
metadata:
name: grafana
namespace: monitoring
labels:
type: local
spec:
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- kubemaster
storageClassName: grafana
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/mnt/data/grafana"
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: grafana-pvc
namespace: monitoring
spec:
storageClassName: grafana
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
storage: 2Gi
volumeMode: Filesystem
volumeName: grafana
---
apiVersion: apps/v1
kind: Deployment
Expand Down
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions applications/rook-ceph/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
## Rook storage system for distributed clustered storage

KEY reason for this: Ceph installation and management allowing 3 node cluster to have DYNAMIC PV storage that's managed.
* no more having to manage/create node affinity rules OR PV's for each PVC
* Storage can move amongst nodes so if something is "burning" on a single node or I'm patching it boom it can run on a different node


Apply cluster.yaml separately LAST. This will take a WHILE as it basically builds the "pool" of storage for each node

Then... apply storage.yaml to create a storage pool (default is set) so pods can dynamically provision storage!

## Cautions
See: https://github.com/ceph/ceph-csi/issues/1067#issuecomment-1040561067 for microk8s - have to tweak for how microk8s runs in snap file system
Loading

0 comments on commit 9b196c1

Please sign in to comment.