-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCommands.txt
100 lines (56 loc) · 2.25 KB
/
Commands.txt
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
Set up RBAC Authentication:
Create a Service Account for the BIG-IP Controller.
#kubectl create serviceaccount bigip-ctlr -n kube-system
In K8s environment:
Remove: - --openshift-sdn-name=/Common/openshift_vxlan
Change: - --manage-routes=false
Commands:
oc get events -n <namespace>
oc scale deployment/k8s-bigip-ctlr -n kube-system --replicas=0
Activate as3 on BIGIP: touch /var/config/rest/iapps/enable
Install BIGIP Controller: https://clouddocs.f5.com/containers/v2/kubernetes/kctlr-app-install.html
Create new BIP-IP Instance command:
Commnads to reinstall BigIP :
$./terraform taint openstack_compute_instance_v2.BIGIP
$./terraform apply glider-infra-openstack
$scp -F glider-infra-openstack/ssh-config glider-infra-openstack/testenv_s* <your_bastion-ip>:~/testenv_symbols/
To install:
"
./terraform init glider-infra-openstack/
./terraform plan glider-infra-openstack/
./terraform apply glider-infra-openstack/
"
Destroy:
$./terraform destroy glider-infra-openstack
Delete route entry:
$ip route
$ip route del <default via 172.16.3.1 dev ens192 proto static metric 102>
Fetch any PR from GIT Hub
---------------------------
#git fetch ${PUBLIC_REPO} pull/${PR}/head:pr_${PR}_build
Example: #git fetch https://github.com/F5Networks/k8s-bigip-ctlr.git pull/1098/head:pr_1098_build
Delete BigIP from glider terraform
----------------------------------
./terraform taint openstack_compute_instance_v2.BIGIP
make functest-setup
Change BIG-IP Version
----------------------
->Chnage BIG-IP versiob in teraaform.tfvars file :version 14.1 to 13.1 or ...
./terraform taint openstack_compute_instance_v2.BIGIP
./terraform apply glider-infra-openstack/
scp -F glider-infra-openstack/ssh-config glider-infra-openstack/testenv_s* <Bastion IP>:~/
OC command lagging issue:
------------------------
login as centos
#chown -R centos:centos ~/.kube
Git hard reset:
---------------
git fetch --all
git reset --hard origin/master
OCP 4.x install system-Common
git clone [email protected]:cc/systest-common.git
sudo chown -R centos:centos ~/.pip/
cp systest-common/conf/pip.conf ~/.pip/
python3.8 -m venv ~/systest-common/systest-venv
source ~/systest-common/systest-venv/bin/activate
pip3.8 install -r ~/systest-common/conf/requirements.txt