feat(k8s/argo-apps/dcsi): add argo app
This commit is contained in:
parent
948b96586e
commit
f061e8238c
12 changed files with 139 additions and 96 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
.idea/
|
||||
secrets.yaml
|
||||
30
k8s/argo-apps/dcsi.yaml
Normal file
30
k8s/argo-apps/dcsi.yaml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: democratic-csi
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
name: ''
|
||||
namespace: 'democratic-csi'
|
||||
server: 'https://kubernetes.default.svc'
|
||||
source:
|
||||
chart: democratic-csi
|
||||
repoURL: https://democratic-csi.github.io/charts/
|
||||
targetRevision: 0.14.4
|
||||
helm:
|
||||
releaseName: zfs-nfs
|
||||
valuesObject:
|
||||
csiDriver:
|
||||
name: "org.dcsi.nfs"
|
||||
driver:
|
||||
existingConfigSecret: secrets-dcsi
|
||||
config:
|
||||
driver: freenas-api-nfs
|
||||
sources: []
|
||||
project: fuku
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: false
|
||||
selfHeal: true
|
||||
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: democratic-csi
|
||||
namespace: argocd
|
||||
spec:
|
||||
destination:
|
||||
name: ''
|
||||
namespace: 'dcsi'
|
||||
server: 'https://kubernetes.default.svc'
|
||||
source:
|
||||
path:
|
||||
repoURL: 'https://gitlab.com/fukurokuju/k3s/services.git'
|
||||
targetRevision: main
|
||||
sources: []
|
||||
project: roboces
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: false
|
||||
selfHeal: false
|
||||
|
||||
16
k8s/services/argo/appgen.yaml
Normal file
16
k8s/services/argo/appgen.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: fukuops-appgen
|
||||
namespace: argocd
|
||||
finalizers:
|
||||
- resources-finalizer.argocd.argoproj.io
|
||||
spec:
|
||||
destination:
|
||||
namespace: default
|
||||
name: in-cluster
|
||||
project: default
|
||||
source:
|
||||
path: k8s/argo-apps
|
||||
repoURL: https://git.roboces.dev/catalin/fukuops.git
|
||||
targetRevision: main
|
||||
10
k8s/services/argo/argocd-cmd-params-cm.yaml
Normal file
10
k8s/services/argo/argocd-cmd-params-cm.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: argocd-cmd-params-cm
|
||||
namespace: argocd
|
||||
labels:
|
||||
app.kubernetes.io/name: argocd-cmd-params-cm
|
||||
app.kubernetes.io/part-of: argocd
|
||||
data:
|
||||
server.insecure: "true"
|
||||
24
k8s/services/argo/ingress-route.yaml
Normal file
24
k8s/services/argo/ingress-route.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
apiVersion: traefik.containo.us/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: argocd-server
|
||||
namespace: argocd
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
routes:
|
||||
- kind: Rule
|
||||
match: Host(`argo.fuku`)
|
||||
priority: 10
|
||||
services:
|
||||
- name: argocd-server
|
||||
port: 80
|
||||
- kind: Rule
|
||||
match: Host(`argo.fuku`) && Headers(`Content-Type`, `application/grpc`)
|
||||
priority: 11
|
||||
services:
|
||||
- name: argocd-server
|
||||
port: 80
|
||||
scheme: h2c
|
||||
tls:
|
||||
certResolver: default
|
||||
19
k8s/services/argo/project-fuku.yaml
Normal file
19
k8s/services/argo/project-fuku.yaml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
namespace: argocd
|
||||
name: fuku
|
||||
spec:
|
||||
destinations:
|
||||
- namespace: apps-fuku
|
||||
server: https://kubernetes.default.svc
|
||||
- namespace: democratic-csi
|
||||
server: https://kubernetes.default.svc
|
||||
clusterResourceWhitelist:
|
||||
- group: "*"
|
||||
kind: "*"
|
||||
sourceRepos:
|
||||
- https://gitlab.com/fukurokuju/k3s/services.git
|
||||
- https://git.roboces.dev/catalin/fukuops.git
|
||||
- https://democratic-csi.github.io/charts/
|
||||
13
k8s/services/argo/project-roboces.yaml
Normal file
13
k8s/services/argo/project-roboces.yaml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
namespace: argocd
|
||||
name: roboces
|
||||
spec:
|
||||
destinations:
|
||||
- namespace: apps-roboces
|
||||
server: https://kubernetes.default.svc
|
||||
|
||||
sourceRepos:
|
||||
- https://gitlab.com/fukurokuju/k3s/services.git
|
||||
10
k8s/services/argo/repos.yaml
Normal file
10
k8s/services/argo/repos.yaml
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: fuku-services
|
||||
namespace: argocd
|
||||
labels:
|
||||
argocd.argoproj.io/secret-type: repository
|
||||
stringData:
|
||||
url: https://gitlab.com/fukurokuju/k3s/services.git
|
||||
16
k8s/services/dcsi/sealedsecrets.yaml
Normal file
16
k8s/services/dcsi/sealedsecrets.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
apiVersion: bitnami.com/v1alpha1
|
||||
kind: SealedSecret
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: secrets-dcsi
|
||||
namespace: democratic-csi
|
||||
spec:
|
||||
encryptedData:
|
||||
driver-config-file.yaml: AgBlO8BsDvPZ680OaqdWB9dv/GQ7UI/UN2dJaLT6fGQBOC/ipeIHw8htNAxQQUSblW5+hVRcYeY32H20q5H+8dzGJpuf7XWjWEPB2zXVhEJChtuBVYTwri0+WswCYUjbr4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BkgIIyT2EIIcjcOMeMz3qHNgiweVgi4qQHn6PsMYTj4qhpccPLCBzCnKNFlxWZPUlMpz+/mAWYN2LuBIaThGDjNflQ9JD2DABZKD6o7Nl5EpSpjoExDoqSmLnRQdATqoZS23e3PHDA4ZoS6fXKPo2T+gSTbwCzFVceNWw2gG1VpEdyPYxoKQ+jiIKvcCR0pmD83zEQ7RVK9o7NeV76jp60EHU41WL1O7jVOsuiRTAylZaeBVsVRdyQQPznNmVcPKkhGAtft3c1OD9lMLGwoUrcBCcnKjRBHj3/c6+xgpAndHw==
|
||||
template:
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
name: secrets-dcsi
|
||||
namespace: democratic-csi
|
||||
type: Opaque
|
||||
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginx
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx
|
||||
volumeMounts:
|
||||
- name: data
|
||||
mountPath: /data
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: nfs-pvc
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: nfs-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: "truenas-nfs-csi"
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
csiDriver:
|
||||
name: "org.dcsi.nfs"
|
||||
|
||||
storageClasses:
|
||||
- name: truenas-nfs-csi
|
||||
defaultClass: false
|
||||
reclaimPolicy: Delete
|
||||
volumeBindingMode: Immediate
|
||||
allowVolumeExpansion: true
|
||||
parameters:
|
||||
fsType: nfs
|
||||
mountOptions:
|
||||
- noatime
|
||||
- nfsvers=4.2
|
||||
driver:
|
||||
config:
|
||||
driver: freenas-api-nfs
|
||||
instance_id:
|
||||
httpConnection:
|
||||
protocol: http
|
||||
host: 192.168.1.3
|
||||
port: 80
|
||||
apiKey: "bogus"
|
||||
allowInsecure: true
|
||||
zfs:
|
||||
datasetParentName: pool1/dcsi/a/vols
|
||||
detachedSnapshotsDatasetParentName: pool1/dcsi/a/snaps
|
||||
datasetEnableQuotas: true
|
||||
datasetEnableReservation: false
|
||||
datasetPermissionsMode: "0777"
|
||||
datasetPermissionsUser: 0
|
||||
datasetPermissionsGroup: 0
|
||||
|
||||
nfs:
|
||||
shareHost: 192.168.1.3
|
||||
shareAlldirs: false
|
||||
shareAllowedHosts: []
|
||||
shareAllowedNetworks: []
|
||||
shareMapallUser: apps
|
||||
shareMapallGroup: apps
|
||||
Loading…
Add table
Add a link
Reference in a new issue