-
Hi everyone, error: You must be logged in to the server (Unauthorized) Can someone help me to solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 33 replies
-
Looks like a problem with the kubeconfig settings, Can you provide the steps to reproduce it? |
Beta Was this translation helpful? Give feedback.
-
Yeah sure. I followed the instruction for the installation of minikube and kwok and executed these commands: minikube start |
Beta Was this translation helpful? Give feedback.
-
I would like to simulate a Argo workflow pipeline using fake nodes, don't I need to start minikube before? |
Beta Was this translation helpful? Give feedback.
-
Follow the steps below and I guess it should be what you want Set up clusterwget https://github.com/kubernetes-sigs/kwok/raw/main/stages/pod-fast.yaml
sed 's/Job/Workflow/g' pod-fast.yaml > workflow-fast.yaml
kwokctl create cluster --runtime kind -c workflow-fast.yaml Deploy argokubectl create namespace argo
kubectl apply -n argo -f https://github.com/argoproj/argo-workflows/releases/download/v3.4.8/install.yaml
kubectl patch deploy argo-server -n argo --type=json -p='[{"op":"add","path":"/spec/template/spec/nodeName","value":"kwok-kwok-control-plane"}]'
kubectl patch deploy workflow-controller -n argo --type=json -p='[{"op":"add","path":"/spec/template/spec/nodeName","value":"kwok-kwok-control-plane"}]' Create nodekubectl apply -f - <<EOF
apiVersion: v1
kind: Node
metadata:
annotations:
node.alpha.kubernetes.io/ttl: "0"
kwok.x-k8s.io/node: fake
labels:
beta.kubernetes.io/arch: amd64
beta.kubernetes.io/os: linux
kubernetes.io/arch: amd64
kubernetes.io/hostname: kwok-node-0
kubernetes.io/os: linux
kubernetes.io/role: agent
node-role.kubernetes.io/agent: ""
type: kwok
name: kwok-node-0
status:
allocatable:
cpu: 32
memory: 256Gi
pods: 110
capacity:
cpu: 32
memory: 256Gi
pods: 110
EOF Testargo submit -n argo --watch https://raw.githubusercontent.com/argoproj/argo-workflows/master/examples/hello-world.yaml
|
Beta Was this translation helpful? Give feedback.
Follow the steps below and I guess it should be what you want
Set up cluster
Deploy argo