I have this bash script:
#!/bin/bash
USERNAME=$1
WORKDIR='dir_'$USERNAME
mkdir deployment/$WORKDIR
cat deployment/deploy.yml > deployment/$WORKDIR/deploy.yml
sed -i 's/alopezfu/'$USERNAME'/g' deployment/$WORKDIR/deploy.yml
kubectl apply -f deployment/$WORKDIR/deploy.yml
rm -rf deployment/$WORKDIR/
And i use exec funcition in PHP for run.
And i get this messege in /var/log/apache/error.log
To view or setup config directly use the 'config' command. error: no configuration has been provided, try setting KUBERNETES_MASTER environment variable error: Missing or incomplete configuration info. Please point to an existing, complete config file:
- Via the command-line flag --kubeconfig
- Via the KUBECONFIG environment variable
- In your home directory as ~/.kube/config
I need help