Skip to content

Commit

Permalink
[fix] - kubectl
Browse files Browse the repository at this point in the history
  • Loading branch information
DevOpsNatalie committed Apr 4, 2024
1 parent 4f09931 commit d9748f8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
30 changes: 8 additions & 22 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ jobs:
memory: "2000Mi"

runs-on: [self-hosted, linux, x86, benchmark]
# runs-on: ubuntu-latest

container:
image: ghcr.io/romange/benchmark-dev:latest
Expand All @@ -50,41 +49,28 @@ jobs:
run: |
apt-get update
apt-get install sudo
sudo -i
echo " " > $HOME/.kube/config
cat $HOME/.kube/config
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.9

- name: FIX Network issue
run: |
export KUBECONFIG=$HOME/.kube/config
export KIND_EXPERIMENTAL_DOCKER_NETWORK=${{ job.container.network }}
- name: Create k8s Kind Cluster
uses: helm/[email protected]
with:
kubectl_version: v1.29.2
kubectl_version: v1.28.0
cluster_name: action
config: .github/workflows/kind-config.yaml

- name: install kubectl
run: |
sudo -i
curl -LO https://dl.k8s.io/release/v1.29.2/bin/linux/amd64/kubectl
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
docker ps -a
docker logs action-control-plane --tail=300
docker describe action-control-plane
- name: DEBUG
run: |
sudo -i
sleep 20
sudo cat $HOME/.kube/config

- name: Install the CRD and Operator
run: |
sudo -i
# Install the CRD and Operator
kubectl apply -f https://raw.githubusercontent.com/dragonflydb/dragonfly-operator/main/manifests/dragonfly-operator.yaml
- name: Apply Configuration
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/kind-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
apiServerAddress: '127.0.0.1'
apiServerPort: 6443

0 comments on commit d9748f8

Please sign in to comment.