ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
4 changed files with 145336 additions and 0 deletions
61
vendor/platform/dragonfly-operator/helm-release.yaml
vendored
Normal file
61
vendor/platform/dragonfly-operator/helm-release.yaml
vendored
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: dragonfly-operator
|
||||
namespace: dragonfly
|
||||
spec:
|
||||
interval: 15m
|
||||
releaseName: dragonfly-operator
|
||||
targetNamespace: dragonfly
|
||||
chart:
|
||||
spec:
|
||||
chart: dragonfly-operator
|
||||
version: v1.7.1
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: dragonfly-operator
|
||||
namespace: flux-system
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
postRenderers:
|
||||
- kustomize:
|
||||
patches:
|
||||
- target:
|
||||
kind: ClusterRole
|
||||
name: dragonfly-operator-manager-role
|
||||
patch: |
|
||||
- op: test
|
||||
path: /rules/0/resources
|
||||
value: [configmaps]
|
||||
- op: replace
|
||||
path: /rules/0/verbs
|
||||
value: [list, watch]
|
||||
- op: test
|
||||
path: /rules/3/resources
|
||||
value: [pods/status]
|
||||
- op: remove
|
||||
path: /rules/3
|
||||
values:
|
||||
createAggregateRoles: false
|
||||
replicaCount: 2
|
||||
manager:
|
||||
image:
|
||||
repository: docker.dragonflydb.io/dragonflydb/operator
|
||||
tag: v1.7.1@sha256:bc0067369a456810d00715d7292da32b82f6df491fd51d6c57f2b2b3193ab490
|
||||
resources:
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 96Mi
|
||||
limits:
|
||||
memory: 256Mi
|
||||
rbacProxy:
|
||||
image:
|
||||
repository: quay.io/brancz/kube-rbac-proxy
|
||||
tag: v0.23.1@sha256:c280684dd23793fb2f287d1f4efc84b7800b3e01205d770b98694827bfe514cb
|
||||
resources:
|
||||
requests:
|
||||
cpu: 1m
|
||||
6
vendor/platform/dragonfly-operator/kustomization.yaml
vendored
Normal file
6
vendor/platform/dragonfly-operator/kustomization.yaml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- helm-release.yaml
|
||||
- network-policies.yaml
|
||||
4
vendor/platform/dragonfly-operator/namespace.yaml
vendored
Normal file
4
vendor/platform/dragonfly-operator/namespace.yaml
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: dragonfly
|
||||
71
vendor/platform/dragonfly-operator/network-policies.yaml
vendored
Normal file
71
vendor/platform/dragonfly-operator/network-policies.yaml
vendored
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
---
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
name: dragonfly-operator
|
||||
namespace: dragonfly
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: dragonfly-operator
|
||||
app.kubernetes.io/instance: dragonfly-operator
|
||||
ingress:
|
||||
- fromEntities:
|
||||
- host
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "8081"
|
||||
protocol: TCP
|
||||
- fromEndpoints:
|
||||
- matchLabels:
|
||||
k8s:io.kubernetes.pod.namespace: dragonfly
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "8080"
|
||||
protocol: TCP
|
||||
- port: "8443"
|
||||
protocol: TCP
|
||||
egress:
|
||||
- toEntities:
|
||||
- kube-apiserver
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "6443"
|
||||
protocol: TCP
|
||||
- toEndpoints:
|
||||
- matchLabels:
|
||||
k8s:io.kubernetes.pod.namespace: kube-system
|
||||
k8s-app: kube-dns
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "53"
|
||||
protocol: UDP
|
||||
- port: "53"
|
||||
protocol: TCP
|
||||
- toEndpoints:
|
||||
- matchLabels:
|
||||
k8s:io.kubernetes.pod.namespace: dragonfly
|
||||
app.kubernetes.io/name: dragonfly
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "6379"
|
||||
protocol: TCP
|
||||
- port: "9999"
|
||||
protocol: TCP
|
||||
---
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: host-egress-dragonfly-operator
|
||||
spec:
|
||||
nodeSelector: {}
|
||||
egress:
|
||||
- toEndpoints:
|
||||
- matchLabels:
|
||||
k8s:io.kubernetes.pod.namespace: dragonfly
|
||||
app.kubernetes.io/name: dragonfly-operator
|
||||
app.kubernetes.io/instance: dragonfly-operator
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "8081"
|
||||
protocol: TCP
|
||||
Loading…
Reference in a new issue