-
Notifications
You must be signed in to change notification settings - Fork 0
/
90-hello-world.yaml
109 lines (106 loc) · 2.63 KB
/
90-hello-world.yaml
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
---
apiVersion: v1
kind: Namespace
metadata:
name: nat46
annotations:
k8s.ovn.org/hybrid-overlay-external-gw: 192.168.15.100
k8s.ovn.org/hybrid-overlay-vtep: 192.168.222.152
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: f5-hello-world
namespace: nat46
spec:
replicas: 1
selector:
matchLabels:
app: f5-hello-world
template:
metadata:
labels:
app: f5-hello-world
#annotations:
# k8s.v1.cni.cncf.io/networks: '[{"name": "workercnfens1f1vf0", "namespace": "nat46", "mac": "20:04:0f:f1:88:06","ips": ["10.46.48.6/24", "2620:52:0:2e30::6/64"]}]'
spec:
nodeSelector:
kubernetes.io/hostname: worker000
containers:
- env:
- name: service_name
value: f5-hello-world
image: rhscl/httpd-24-rhel7:latest
imagePullPolicy: Always
name: f5-hello-world
ports:
- containerPort: 8080
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: f5-hello-world
namespace: nat46
labels:
app: f5-hello-world
cis.f5.com/as3-tenant: AS3
cis.f5.com/as3-app: A1
cis.f5.com/as3-pool: web_pool
spec:
ports:
- name: f5-hello-world
port: 8080
protocol: TCP
targetPort: 8080
type: NodePort
selector:
app: f5-hello-world
---
kind: ConfigMap
apiVersion: v1
metadata:
name: f5-as3-declaration
namespace: nat46
labels:
f5type: virtual-server
as3: "true"
data:
template: |
{
"class": "AS3",
"declaration": {
"class": "ADC",
"schemaVersion": "3.13.0",
"id": "urn:uuid:33045210-3ab8-4636-9b2a-c98d22ab915d",
"label": "https",
"remark": "A1 Template",
"AS3": {
"class": "Tenant",
"A1": {
"class": "Application",
"template": "http",
"serviceMain": {
"class": "Service_HTTP",
"remark": "a1",
"virtualAddresses": [
"192.168.222.150"
],
"pool": "web_pool"
},
"web_pool": {
"class": "Pool",
"monitors": [
"http"
],
"members": [
{
"servicePort": 8080,
"serverAddresses": []
}
]
}
}
}
}
}