openebs diskpools
This commit is contained in:
36
openebs/diskpool.yaml
Normal file
36
openebs/diskpool.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
apiVersion: openebs.io/v1beta2
|
||||
kind: DiskPool
|
||||
metadata:
|
||||
name: pool-0
|
||||
namespace: openebs
|
||||
spec:
|
||||
node: work-00
|
||||
disks: [aio:///dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1]
|
||||
topology:
|
||||
labelled:
|
||||
topology-key: topology-value
|
||||
---
|
||||
apiVersion: openebs.io/v1beta2
|
||||
kind: DiskPool
|
||||
metadata:
|
||||
name: pool-1
|
||||
namespace: openebs
|
||||
spec:
|
||||
node: work-01
|
||||
disks: [aio:///dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1]
|
||||
topology:
|
||||
labelled:
|
||||
topology-key: topology-value
|
||||
---
|
||||
apiVersion: openebs.io/v1beta2
|
||||
kind: DiskPool
|
||||
metadata:
|
||||
name: pool-2
|
||||
namespace: openebs
|
||||
spec:
|
||||
node: work-02
|
||||
disks: [aio:///dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_drive-scsi1]
|
||||
topology:
|
||||
labelled:
|
||||
topology-key: topology-value
|
||||
@@ -1,4 +1,4 @@
|
||||
# argocd/kustomization.yaml
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
|
||||
25
test/network.yaml
Normal file
25
test/network.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: deny-repo-to-gitea
|
||||
namespace: argocd
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: argocd-repo-server
|
||||
|
||||
policyTypes:
|
||||
- Egress
|
||||
|
||||
egress:
|
||||
# Beispiel: nur DNS erlauben (anpassen, falls du mehr brauchst)
|
||||
- to:
|
||||
- namespaceSelector:
|
||||
matchLabels:
|
||||
kubernetes.io/metadata.name: kube-system
|
||||
podSelector:
|
||||
matchLabels:
|
||||
k8s-app: kube-dns
|
||||
ports:
|
||||
- protocol: UDP
|
||||
port: 53
|
||||
Reference in New Issue
Block a user