Skip to content

Commit

Permalink
added CI for ixia-c k8s kustomize deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
ashutshkumr committed Oct 20, 2023
1 parent 59858ce commit 070fed8
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 13 deletions.
45 changes: 42 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
with:
name: examples_curl
path: |
logs
conformance/logs
examples_go_py:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -72,9 +72,48 @@ jobs:
with:
name: examples_go_py
path: |
logs
conformance/logs
deployment_network_emulation:
deployments_k8s:
runs-on: ubuntu-22.04
steps:
- name: Checkout source
uses: actions/checkout@v3
with:
submodules: true
- name: Setup docker
uses: docker-practice/actions-setup-docker@master
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- name: Setup Cluster
run: |
cd deployments/k8s
sed -n '26,34p' readme.md > setup-cluster.sh
sh setup-cluster.sh
- name: Download images
run: |
cd deployments/k8s
sed -n '42,49p' readme.md > download-images.sh
sh download-images.sh
- name: Setup Pods and Services
run: |
cd deployments/k8s
sed -n '61,64p' readme.md > setup-pods-services.sh
sh setup-pods-services.sh
- name: Setup tests
run: |
cd deployments/k8s
sed -n '75,77p' readme.md > setup-tests.sh
sh setup-tests.sh
- name: Run tests
run: |
cd deployments/k8s
sed -n '85,86p' readme.md > run-tests.sh
sh run-tests.sh
deployments_k8s_network_emulation:
runs-on: ubuntu-22.04
steps:
- name: Checkout source
Expand Down
6 changes: 3 additions & 3 deletions deployments/k8s/components/images/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component

# Release: https://github.com/open-traffic-generator/ixia-c/releases/tag/v0.0.1-4554
# Release: https://github.com/open-traffic-generator/ixia-c/releases/tag/v0.1.0-3
images:
- name: keng-controller
newName: ghcr.io/open-traffic-generator/keng-controller
newTag: "0.0.1-4554"
newTag: "0.1.0-3"
- name: otg-gnmi-server
newName: ghcr.io/open-traffic-generator/otg-gnmi-server
newTag: "1.12.7"
newTag: "1.13.0"
- name: ixia-c-traffic-engine
newName: ghcr.io/open-traffic-generator/ixia-c-traffic-engine
newTag: "1.6.0.85"
12 changes: 5 additions & 7 deletions deployments/k8s/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@ This section hosts [kustomize](https://kustomize.io/) manifests for deploying va

### Prerequisites

- Recommended OS is Ubuntu LTS release.
- At least 2 CPU cores
- At least 6GB RAM
- At least 10GB Free Hard Disk Space
- Go 1.17+ or Python 3.6+ (with pip)
- Docker Engine (Community Edition)
- At least **2 x86 CPU cores**, **7GB RAM** and **30GB Free Hard Disk Space**
- Recommended OS is **Ubuntu 22.04 LTS** release.
- Go **1.20+**
- **Docker Engine** (Community Edition) - Needed when using kind for setting up K8S cluster

> Please make sure that current working directory is `deployments/k8s`.
Expand All @@ -26,7 +24,7 @@ This section hosts [kustomize](https://kustomize.io/) manifests for deploying va

```bash
# install kind
go install sigs.k8s.io/kind@v0.16.0
go install sigs.k8s.io/kind@v0.20.0
# create cluster with custom configuration
kind create cluster --config=kind.yaml --wait 30s
# install compatible kubectl
Expand Down

0 comments on commit 070fed8

Please sign in to comment.