Version: 2.1.1
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
#!/bin/sh | |
# run this on all nodes | |
apt-get update && apt-get install -qy docker.io | |
apt-get update && apt-get install -y apt-transport-https \ | |
&& curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - | |
echo "deb http://apt.kubernetes.io/ kubernetes-xenial main" > /etc/apt/sources.list.d/kubernetes.list |
# Requirements: an existing and running k8s cluster | |
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash | |
helm init | |
# taken from http://docs.ceph.com/docs/master/start/kube-helm/ | |
helm serve & | |
# wait for helm serve to be ready |
# install helm | |
curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get | bash | |
kubectl create serviceaccount -n kube-system tiller | |
kubectl create clusterrolebinding tiller-binding --clusterrole=cluster-admin --serviceaccount kube-system:tiller | |
# run tiller with specific tiller account | |
helm init --service-account tiller |
helm install stable/nginx-ingress --name ingress --namespace kube-system --set controller.hostNetwork=true,controller.kind=DaemonSet |
sudo sed -i "s/#\{0,1\}Port .*/Port xxxx/" /etc/ssh/sshd_config | |
sudo sed -i "s/#\{0,1\}PermitRootLogin yes/PermitRootLogin no/" /etc/ssh/sshd_config | |
sudo sed -i "s/#\{0,1\}PasswordAuthentication yes/PasswordAuthentication no/" /etc/ssh/sshd_config | |
service sshd reload |
sudo sed -i "s/#\{0,1\}Port .*/Port xxxx/" /etc/ssh/sshd_config | |
sudo sed -i "s/#\{0,1\}PasswordAuthentication yes/PasswordAuthentication no/" /etc/ssh/sshd_config | |
service sshd reload |
Proposal for selecting multiple things as alternative for the initial proposal
The prisma types could be generated with all relations a type can have. For example, when a User can have Posts and a Post has an Author, the respective types define the relation in the struct.
// generated code by prisma