Skip to content

Instantly share code, notes, and snippets.

@Warchant
Last active January 8, 2019 13:33
Show Gist options
  • Select an option

  • Save Warchant/859006ce309dd5f07fb6c3514ec7c4a1 to your computer and use it in GitHub Desktop.

Select an option

Save Warchant/859006ce309dd5f07fb6c3514ec7c4a1 to your computer and use it in GitHub Desktop.

http://sudhaker.com/6/install-the-latest-kubernetes-on-centos-7-1 https://edenmal.moe/post/2017/GitLab-Kubernetes-Perfect-Match-for-Continuous-Delivery-with-Container/#step-2-get-serviceaccount-token-from-kubernetes

Install helm with security: https://medium.com/google-cloud/install-secure-helm-in-gke-254d520061f7

kubectl apply --filename https://git.io/weave-kube-1.6

kubectl create namespace satra-db

kubectl create -f - <<EOF
  apiVersion: v1
  kind: ServiceAccount
  metadata:
    name: gitlab-satra-db
    namespace: satra-db
EOF


kubectl create -f - <<EOF
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
  name: gitlab-satra-db-cluster-admin
subjects:
- kind: ServiceAccount
  name: gitlab-satra-db
  namespace: satra-db
roleRef:
  kind: ClusterRole
  name: cluster-admin
  apiGroup: rbac.authorization.k8s.io
EOF

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment