k8s icon indicating copy to clipboard operation
k8s copied to clipboard

setup.sh not working with newer version of k8

Open fabmade opened this issue 4 years ago • 2 comments

curl -sSL https://nats-io.github.io/k8s/setup.sh | sh

Error: unknown flag: --generator

see https://kubernetes.io/docs/reference/kubectl/conventions/

fabmade avatar Jun 02 '21 19:06 fabmade

I run into this issue today and it seems related to https://github.com/kubernetes/kubernetes/pull/68132

huan avatar Jun 07 '21 19:06 huan

Try using kubectl apply to create the setup container

cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Pod
metadata:
  name: nats-setup
spec:
  restartPolicy: Never
  serviceAccountName: nats-setup
  containers:
    - name: nats-setup
      image: synadia/nats-setup:latest
      imagePullPolicy: Always
EOF

eonward avatar Jul 11 '21 14:07 eonward

Closing due to age of issue; if experiencing in current versions please open a new issue.

caleblloyd avatar May 03 '23 17:05 caleblloyd