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

update doc for tls #215

Merged
merged 1 commit into from
Dec 5, 2024
Merged
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
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
52 changes: 52 additions & 0 deletions config/samples/internal_tls.yaml
Original file line number Diff line number Diff line change
@@ -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
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
Loading