Skip to content
Snippets Groups Projects
Unverified Commit 26a79f79 authored by Mark Sagi-Kazar's avatar Mark Sagi-Kazar
Browse files

feat: add kustomize manifests

parent 0114ab68
No related branches found
No related tags found
No related merge requests found
Showing
with 12629 additions and 0 deletions
Source diff could not be displayed: it is too large. Options to address this: view the blob.
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-operator
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
spec:
containers:
- name: redis-operator
image: quay.io/spotahome/redis-operator:latest
imagePullPolicy: IfNotPresent
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
restartPolicy: Always
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app.kubernetes.io/name: redis-operator
resources:
- databases.spotahome.com_redisfailovers.yaml
- deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-operator
spec:
template:
spec:
containers:
- name: redis-operator
ports:
- name: metrics
containerPort: 9710
protocol: TCP
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
resources:
- service.yaml
- servicemonitor.yaml
patchesStrategicMerge:
- deployment.yaml
configurations:
- kustomizeconfig.yaml
commonLabels:
- group: monitoring.coreos.com
version: v1
kind: ServiceMonitor
path: spec/selector/matchLabels
create: true
apiVersion: v1
kind: Service
metadata:
name: redis-operator
spec:
type: ClusterIP
ports:
- name: metrics
port: 9710
protocol: TCP
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: redis-operator
spec:
endpoints:
- port: metrics
interval: 15s
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: redis-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: redis-operator
subjects:
- kind: ServiceAccount
name: redis-operator
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-operator
spec:
template:
spec:
serviceAccountName: redis-operator
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
components:
- ../rbac/
resources:
- clusterrolebinding.yaml
- serviceaccount.yaml
patchesStrategicMerge:
- deployment.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: redis-operator
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: redis-operator
rules:
- apiGroups:
- databases.spotahome.com
resources:
- redisfailovers
- redisfailovers/finalizers
verbs:
- "*"
- apiGroups:
- apiextensions.k8s.io
resources:
- customresourcedefinitions
verbs:
- "*"
- apiGroups:
- ""
resources:
- pods
- services
- endpoints
- events
- configmaps
- secrets
- persistentvolumeclaims
- persistentvolumeclaims/finalizers
verbs:
- "*"
- apiGroups:
- apps
resources:
- deployments
- statefulsets
verbs:
- "*"
- apiGroups:
- policy
resources:
- poddisruptionbudgets
verbs:
- "*"
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
resources:
- clusterrole.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-operator
spec:
template:
spec:
containers:
- name: redis-operator
resources:
limits:
# cpu: 100m
memory: 50Mi
requests:
cpu: 10m
memory: 50Mi
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
patchesStrategicMerge:
- deployment.yaml
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
labels:
- pairs:
app.kubernetes.io/version: 1.1.1
images:
- name: quay.io/spotahome/redis-operator
newTag: v1.1.1
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app.kubernetes.io/name: redis-operator
app.kubernetes.io/instance: redis-operator
components:
- ../../components/resources/
- ../../components/version/
resources:
- ../minimal/
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app.kubernetes.io/name: redis-operator
app.kubernetes.io/instance: redis-operator
components:
- ../../components/monitoring/
- ../../components/version/
resources:
- ../default/
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
commonLabels:
app.kubernetes.io/name: redis-operator
app.kubernetes.io/instance: redis-operator
components:
- ../../components/rbac-full/
- ../../components/version/
resources:
- ../../base/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment