Unverified Commit 6756e483 authored by Oilbeater's avatar Oilbeater Committed by GitHub
Browse files

Merge pull request #418 from alauda/ci/ipv6

ci: add ipv6 install e2e
parents 6f187c44 82140c93
master acl acl-doc add_unknown_to_lsp allow-subnet bandwidth base/enable-dbg centralized-policy-route centralized_nat chore/coc-roadmap chore/show-gw-error chore/size ci/arm-pr ci/base ci/base-update ci/retry ci/trivy ci/ubuntu-version ci/update-kind cni crd-print db-monitor debug delete-qos delete-qos-queue delete_ip dev/2.13 doc/custom-kubeconfig doc/optimization doc/vip docs/corigine docs/dpdk-pod-name docs/iface-ic docs/internal-port-vlan docs/namespace docs/optimize docs/optimize-cilium dualstack dualstack_merge ecmp ecmp_static_route encap-ip env-check fdb feat/add-lint feat/bgp feat/dev-image feat/disable-ping-check feat/distribute-eip feat/gw feat/keep-chassis-name feat/ko feat/log feat/mcast feat/multicast feat/ovn-ic feat/remove-cluster-ip feat/sfc feat/ssl feat/update-ovn feat/vlan-geneve feat/vlan-regex feat/vpc-lb fix-base fix-dnat fix-resubmit-limit fix/acl fix/avx512 fix/check-crd fix/check-special-subnet fix/cleanup fix/ecmp-hash fix/forward-accept fix/gw-del fix/ic-restart fix/init-ping fix/iptables fix/ipv6-svc fix/metrics-name fix/missing-date fix/node-acl fix/np-log fix/ovn-healthcheck fix/ovn-northd-flipflop fix/pod-del fix/provider-check fix/reset-ovn0 fix/src-priority fix/sriov-issues fix/subnet-without-protocol fix/udp-checksum fix/uninstall fix_make_kind_reload gc-vm-lsp internal-port internal_port internal_tcpdump ip join klog/v2 log/rotate ls-dnat-mod-dl-dst lsp-address lsp-ipam mahz-master monitor/metrics monitor_db_con multus multus-cni-update namespace nat-gw nbctl networkpolicy nodeport np_master ns-subnet ovn-controller ovn-db-recover ovs-nonstop ovs-win64-ci perf/4.18 perf/alias perf/libovsdb perf/optimization perf/route-port-address perf/stt perf/tuning-guide poc policy-route policy-route-1.8 port-group push-img qos qos-e2e qos-query refactor/other_config reflactor_note release-1.10 release-1.3 release-1.4 release-1.5 release-1.5-vpc release-1.5.2 release-1.6 release-1.7 release-1.8 release-1.8-kubevirt release-1.8-lint release-1.8-monitor release-1.9 release-1.9-monitor release/prepare-1.9 remove_no_need_parms_svcAsName restore revert-1094-vpc-lb revert-1264-yd-master revert-1309-fixcni security/ubuntu-update security/update-ubuntu sg-acl stspod subnet subnet_ips svc sync-ovn-db test/fix-flaky testing update-ovs update/1.7-1.8 update/1.8.2 update_version upgrade-ovs vm-migrate vm-static-ip vpc-nat-gw webhook v1.10.7 v1.10.6 v1.10.5 v1.10.4 v1.10.3 v1.10.2 v1.10.1 v1.10.0 v1.9.14 v1.9.13 v1.9.12 v1.9.10 v1.9.9 v1.9.8 v1.9.7 v1.9.6 v1.9.5 v1.9.4 v1.9.3 v1.9.2 v1.9.1 v1.9.0 v1.8.14 v1.8.12 v1.8.11 v1.8.9 v1.8.8 v1.8.7 v1.8.6 v1.8.5 v1.8.4 v1.8.3 v1.8.2 v1.8.1 v1.8.0 v1.7.3 v1.7.2 v1.7.1 v1.7.0 v1.6.3 v1.6.2 v1.6.1 v1.6.0 v1.5.2 v1.5.1 v1.5.0 v1.4.0 v1.3.0
No related merge requests found
Showing with 70 additions and 6 deletions
+70 -6
......@@ -32,6 +32,14 @@ jobs:
- name: Docker Buildx
uses: crazy-max/ghaction-docker-buildx@v3
- name: Go Build Cache
uses: actions/cache@v2
with:
path: /home/runner/.cache/go-build
key: ${{ runner.os }}-go-x86-build-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-x86-build-
- name: Go Mod Cache
uses: actions/cache@v2
with:
......@@ -67,7 +75,7 @@ jobs:
name: image
path: image.tar
singlee2e:
single-e2e:
needs: build
name: 1-master-e2e
runs-on: ubuntu-latest
......@@ -105,7 +113,7 @@ jobs:
sudo chmod 666 /home/runner/.kube/config
make e2e
hae2e:
ha-e2e:
needs: build
name: 3-master-e2e
runs-on: ubuntu-latest
......@@ -143,8 +151,37 @@ jobs:
sudo chmod 666 /home/runner/.kube/config
make e2e
ipv6-e2e:
needs: build
name: ipv6-e2e
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Init Kind
run: |
pip install j2cli --user
pip install "j2cli[yaml]" --user
sudo PATH=~/.local/bin:$PATH make kind-init-ipv6
- name: Download image
uses: actions/download-artifact@v2
with:
name: image
- name: Load Image
run: |
docker load --input image.tar
- name: Install Kube-OVN
run: |
docker load --input image.tar
sudo make kind-install-ipv6
push:
needs: [singlee2e, hae2e]
needs: [single-e2e, ha-e2e, ipv6-e2e]
name: push
runs-on: ubuntu-latest
steps:
......
......@@ -65,16 +65,30 @@ kind-init:
kind delete cluster --name=kube-ovn
ip_family=ipv4 ha=false j2 yamls/kind.yaml.j2 -o yamls/kind.yaml
kind create cluster --config yamls/kind.yaml --name kube-ovn
kubectl get no -o wide
kind-install:
kind load docker-image --name kube-ovn ${REGISTRY}/kube-ovn:${RELEASE_TAG}
kubectl taint node kube-ovn-control-plane node-role.kubernetes.io/master:NoSchedule-
bash dist/images/install.sh
dist/images/install.sh
kubectl get no -o wide
kind-init-ha:
kind delete cluster --name=kube-ovn
ip_family=ipv4 ha=true j2 yamls/kind.yaml.j2 -o yamls/kind.yaml
kind create cluster --config yamls/kind.yaml --name kube-ovn
kubectl get no -o wide
kind-init-ipv6:
kind delete cluster --name=kube-ovn
ip_family=ipv6 ha=false j2 yamls/kind.yaml.j2 -o yamls/kind.yaml
kind create cluster --config yamls/kind.yaml --name kube-ovn
kubectl get no -o wide
kind-install-ipv6:
kind load docker-image --name kube-ovn ${REGISTRY}/kube-ovn:${RELEASE_TAG}
kubectl taint node kube-ovn-control-plane node-role.kubernetes.io/master:NoSchedule-
IPv6=true dist/images/install.sh
kind-reload:
kind load docker-image --name kube-ovn ${REGISTRY}/kube-ovn:${RELEASE_TAG}
......
#!/usr/bin/env bash
set -euo pipefail
IPv6=${IPv6:-false}
REGISTRY="kubeovn"
NAMESPACE="kube-system" # The ns to deploy kube-ovn
POD_CIDR="10.16.0.0/16" # Do NOT overlap with NODE/SVC/JOIN CIDR
EXCLUDE_IPS="" # EXCLUDE_IPS for default subnet
SVC_CIDR="10.96.0.0/12" # Do NOT overlap with NODE/POD/JOIN CIDR
JOIN_CIDR="100.64.0.0/16" # Do NOT overlap with NODE/POD/SVC CIDR
PINGER_EXTERNAL_ADDRESS="114.114.114.114" # Pinger check external ip probe
PINGER_EXTERNAL_DOMAIN="alauda.cn" # Pinger check external domain probe
if [ "$IPv6" = "true" ]; then
POD_CIDR="fd00:10:16::/64" # Do NOT overlap with NODE/SVC/JOIN CIDR
SVC_CIDR="fd00:10:96::/112" # Do NOT overlap with NODE/POD/JOIN CIDR
JOIN_CIDR="fd00:100:64::/64" # Do NOT overlap with NODE/POD/SVC CIDR
PINGER_EXTERNAL_ADDRESS="2400:3200::1"
PINGER_EXTERNAL_DOMAIN="google.com"
fi
EXCLUDE_IPS="" # EXCLUDE_IPS for default subnet
LABEL="node-role.kubernetes.io/master" # The node label to deploy OVN DB
IFACE="" # The nic to support container network, if empty will use the nic that the default route use
NETWORK_TYPE="geneve" # geneve or vlan
......@@ -1256,7 +1268,7 @@ spec:
containers:
- name: pinger
image: "$REGISTRY/kube-ovn:$VERSION"
command: ["/kube-ovn/kube-ovn-pinger", "--external-address=114.114.114.114", "--external-dns=alauda.cn"]
command: ["/kube-ovn/kube-ovn-pinger", "--external-address=$PINGER_EXTERNAL_ADDRESS", "--external-dns=$PINGER_EXTERNAL_DOMAIN"]
imagePullPolicy: $IMAGE_PULL_POLICY
securityContext:
runAsUser: 0
......
......@@ -81,6 +81,7 @@ func ParseFlags() (*Configuration, error) {
if err := config.initKubeClient(); err != nil {
return nil, err
}
klog.Infof("pinger config is %+v", config)
return config, nil
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment