- kubectl
- minikube
- glooctl
- Move the default yum repository to another folder
mv /etc/yum.repos.d/*.repo /tmp/
- Create and edit a new config file
sudo nano /etc/yum.repos.d/remote.repo
- Add the following in the file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NODE_PATH=src/ | |
| REACT_APP_API_URL= |
- Create namespace for openfaas system and functions
kubectl apply -f https://raw.githubusercontent.com/openfaas/faas-netes/master/namespaces.yml - Create the password for the openfaas user
password=$(head -c 12 /dev/urandom | shasum | cut -d' ' -f1)
kubectl -n openfaas create secret generic basic-auth \
--from-literal=basic-auth-user=admin \
--from-literal=basic-auth-password=$password
$ kubectl config set-cluster "$CLUSTER_NAME" --server="$SERVER_IP" --certificate-authority="$KUBE_CA_PEM" --embed-certs=true
$ kubectl config set-credentials "$KUBE_USER" --client-certificate="$CLIENT_CERT" --client-key="$CLIENT_KEY" --embed-certs=true
$ kubectl config set-context "$KUBE_CONTEXT" --cluster="$CLUSTER_NAME" --user="$KUBE_USER" --namespace="$KUBE_NAMESPACE"
$ kubectl config use-context "$KUBE_CONTEXT"