Skip to content

Commit

Permalink
update doc for tls
Browse files Browse the repository at this point in the history
Signed-off-by: haorenfsa <[email protected]>
  • Loading branch information
haorenfsa committed Dec 5, 2024
1 parent e2c812a commit 2351aa2
Show file tree
Hide file tree
Showing 3 changed files with 108 additions and 0 deletions.
56 changes: 56 additions & 0 deletions config/samples/external_tls.yaml
Original file line number Diff line number Diff line change
@@ -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
51 changes: 51 additions & 0 deletions config/samples/internal_tls.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# 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
components:
# mount the certs secret to the milvus container
volumes:
- name: certs
secret:
secretName: certs
volumeMounts:
- name: certs
mountPath: /certs
readOnly: true
1 change: 1 addition & 0 deletions config/samples/milvus_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2351aa2

Please sign in to comment.