<commit_before>#!/bin/bash

CLUSTERNAME=mykfp3
ZONE=us-central1-a

gcloud config set compute/zone $ZONE
gcloud beta container clusters create $CLUSTERNAME \
  --cluster-version 1.11.2-gke.26 --enable-autoupgrade \
  --zone $ZONE \
  --scopes cloud-platform \
  --enable-cloud-logging \
  --enable-cloud-monitoring \
  --machine-type n1-standard-2 \
  --enable-autoscaling --max-nodes=10 --min-nodes=3 

# --num-nodes 4 
#  --preemptible \
#  --enable-autoprovisioning --max-cpu=40 --max-memory=1024 \

kubectl create clusterrolebinding ml-pipeline-admin-binding --clusterrole=cluster-admin --user=$(gcloud config get-value account)

kubectl create clusterrolebinding pipelinerunnerbinding \
  --clusterrole=cluster-admin \
  --serviceaccount=kubeflow:pipeline-runner<commit_msg>Update 1_create_cluster.sh<commit_after>#!/bin/bash

# CHANGE as needed. Note that not all zones support all gke versions!
GKEVERSION=1.11.2-gke.26
CLUSTERNAME=mykfp3
ZONE=us-central1-a

gcloud config set compute/zone $ZONE
gcloud beta container clusters create $CLUSTERNAME \
  --cluster-version $GKEVERSION --enable-autoupgrade \
  --zone $ZONE \
  --scopes cloud-platform \
  --enable-cloud-logging \
  --enable-cloud-monitoring \
  --machine-type n1-standard-2 \
  --enable-autoscaling --max-nodes=10 --min-nodes=3 

# --num-nodes 4 
#  --preemptible \
#  --enable-autoprovisioning --max-cpu=40 --max-memory=1024 \

kubectl create clusterrolebinding ml-pipeline-admin-binding --clusterrole=cluster-admin --user=$(gcloud config get-value account)

kubectl create clusterrolebinding pipelinerunnerbinding \
  --clusterrole=cluster-admin \
  --serviceaccount=kubeflow:pipeline-runner
{'fraction_non_alphanumeric': 0.13237063778580024, 'fraction_numerical': 0.0246690734055355, 'mean_word_length': 3.6194444444444445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3439226', 'n_tokens_mistral': 600, 'n_tokens_neox': 572, 'n_words': 111}