-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add operator configuring for crappy name inconsistency
Signed-off-by: Chris Butler <[email protected]>
- Loading branch information
Showing
10 changed files
with
162 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
apiVersion: v2 | ||
name: milvus | ||
description: A Helm chart deploying milvus via the operator | ||
|
||
# A chart can be either an 'application' or a 'library' chart. | ||
# | ||
# Application charts are a collection of templates that can be packaged into versioned archives | ||
# to be deployed. | ||
# | ||
# Library charts provide useful utilities or functions for the chart developer. They're included as | ||
# a dependency of application charts to inject those utilities and functions into the rendering | ||
# pipeline. Library charts do not define any templates and therefore cannot be deployed. | ||
type: application | ||
|
||
# This is the chart version. This version number should be incremented each time you make changes | ||
# to the chart and its templates, including the app version. | ||
# Versions are expected to follow Semantic Versioning (https://semver.org/) | ||
version: 0.1.0 | ||
|
||
# This is the version number of the application being deployed. This version number should be | ||
# incremented each time you make changes to the application. Versions are not expected to | ||
# follow Semantic Versioning. They should reflect the version the application is using. | ||
# It is recommended to use it with quotes. | ||
appVersion: "1.0.0" | ||
|
||
# Get teh chart installed for the milvus operator | ||
dependencies: | ||
- name: milvus-operator | ||
version: "0.9.16" | ||
repository: "https://zilliztech.github.io/milvus-operator/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: operator.openshift.io/v1alpha1 | ||
kind: CertManager | ||
metadata: | ||
name: cluster | ||
spec: | ||
logLevel: Normal | ||
operatorLogLevel: Normal | ||
managementState: Managed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: my-config-map | ||
data: | ||
hello: 'world' |
34 changes: 34 additions & 0 deletions
34
charts/all/milvus-operator/templates/milvus-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# apiVersion: milvus.io/v1beta1 | ||
# kind: Milvus | ||
# metadata: | ||
# name: milvus-test | ||
# namespace: milvus | ||
# labels: | ||
# app: milvus | ||
# spec: | ||
# config: | ||
# minio: | ||
# # your bucket name | ||
# bucketName: milvus | ||
# # Optional, config the prefix of the bucket milvus will use | ||
# rootPath: test-v1 | ||
# useSSL: true | ||
# dependencies: | ||
# storage: | ||
# # enable external object storage | ||
# external: true | ||
# type: S3 # MinIO | S3 | ||
# # the endpoint of AWS S3 | ||
# endpoint: s3.openshift-storage.svc:443 | ||
# # the secret storing the access key and secret key | ||
# secretRef: "milvus-obc-clean" | ||
# etcd: | ||
# inCluster: | ||
# values: | ||
# replicaCount: 3 | ||
# resources: | ||
# limits: | ||
# cpu: 1 | ||
# memory: 4Gi | ||
# deletionPolicy: Delete | ||
# pvcDeletion: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
apiVersion: "external-secrets.io/v1beta1" | ||
kind: ExternalSecret | ||
metadata: | ||
name: milvus-obc-eso | ||
namespace: milvus | ||
spec: | ||
refreshInterval: 15s | ||
secretStoreRef: | ||
name: {{ .Values.secretStore.name }} | ||
kind: {{ .Values.secretStore.kind }} | ||
target: | ||
name: milvus-obc-clean | ||
template: | ||
type: Opaque | ||
dataFrom: | ||
- extract: | ||
key: 'secret/data/global/milvus-s3' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: objectbucket.io/v1alpha1 | ||
kind: ObjectBucketClaim | ||
metadata: | ||
name: milvus-obc | ||
namespace: milvus | ||
spec: | ||
bucketName: milvus | ||
storageClassName: openshift-storage.noobaa.io | ||
additionalConfig: | ||
bucketclass: noobaa-default-bucket-class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
apiVersion: security.openshift.io/v1 | ||
kind: SecurityContextConstraints | ||
metadata: | ||
name: milvus-operator-scc | ||
namespace: | ||
runAsUser: | ||
type: RunAsAny | ||
seLinuxContext: | ||
type: RunAsAny | ||
fsGroup: | ||
type: RunAsAny | ||
users: | ||
- system:serviceaccount:milvus-operator:milvus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: external-secrets.io/v1alpha1 | ||
kind: PushSecret | ||
metadata: | ||
name: milvus-obc # Customisable | ||
namespace: milvus | ||
spec: | ||
updatePolicy: Replace # Policy to overwrite existing secrets in the provider on sync | ||
deletionPolicy: Delete # the provider' secret will be deleted if the PushSecret is deleted | ||
refreshInterval: 10s # Refresh interval for which push secret will reconcile | ||
secretStoreRefs: # A list of secret stores to push secrets to | ||
- name: {{ .Values.secretStore.name }} | ||
kind: {{ .Values.secretStore.kind }} | ||
selector: | ||
secret: | ||
name: milvus-obc # Source Kubernetes secret to be pushed | ||
data: | ||
- match: | ||
secretKey: AWS_ACCESS_KEY_ID # Source Kubernetes secret key to be pushed | ||
remoteRef: | ||
remoteKey: "global/milvus-s3" # Remote reference (where the secret is going to be pushed) | ||
property: accesskey | ||
- match: | ||
secretKey: AWS_SECRET_ACCESS_KEY # Source Kubernetes secret key to be pushed | ||
remoteRef: | ||
remoteKey: "global/milvus-s3" | ||
property: secretkey # Remote reference (where the secret is going to be pushed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
|
||
milvus-operator: | ||
# has to be overriden as there are implicit assumptions name and full name are the same. | ||
fullnameOverride: "milvus-operator" | ||
|
||
|
||
|
||
secretStore: | ||
name: vault-backend | ||
kind: ClusterSecretStore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters