ConfigurationBuilder builder = new ConfigurationBuilder();
builder.addServer()
// Connection
.host("${APPLICATION_NAME}.${SERVICE_NAMESPACE}.svc").port(11222)
.security()
// Authentication
.authentication().enable()
.username("${USERNAME}")
.password("${PASSWORD}")
.serverName("${APPLICATION_NAME}")
.saslMechanism("DIGEST-MD5")
.saslQop(SaslQop.AUTH)
// Encryption
.ssl()
.trustStorePath(/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt);
ConfigurationBuilder builder = new ConfigurationBuilder();
builder.addServer()
// Connection
.host("${APPLICATION_NAME}.${SERVICE_NAMESPACE}.svc").port(11222)
.security()
// Authentication
.authentication().enable()
.username("${USERNAME}")
.password("${PASSWORD}")
.serverName("${APPLICATION_NAME}")
.saslMechanism("DIGEST-MD5")
.saslQop(SaslQop.AUTH)
// Encryption
.ssl()
.trustStorePath(/var/run/secrets/kubernetes.io/serviceaccount/service-ca.crt);
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow