Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
outductor committed Sep 14, 2023
1 parent 2b651dc commit 7642cd9
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 6 deletions.
37 changes: 37 additions & 0 deletions .metals/metals.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
2023.09.13 12:01:58 INFO Started: Metals version 1.0.1 in folders '/Users/inductor/go/src/github.com/GiganticMinecraft/seichi_infra' for client Visual Studio Code 1.81.1.
9月 13, 2023 12:01:58 午後 org.flywaydb.core.internal.license.VersionPrinter printVersionOnly
情報: Flyway Community Edition 9.21.2 by Redgate
9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.license.VersionPrinter printVersion
情報: See release notes here: https://rd.gt/416ObMi
9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.license.VersionPrinter printVersion
情報:
9月 13, 2023 12:01:59 午後 org.flywaydb.core.FlywayExecutor execute
情報: Database: jdbc:h2:file:/Users/inductor/go/src/github.com/GiganticMinecraft/seichi_infra/.metals/metals (H2 2.1)
9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory allAppliedMigrations
情報: Schema history table "PUBLIC"."flyway_schema_history" does not exist yet
9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbValidate validate
情報: Successfully validated 4 migrations (execution time 00:00.006s)
9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.schemahistory.JdbcTableSchemaHistory create
情報: Creating Schema History table "PUBLIC"."flyway_schema_history" ...
9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate migrateGroup
情報: Current version of schema "PUBLIC": << Empty Schema >>
9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate doMigrateGroup
情報: Migrating schema "PUBLIC" to version "1 - Create tables"
9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate doMigrateGroup
情報: Migrating schema "PUBLIC" to version "2 - Server discovery"
9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate doMigrateGroup
情報: Migrating schema "PUBLIC" to version "3 - Jar symbols"
9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate doMigrateGroup
情報: Migrating schema "PUBLIC" to version "4 - Fingerprints"
9月 13, 2023 12:01:59 午後 org.flywaydb.core.internal.command.DbMigrate logSummary
情報: Successfully applied 4 migrations to schema "PUBLIC", now at version v4 (execution time 00:00.010s)
2023.09.13 12:01:59 INFO time: initialize in 0.32s
2023.09.13 12:02:00 WARN Build server is not auto-connectable.
2023.09.13 12:02:00 WARN no build tool detected in workspace '/Users/inductor/go/src/github.com/GiganticMinecraft/seichi_infra'. The most common cause for this problem is that the editor was opened in the wrong working directory, for example if you use sbt then the workspace directory should contain build.sbt. 
9月 13, 2023 12:02:59 午後 org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint notify
情報: Unsupported notification method: $/setTrace
9月 13, 2023 12:02:59 午後 org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint notify
情報: Unsupported notification method: $/setTrace
2023.09.13 12:40:27 INFO Shutting down server
2023.09.13 12:40:27 INFO shutting down Metals
2023.09.13 12:40:27 INFO Exiting server
Binary file added .metals/metals.mv.db
Binary file not shown.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.watcherExclude": {
"**/target": true
}
}
29 changes: 23 additions & 6 deletions seichi-onp-k8s/cluster-boot-up/scripts/nodes/k8s-node-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ sysctl --system
curl -fsSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-archive-keyring.gpg
echo "deb [signed-by=/etc/apt/keyrings/kubernetes-archive-keyring.gpg] https://apt.kubernetes.io/ kubernetes-xenial main" | sudo tee /etc/apt/sources.list.d/kubernetes.list
apt-get update
apt-get install -y kubelet=1.27.5-00 kubeadm=1.27.5-00 kubectl=1.27.5-00
apt-mark hold kubelet kubeadm kubectl
apt-get install -y kubeadm kubelet=1.27.5-00 kubectl=1.27.5-00
apt-mark hold kubelet kubectl

# Disable swap
swapoff -a
Expand Down Expand Up @@ -265,19 +265,28 @@ esac

# Set kubeadm bootstrap token using openssl
KUBEADM_BOOTSTRAP_TOKEN=$(openssl rand -hex 3).$(openssl rand -hex 8)
KUBEADM_LOCAL_ENDPOINT=$(ip -4 addr show ens19 | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | awk 'NR==1{print $1}')

# Set init configuration for the first control plane
cat > "$HOME"/init_kubeadm.yaml <<EOF
apiVersion: kubeadm.k8s.io/v1beta3
apiVersion: kubeadm.k8s.io/v1beta4
kind: InitConfiguration
bootstrapTokens:
- token: "$KUBEADM_BOOTSTRAP_TOKEN"
description: "kubeadm bootstrap token"
ttl: "24h"
nodeRegistration:
criSocket: "unix:///var/run/containerd/containerd.sock"
kubeletExtraArgs:
node-ip: "$KUBEADM_LOCAL_ENDPOINT"
imagePullPolicy: "IfNotPresent"
localAPIEndpoint:
advertiseAddress: "$KUBEADM_LOCAL_ENDPOINT"
bindPort: 6443
skipPhases:
- addon/kube-proxy
---
apiVersion: kubeadm.k8s.io/v1beta3
apiVersion: kubeadm.k8s.io/v1beta4
kind: ClusterConfiguration
networking:
serviceSubnet: "10.96.0.0/16"
Expand All @@ -304,6 +313,7 @@ controllerManager:
scheduler:
extraArgs:
bind-address: "0.0.0.0"
clusterName: "unchama-cloud"
---
apiVersion: kubelet.config.k8s.io/v1beta1
Expand Down Expand Up @@ -340,10 +350,15 @@ kind: KubeletConfiguration
cgroupDriver: "systemd"
protectKernelDefaults: true
---
apiVersion: kubeadm.k8s.io/v1beta3
apiVersion: kubeadm.k8s.io/v1beta4
kind: JoinConfiguration
nodeRegistration:
criSocket: "unix:///var/run/containerd/containerd.sock"
kubeletExtraArgs:
node-ip: "$KUBEADM_LOCAL_ENDPOINT" //FIXME
localAPIEndpoint:
advertiseAddress: "$KUBEADM_LOCAL_ENDPOINT" //FIXME
bindPort: 6443
discovery:
bootstrapToken:
apiServerEndpoint: "${KUBE_API_SERVER_VIP}:8443"
Expand All @@ -360,10 +375,12 @@ kind: KubeletConfiguration
cgroupDriver: "systemd"
protectKernelDefaults: true
---
apiVersion: kubeadm.k8s.io/v1beta3
apiVersion: kubeadm.k8s.io/v1beta4
kind: JoinConfiguration
nodeRegistration:
criSocket: "unix:///var/run/containerd/containerd.sock"
kubeletExtraArgs:
node-ip: "$KUBEADM_LOCAL_ENDPOINT" //FIXME
discovery:
bootstrapToken:
apiServerEndpoint: "${KUBE_API_SERVER_VIP}:8443"
Expand Down

0 comments on commit 7642cd9

Please sign in to comment.