diff --git a/config/samples/external_tls.yaml b/config/samples/external_tls.yaml new file mode 100644 index 0000000..4c24621 --- /dev/null +++ b/config/samples/external_tls.yaml @@ -0,0 +1,56 @@ +# This is a sample to enable external tls +--- +apiVersion: v1 +kind: Secret +metadata: + name: certs +type: Opaque +stringData: +# change data to your own certificates +# If you don't have your own certificates, you can create them by following the instructions in the link below +# https://milvus.io/docs/tls.md#Create-your-own-certificate + server.pem: | + -----BEGIN CERTIFICATE----- + change to your own certificate + -----END CERTIFICATE----- + server.key: + -----BEGIN RSA PRIVATE KEY----- + change to your own private key + -----END RSA PRIVATE KEY----- + ca.pem: + -----BEGIN CERTIFICATE----- + change to your own ca certificate + -----END CERTIFICATE----- +--- +apiVersion: milvus.io/v1beta1 +kind: Milvus +metadata: + name: my-release + labels: + app: milvus +spec: + config: + proxy: + http: + # for now not support config restful on same port with grpc + # so we set to 8080, grpc will still use 19530 + port: 8080 + common: + security: + tlsMode: 1 # set to 2 to enable Mutual TLS + # Configure the proxy tls certificates + # if this field not set, it will use the self signed localhost certificates within the image + tls: + serverPemPath: /certs/server.pem + serverKeyPath: /certs/server.key + caPemPath: /certs/ca.pem + components: + # mount the certs secret to the milvus container + volumes: + - name: certs + secret: + secretName: certs + volumeMounts: + - name: certs + mountPath: /certs + readOnly: true diff --git a/config/samples/internal_tls.yaml b/config/samples/internal_tls.yaml new file mode 100644 index 0000000..5220093 --- /dev/null +++ b/config/samples/internal_tls.yaml @@ -0,0 +1,52 @@ +# This is a sample to enable external tls +--- +apiVersion: v1 +kind: Secret +metadata: + name: certs +type: Opaque +# change data to your own certificates +# If you don't have your own certificates, you can create them by following the instructions in the link below +# https://milvus.io/docs/tls.md#Create-your-own-certificate +stringData: + server.pem: | + -----BEGIN CERTIFICATE----- + change to your own certificate + -----END CERTIFICATE----- + server.key: + -----BEGIN RSA PRIVATE KEY----- + change to your own private key + -----END RSA PRIVATE KEY----- + ca.pem: + -----BEGIN CERTIFICATE----- + change to your own ca certificate + -----END CERTIFICATE----- +--- +apiVersion: milvus.io/v1beta1 +kind: Milvus +metadata: + name: my-release + labels: + app: milvus +spec: + config: + common: + security: + internaltlsEnabled: true + # Configure internal tls certificates + # if this field not set, it will use the self signed localhost certificates within the image + internaltls: + serverPemPath: /certs/server.pem + serverKeyPath: /certs/server.key + caPemPath: /certs/ca.pem + sni: localhost # change to your own certificate's hostname + components: + # mount the certs secret to the milvus container + volumes: + - name: certs + secret: + secretName: certs + volumeMounts: + - name: certs + mountPath: /certs + readOnly: true diff --git a/config/samples/milvus_config.yaml b/config/samples/milvus_config.yaml index e37c90b..02dbbd3 100644 --- a/config/samples/milvus_config.yaml +++ b/config/samples/milvus_config.yaml @@ -9,6 +9,7 @@ metadata: spec: dependencies: {} components: {} + # check full configuration options at https://github.com/milvus-io/milvus/blob/master/configs/milvus.yaml config: etcd: rootPath: my-release