k8s
k8s copied to clipboard
setup.sh not working with newer version of k8
curl -sSL https://nats-io.github.io/k8s/setup.sh | sh
Error: unknown flag: --generator
see https://kubernetes.io/docs/reference/kubectl/conventions/
I run into this issue today and it seems related to https://github.com/kubernetes/kubernetes/pull/68132
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
Closing due to age of issue; if experiencing in current versions please open a new issue.