Skip to content

Commit

Permalink
OSFUSE-867: end-to-end TLS using re-encryption termination
Browse files Browse the repository at this point in the history
  • Loading branch information
astefanutti committed May 24, 2018
1 parent 1f413c4 commit 9c22d65
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 10 deletions.
29 changes: 24 additions & 5 deletions fis-console-cluster-template.json
Expand Up @@ -91,7 +91,7 @@
},
"tls": {
"insecureEdgeTerminationPolicy": "Redirect",
"termination": "edge"
"termination": "reencrypt"
}
}
},
Expand All @@ -105,12 +105,15 @@
"group": "console",
"app": "${APP_NAME}",
"version": "${APP_VERSION}"
},
"annotations": {
"service.alpha.openshift.io/serving-cert-secret-name": "${APP_NAME}-tls"
}
},
"spec": {
"ports": [
{
"port": 80,
"port": 443,
"protocol": "TCP",
"targetPort": "nginx"
}
Expand Down Expand Up @@ -192,21 +195,23 @@
"readinessProbe" : {
"httpGet" : {
"path" : "/online",
"port" : "nginx"
"port" : "nginx",
"scheme": "HTTPS"
},
"initialDelaySeconds" : 5
},
"livenessProbe" : {
"httpGet" : {
"path" : "/online",
"port" : "nginx"
"port" : "nginx",
"scheme": "HTTPS"
},
"initialDelaySeconds" : 10,
"periodSeconds": 10
},
"ports": [
{
"containerPort": 8080,
"containerPort": 8443,
"name": "nginx"
}
],
Expand All @@ -220,6 +225,12 @@
"value": "${APP_NAME}-oauth-client"
}
],
"volumeMounts": [
{
"mountPath": "/etc/tls/private",
"name": "${APP_NAME}-tls"
}
],
"resources": {
"requests": {
"cpu": "${CPU_REQUEST}",
Expand All @@ -231,6 +242,14 @@
}
}
}
],
"volumes": [
{
"name": "${APP_NAME}-tls",
"secret": {
"secretName": "${APP_NAME}-tls"
}
}
]
}
}
Expand Down
29 changes: 24 additions & 5 deletions fis-console-namespace-template.json
Expand Up @@ -90,7 +90,7 @@
},
"tls": {
"insecureEdgeTerminationPolicy": "Redirect",
"termination": "edge"
"termination": "reencrypt"
}
}
},
Expand All @@ -104,12 +104,15 @@
"group": "console",
"app": "${APP_NAME}",
"version": "${APP_VERSION}"
},
"annotations": {
"service.alpha.openshift.io/serving-cert-secret-name": "${APP_NAME}-tls"
}
},
"spec": {
"ports": [
{
"port": 80,
"port": 443,
"protocol": "TCP",
"targetPort": "nginx"
}
Expand Down Expand Up @@ -198,21 +201,23 @@
"readinessProbe" : {
"httpGet" : {
"path" : "/online",
"port" : "nginx"
"port" : "nginx",
"scheme": "HTTPS"
},
"initialDelaySeconds" : 5
},
"livenessProbe" : {
"httpGet" : {
"path" : "/online",
"port" : "nginx"
"port" : "nginx",
"scheme": "HTTPS"
},
"initialDelaySeconds" : 10,
"periodSeconds": 10
},
"ports": [
{
"containerPort": 8080,
"containerPort": 8443,
"name": "nginx"
}
],
Expand All @@ -234,6 +239,12 @@
"value": "${APP_NAME}-service-account"
}
],
"volumeMounts": [
{
"mountPath": "/etc/tls/private",
"name": "${APP_NAME}-tls"
}
],
"resources": {
"requests": {
"cpu": "${CPU_REQUEST}",
Expand All @@ -245,6 +256,14 @@
}
}
}
],
"volumes": [
{
"name": "${APP_NAME}-tls",
"secret": {
"secretName": "${APP_NAME}-tls"
}
}
]
}
}
Expand Down

0 comments on commit 9c22d65

Please sign in to comment.