<commit_before>#/bin/bash -xe

export KUBERNETES_MASTER=true
bash ./setup_kubernetes_common.sh

# Cockpit with kubernetes plugin
yum install -y cockpit cockpit-kubernetes
systemctl enable cockpit.socket && systemctl start cockpit.socket

# Create the master
kubeadm init --pod-network-cidr=10.244.0.0/16 --token <PASSWORD> --use-kubernetes-version v1.4.5

set +e

kubectl -s 127.0.0.1:8080 version
while [ $? -ne 0 ]; do
  sleep 60
  echo 'Waiting for Kubernetes cluster to become functional...'
  kubectl -s 127.0.0.1:8080 version
done

set -e

if [ "$NETWORK_PROVIDER" == "weave" ]; then 
  kubectl apply -s 127.0.0.1:8080 -f https://github.com/weaveworks/weave/releases/download/v1.9.0/weave-daemonset.yaml
else
  kubectl create -s 127.0.0.1:8080 -f kube-$NETWORK_PROVIDER.yaml
fi

# Allow scheduling pods on master
# Ignore retval because it might not be dedicated already
kubectl -s 127.0.0.1:8080 taint nodes --all dedicated- || :

mkdir -p /exports/share1

chmod 0755 /exports/share1
chown 36:36 /exports/share1

echo "/exports/share1  *(rw,anonuid=36,anongid=36,all_squash,sync,no_subtree_check)" > /etc/exports

systemctl enable nfs-server && systemctl start nfs-server
<commit_msg>Bump to Kubernetes v1.5.4 and Weave 1.9.3<commit_after>#/bin/bash -xe

export KUBERNETES_MASTER=true
bash ./setup_kubernetes_common.sh

# Cockpit with kubernetes plugin
yum install -y cockpit cockpit-kubernetes
systemctl enable cockpit.socket && systemctl start cockpit.socket

# Create the master
kubeadm init --pod-network-cidr=10.244.0.0/16 --token <PASSWORD> --use-kubernetes-version v1.5.4

set +e

kubectl -s 127.0.0.1:8080 version
while [ $? -ne 0 ]; do
  sleep 60
  echo 'Waiting for Kubernetes cluster to become functional...'
  kubectl -s 127.0.0.1:8080 version
done

set -e

if [ "$NETWORK_PROVIDER" == "weave" ]; then 
  kubectl apply -s 127.0.0.1:8080 -f https://github.com/weaveworks/weave/releases/download/v1.9.3/weave-daemonset.yaml
else
  kubectl create -s 127.0.0.1:8080 -f kube-$NETWORK_PROVIDER.yaml
fi

# Allow scheduling pods on master
# Ignore retval because it might not be dedicated already
kubectl -s 127.0.0.1:8080 taint nodes --all dedicated- || :

mkdir -p /exports/share1

chmod 0755 /exports/share1
chown 36:36 /exports/share1

echo "/exports/share1  *(rw,anonuid=36,anongid=36,all_squash,sync,no_subtree_check)" > /etc/exports

systemctl enable nfs-server && systemctl start nfs-server

{'fraction_non_alphanumeric': 0.11950207468879669, 'fraction_numerical': 0.07219917012448132, 'mean_word_length': 3.930470347648262, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 12, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3736605', 'n_tokens_mistral': 1018, 'n_tokens_neox': 893, 'n_words': 238}