-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapps-03-configmap-3-SSL-apps.yml
135 lines (135 loc) · 6.6 KB
/
apps-03-configmap-3-SSL-apps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
kind: ConfigMap
apiVersion: v1
metadata:
name: f5-as3-declaration
namespace: default
labels:
f5type: virtual-server
as3: "true"
data:
template: |
{
"class": "AS3",
"declaration": {
"class": "ADC",
"schemaVersion": "3.10.0",
"id": "urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d",
"label": "http",
"remark": "Simple HTTP application with RR pool",
"Common": {
"class": "Tenant",
"Shared": {
"class": "Application",
"template": "shared",
"XFF_HTTP_Profile": {
"class": "HTTP_Profile",
"xForwardedFor": true
}
}
},
"AS3": {
"class": "Tenant",
"A1": {
"class": "Application",
"template": "generic",
"ingress": {
"class": "Service_HTTP",
"virtualAddresses": [
"10.2.1.7"
],
"virtualPort": 80,
"remark":"ingress: f5 hello world web apps",
"pool": "web_pool"
},
"web_pool": {
"class": "Pool",
"monitors": [
"http"
],
"members": [
{
"servicePort": 8080,
"serverAddresses": []
}
]
}
},
"A2": {
"class": "Application",
"template": "generic",
"ingress": {
"class": "Service_HTTP",
"virtualAddresses": [
"10.2.1.8"
],
"virtualPort": 80,
"remark":"ingress: hackazone apps",
"pool": "hackazone_pool"
},
"hackazone_pool": {
"class": "Pool",
"monitors": [
"http"
],
"members": [
{
"servicePort": 80,
"serverAddresses": []
}
]
}
},
"A3": {
"class": "Application",
"template": "generic",
"ingress": {
"class": "Service_HTTPS",
"virtualAddresses": [
"10.2.1.6"
],
"virtualPort": 443,
"remark":"ingress: nginx.waf.http.v1",
"pool": "nginx_pool",
"serverTLS": "demo_apps_webtls",
"profileHTTP":{"use": "/Common/Shared/XFF_HTTP_Profile"},
"policyWAF":{"bigip":"/Common/linux-low"},
"securityLogProfiles": [
{
"bigip": "/Common/Log all requests"
}
]
},
"nginx_pool": {
"class": "Pool",
"monitors": [
"http"
],
"members": [
{
"servicePort": 80,
"serverAddresses": []
}
]
},
"demo_apps_webtls": {
"class": "TLS_Server",
"certificates": [
{
"certificate": "webcert"
}
]
},
"webcert": {
"class": "Certificate",
"remark": "in practice we recommend using a passphrase",
"certificate": "-----BEGIN CERTIFICATE-----\nMIICnDCCAgWgAwIBAgIJAJ5n2b0OCEjwMA0GCSqGSIb3DQEBCwUAMGcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApXYXNoaW5ndG9uMRAwDgYDVQQHDAdTZWF0dGxlMRQwEgYDVQQKDAtmNV9OZXR3b3JrczEbMBkGA1UEAwwSc2FtcGxlLmV4YW1wbGUubmV0MB4XDTE3MTEyNjE5NTAyNFoXDTE4MDIyNTE5NTAyNFowZzELMAkGA1UEBhMCVVMxEzARBgNVBAgMCldhc2hpbmd0b24xEDAOBgNVBAcMB1NlYXR0bGUxFDASBgNVBAoMC2Y1X05ldHdvcmtzMRswGQYDVQQDDBJzYW1wbGUuZXhhbXBsZS5uZXQwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALEsuXmSXVQpYjrZPW+WiTBjn491mwZYT7Q92V1HlSBtM6WdWlK1aZN5sovfKtOX7Yrm8xa+e4o/zJ2QYLyyv5O+t2EGN/4qUEjEAPY9mwJdfzRQy6Hyzm84J0QkTuUJ/EjNuPji3D0QJRALUTzu1UqqDCEtiN9OGyXEkh7uvb7BAgMBAAGjUDBOMB0GA1UdDgQWBBSVHPNrGWrjWyZvckQxFYWO59FRFjAfBgNVHSMEGDAWgBSVH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r4B1ojwhogTM248V\nHR69D6TxFVMfGpyJhCPkbGEGbpEpcffpgKuC/mEtMqyDQXJNaV5HO6HgAJ9F1P6v\n5ehHHTMRvzCCFiwndHdlMXUjqSNjww6me6dr6LiAPbejdzhL2vWx1YqebOcwQx3G\n-----END RSA PRIVATE KEY-----",
"passphrase": {
"ciphertext": "ZjVmNQ==",
"protected": "eyJhbGciOiJkaXIiLCJlbmMiOiJub25lIn0"
}
}
}
}
}
}