Prerequisites
- A DC/OS Service Account with a secret stored in the DC/OS Secret Store
- DC/OS Superuser permissions for modifying the permissions of the service account
- DC/OS CLI installed, either the Open Source or Enterprise version:
- You are logged in as a superuser.
- If your security mode is permissive or strict, you must get the root cert before issuing the
curl
commands in this section.
Configure Transport Encryption
See the Security Section, to configure Service Account and Service Account Secret. Configuring TLS in DC/OS requires a Service Account and Service Account Secret.
Grant the service account the correct permissions.
In DC/OS 1.10 and later, the required permission is dcos:superuser full
, where <service name>
is the name of the service to be installed.:
curl -k -v $(dcos config show core.dcos_url)/ca/dcos-ca.crt -o ../dcos-ca.crt
export LC_ALL=C.UTF-8
export LANG=C.UTF-8
dcos package install dcos-enterprise-cli
dcos security org service-accounts keypair minio-private-key.pem minio-public-key.pem
dcos security org service-accounts create -p minio-public-key.pem -d "dcos_minio" <service name>
dcos security secrets create-sa-secret --strict minio-private-key.pem <service name> <service name secret>
dcos security org users grant <service name> dcos:superuser full --description "grant permission to superuser"
dcos security org users grant dcos_minio dcos:adminrouter:ops:ca:rw full --description "grant permission to adminrouter"
dcos security org users grant dcos_minio dcos:secrets:default:miniodemo full --description "grant permission to miniodemo"
Install the service
Install the DC/OS Minio service, including the following options in addition to your own:
{
"service": {
"service_account": "<your service account name>",
"service_account_secret": "<full path of service secret>",
"security": {
"tls_ssl": {
"enabled": true
}
}
}
}