Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run DBs in openshift cluster #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions kafka/openshift/kafka-combined.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
apiVersion: kubedb.com/v1
kind: Kafka
metadata:
labels:
app.kubernetes.io/instance: kf-combined
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: kafkas.kubedb.com
name: kf-combined
namespace: demo
spec:
deletionPolicy: WipeOut
monitor:
agent: prometheus.io/operator
prometheus:
exporter:
resources:
requests:
cpu: 100m
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
serviceMonitor:
interval: 30s
labels:
release: kube-prometheus-stack
podTemplate:
spec:
securityContext:
fsGroup: 1000650000
containers:
- name: kafka
resources:
limits:
memory: 1Gi
requests:
cpu: 500m
memory: 1Gi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
replicas: 2
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
storageType: Durable
version: 3.6.1
96 changes: 96 additions & 0 deletions kafka/openshift/kafka-dedicated.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
apiVersion: kubedb.com/v1
kind: Kafka
metadata:
labels:
app.kubernetes.io/instance: kf-dedicated
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: kafkas.kubedb.com
name: kf-dedicated
namespace: demo
spec:
deletionPolicy: WipeOut
monitor:
agent: prometheus.io/operator
prometheus:
exporter:
resources:
requests:
cpu: 100m
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
serviceMonitor:
interval: 30s
labels:
release: kube-prometheus-stack
storageType: Durable
topology:
broker:
podTemplate:
spec:
securityContext:
fsGroup: 1000650000
containers:
- name: kafka
resources:
limits:
memory: 1Gi
requests:
cpu: 500m
memory: 1Gi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
replicas: 2
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
controller:
podTemplate:
spec:
securityContext:
fsGroup: 1000650000
containers:
- name: kafka
resources:
limits:
memory: 1Gi
requests:
cpu: 500m
memory: 1Gi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
replicas: 2
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
version: 3.6.1
83 changes: 83 additions & 0 deletions mariadb/openshift/mariadb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
apiVersion: kubedb.com/v1
kind: MariaDB
metadata:
name: md-test
namespace: demo
spec:
deletionPolicy: WipeOut
monitor:
agent: prometheus.io/operator
prometheus:
exporter:
resources:
requests:
cpu: 100m
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
serviceMonitor:
interval: 30s
labels:
release: kube-prometheus-stack
podTemplate:
spec:
securityContext:
fsGroup: 1000650000
containers:
- name: mariadb
resources:
limits:
memory: 1Gi
requests:
cpu: 500m
memory: 1Gi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
- name: md-coordinator
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
initContainers:
- name: mariadb-init
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
replicas: 3
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
storageType: Durable
version: 11.2.2
85 changes: 85 additions & 0 deletions mongodb/openshift/replicaset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
apiVersion: kubedb.com/v1
kind: MongoDB
metadata:
name: mg7
namespace: demo
spec:
version: "7.0.8"
replicas: 3
storageType: Durable
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
replicaSet:
name: rs0
podTemplate:
spec:
securityContext:
fsGroup: 1000650000
containers:
- name: mongodb
resources:
requests:
cpu: 700m
memory: 1Gi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
- name: replication-mode-detector
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
initContainers:
- name: copy-config
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
deletionPolicy: WipeOut
monitor:
agent: prometheus.io/operator
prometheus:
exporter:
args:
- --compatible-mode
resources:
requests:
cpu: 100m
memory: 128Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsGroup: 0
runAsNonRoot: true
runAsUser: 1000650000
seccompProfile:
type: RuntimeDefault
serviceMonitor:
interval: 30s
labels:
{}
Loading