this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Deploy dragonfly cluster

+239
+102
k8s/nebula/apps/databases/dragonfly/app/hr.yaml
··· 1 + --- 2 + # yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json 3 + apiVersion: helm.toolkit.fluxcd.io/v2 4 + kind: HelmRelease 5 + metadata: 6 + name: &app dragonfly-operator 7 + spec: 8 + interval: 30m 9 + chart: 10 + spec: 11 + chart: app-template 12 + version: 3.6.1 13 + sourceRef: 14 + kind: HelmRepository 15 + name: bjw-s 16 + namespace: flux-system 17 + install: 18 + remediation: 19 + retries: 3 20 + upgrade: 21 + cleanupOnFail: true 22 + remediation: 23 + strategy: rollback 24 + retries: 3 25 + values: 26 + controllers: 27 + dragonfly-operator: 28 + replicas: 1 29 + strategy: RollingUpdate 30 + containers: 31 + app: 32 + image: 33 + repository: ghcr.io/dragonflydb/operator 34 + tag: v1.1.8 35 + command: [/manager] 36 + args: 37 + - --health-probe-bind-address=:8081 38 + - --metrics-bind-address=:8080 39 + probes: 40 + liveness: 41 + enabled: true 42 + custom: true 43 + spec: 44 + httpGet: 45 + path: /healthz 46 + port: &port 8081 47 + initialDelaySeconds: 15 48 + periodSeconds: 20 49 + timeoutSeconds: 1 50 + failureThreshold: 3 51 + readiness: 52 + enabled: true 53 + custom: true 54 + spec: 55 + httpGet: 56 + path: /readyz 57 + port: *port 58 + initialDelaySeconds: 5 59 + periodSeconds: 10 60 + timeoutSeconds: 1 61 + failureThreshold: 3 62 + resources: 63 + requests: 64 + cpu: 10m 65 + limits: 66 + memory: 128Mi 67 + securityContext: 68 + allowPrivilegeEscalation: false 69 + readOnlyRootFilesystem: true 70 + capabilities: { drop: [ALL] } 71 + pod: 72 + securityContext: 73 + runAsUser: 65534 74 + runAsGroup: 65534 75 + runAsNonRoot: true 76 + topologySpreadConstraints: 77 + - maxSkew: 1 78 + topologyKey: kubernetes.io/hostname 79 + whenUnsatisfiable: DoNotSchedule 80 + labelSelector: 81 + matchLabels: 82 + app.kubernetes.io/name: *app 83 + service: 84 + app: 85 + controller: *app 86 + ports: 87 + http: 88 + port: *port 89 + metrics: 90 + port: 8080 91 + serviceMonitor: 92 + app: 93 + serviceName: *app 94 + endpoints: 95 + - port: metrics 96 + scheme: http 97 + path: /metrics 98 + interval: 1m 99 + scrapeTimeout: 10s 100 + serviceAccount: 101 + create: true 102 + name: *app
+9
k8s/nebula/apps/databases/dragonfly/app/kustomization.yaml
··· 1 + --- 2 + # yaml-language-server: $schema=https://json.schemastore.org/kustomization 3 + apiVersion: kustomize.config.k8s.io/v1beta1 4 + kind: Kustomization 5 + resources: 6 + # renovate: datasource=github-releases depName=dragonflydb/dragonfly-operator 7 + - https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/v1.1.8/manifests/crd.yaml 8 + - ./hr.yaml 9 + - ./rbac.yaml
+40
k8s/nebula/apps/databases/dragonfly/app/rbac.yaml
··· 1 + --- 2 + apiVersion: rbac.authorization.k8s.io/v1 3 + kind: ClusterRole 4 + metadata: 5 + name: dragonfly-operator 6 + rules: 7 + - apiGroups: ["coordination.k8s.io"] 8 + resources: ["leases"] 9 + verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] 10 + - apiGroups: [""] 11 + resources: ["events"] 12 + verbs: ["create", "patch"] 13 + - apiGroups: [""] 14 + resources: ["pods", "services"] 15 + verbs: ["create", "delete", "get", "list", "patch", "update", "watch"] 16 + - apiGroups: ["apps"] 17 + resources: ["statefulsets"] 18 + verbs: ["create", "delete", "get", "list", "patch", "update", "watch"] 19 + - apiGroups: ["dragonflydb.io"] 20 + resources: ["dragonflies"] 21 + verbs: ["create", "delete", "get", "list", "patch", "update", "watch"] 22 + - apiGroups: ["dragonflydb.io"] 23 + resources: ["dragonflies/finalizers"] 24 + verbs: ["update"] 25 + - apiGroups: ["dragonflydb.io"] 26 + resources: ["dragonflies/status"] 27 + verbs: ["get", "patch", "update"] 28 + --- 29 + apiVersion: rbac.authorization.k8s.io/v1 30 + kind: ClusterRoleBinding 31 + metadata: 32 + name: dragonfly-operator 33 + roleRef: 34 + apiGroup: rbac.authorization.k8s.io 35 + kind: ClusterRole 36 + name: dragonfly-operator 37 + subjects: 38 + - kind: ServiceAccount 39 + name: dragonfly-operator 40 + namespace: database
+25
k8s/nebula/apps/databases/dragonfly/cluster/cluster.yaml
··· 1 + --- 2 + # yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/dragonflydb.io/dragonfly_v1alpha1.json 3 + apiVersion: dragonflydb.io/v1alpha1 4 + kind: Dragonfly 5 + metadata: 6 + name: dragonfly 7 + spec: 8 + image: ghcr.io/dragonflydb/dragonfly:v1.26.1 9 + replicas: 2 10 + env: 11 + - name: MAX_MEMORY 12 + valueFrom: 13 + resourceFieldRef: 14 + resource: limits.memory 15 + divisor: 1Mi 16 + args: 17 + - --maxmemory=$(MAX_MEMORY)Mi 18 + - --proactor_threads=2 19 + - --cluster_mode=emulated 20 + - --default_lua_flags=allow-undeclared-keys 21 + resources: 22 + requests: 23 + cpu: 100m 24 + limits: 25 + memory: 512Mi
+7
k8s/nebula/apps/databases/dragonfly/cluster/kustomization.yaml
··· 1 + --- 2 + # yaml-language-server: $schema=https://json.schemastore.org/kustomization 3 + apiVersion: kustomize.config.k8s.io/v1beta1 4 + kind: Kustomization 5 + resources: 6 + - ./cluster.yaml 7 + - ./podmonitor.yaml
+13
k8s/nebula/apps/databases/dragonfly/cluster/podmonitor.yaml
··· 1 + --- 2 + # yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/monitoring.coreos.com/podmonitor_v1.json 3 + apiVersion: monitoring.coreos.com/v1 4 + kind: PodMonitor 5 + metadata: 6 + name: dragonfly 7 + spec: 8 + selector: 9 + matchLabels: 10 + app: dragonfly 11 + podTargetLabels: [app] 12 + podMetricsEndpoints: 13 + - port: admin
+21
k8s/nebula/apps/databases/dragonfly/ks-cluster.yaml
··· 1 + # yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json 2 + apiVersion: kustomize.toolkit.fluxcd.io/v1 3 + kind: Kustomization 4 + metadata: 5 + name: &app dragonfly-cluster 6 + namespace: flux-system 7 + spec: 8 + targetNamespace: databases 9 + commonMetadata: 10 + labels: 11 + app.kubernetes.io/name: *app 12 + dependsOn: 13 + - name: dragonfly 14 + path: ./k8s/nebula/apps/databases/dragonfly/cluster 15 + prune: true 16 + wait: true 17 + sourceRef: 18 + kind: GitRepository 19 + name: home-ops-kubernetes 20 + interval: 30m 21 + timeout: 5m
+20
k8s/nebula/apps/databases/dragonfly/ks.yaml
··· 1 + --- 2 + # yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json 3 + apiVersion: kustomize.toolkit.fluxcd.io/v1 4 + kind: Kustomization 5 + metadata: 6 + name: &app dragonfly 7 + namespace: flux-system 8 + spec: 9 + targetNamespace: databases 10 + commonMetadata: 11 + labels: 12 + app.kubernetes.io/name: *app 13 + path: ./k8s/nebula/apps/databases/dragonfly/app 14 + prune: true 15 + wait: true 16 + sourceRef: 17 + kind: GitRepository 18 + name: flux-system 19 + interval: 30m 20 + timeout: 5m
+2
k8s/nebula/apps/databases/kustomization.yaml
··· 12 12 - cloudnative-pg/ks.yaml 13 13 - cloudnative-pg/ks-cluster.yaml 14 14 - cloudnative-pg/ks-cluster-vector.yaml 15 + - dragonfly/ks.yaml 16 + - dragonfly/ks-cluster.yaml 15 17 - pgadmin/ks.yaml 16 18 - influx/ks.yaml