-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path3.deploy-bigip-kubernetes-gateway-controller.yaml
100 lines (92 loc) · 2.65 KB
/
3.deploy-bigip-kubernetes-gateway-controller.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
---
apiVersion: v1
kind: Secret
metadata:
name: bigip-login
namespace: kube-system
stringData:
password: P@ssw0rd123
type: Opaque
---
apiVersion: v1
kind: ConfigMap
metadata:
name: bigip-kubernetes-gateway-controller-configmap
namespace: kube-system
data:
bigip-kubernetes-gateway-config: |
- management:
username: admin
ipAddress: 10.250.11.186
port: 443
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: bigip-kubernetes-gateway-controller
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
app: bigip-kubernetes-gateway-controller-pod
template:
metadata:
name: bigip-kubernetes-gateway-controller-pod
labels:
app: bigip-kubernetes-gateway-controller-pod
spec:
serviceAccountName: k8s-bigip-ctlr
nodeSelector:
# node-role.kubernetes.io/control-plane: "true"
# node-role.kubernetes.io/master: "true"
containers:
# kubectl logs -f deployment/bigip-kubernetes-gateway-controller -n kube-system
- name: bigip-kubernetes-gateway-controller-pod
# image: f5devcentral/bigip-kubernetes-gateway:v0.2.1-20230411
# image: zongzw/bigip-kubernetes-gateway:latest-20230317-150818
# image: zongzw/bigip-kubernetes-gateway-controller:latest-20231127-213249
image: zongzw/bigip-kubernetes-gateway-controller:latest-20231221-214041
imagePullPolicy: IfNotPresent
command: ["/bigip-kubernetes-gateway-controller-linux"]
args: [
"--controller-name=f5.io/gateway-controller-name",
"--bigip-config-directory=/bigip-config",
"--bigip-credential-directory=/bigip-credential"
]
volumeMounts:
- name: bigip-credential
mountPath: /bigip-credential
readOnly: true
- name: bigip-config
mountPath: /bigip-config
readOnly: true
volumes:
- name: bigip-credential
secret:
secretName: bigip-login
- name: bigip-config
configMap:
name: bigip-kubernetes-gateway-controller-configmap
---
# expose the Prometheus port with NodePort
apiVersion: v1
kind: Service
metadata:
name: bigip-kubernetes-gateway-controller
namespace: kube-system
spec:
selector:
app: bigip-kubernetes-gateway-controller-pod
ports:
- name: bigip-kubernetes-gateway-controller-metrics
protocol: TCP
port: 8080
targetPort: 8080
nodePort: 30080
- name: bigip-kubernetes-gateway-controller-health
protocol: TCP
port: 8081
targetPort: 8081
nodePort: 30081
type: NodePort