Commit e5c345db authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed release_version ci.

parent c2191f15
......@@ -175,15 +175,11 @@ release_version:
stage: release
script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de
- docker pull $TEST_IMAGE
- docker tag $TEST_IMAGE $LATEST_IMAGE
- docker push $LATEST_IMAGE
- docker tag $TEST_IMAGE $RELEASE_IMAGE
- docker pull $LATEST_IMAGE
- docker tag $LATEST_IMAGE $RELEASE_IMAGE
- docker push $RELEASE_IMAGE
- docker pull $FRONTEND_TEST_IMAGE
- docker tag $FRONTEND_TEST_IMAGE $FRONTEND_LATEST_IMAGE
- docker push $FRONTEND_LATEST_IMAGE
- docker tag $FRONTEND_TEST_IMAGE $FRONTEND_RELEASE_IMAGE
- docker pull $FRONTEND_LATEST_IMAGE
- docker tag $FRONTEND_LATEST_IMAGE $FRONTEND_RELEASE_IMAGE
- docker push $FRONTEND_RELEASE_IMAGE
only:
- tags
......
#!/bin/sh
# add yum repo
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
exclude=kube*
EOF
# delete old
yum erase -y kubelet kubeadm kubectl --disableexcludes=kubernetes
# Set SELinux in permissive mode (effectively disabling it)
setenforce 0
sed -i 's/^SELINUX=enforcing$/SELINUX=permissive/' /etc/selinux/config
yum install -y kubelet kubeadm kubectl --disableexcludes=kubernetes
systemctl enable --now kubelet
# firewall
firewall-cmd --permanent --add-port=6443/tcp
firewall-cmd --permanent --add-port=2379-2380/tcp
firewall-cmd --permanent --add-port=10250/tcp
firewall-cmd --permanent --add-port=10251/tcp
firewall-cmd --permanent --add-port=10252/tcp
firewall-cmd --permanent --add-port=10255/tcp
firewall-cmd --permanent --add-port=8285/udp
firewall-cmd --permanent --add-port=8472/udp
firewall-cmd --reload
modprobe br_netfilter
# routing
cat <<EOF > /etc/sysctl.d/k8s.conf
net.bridge.bridge-nf-call-ip6tables = 1
net.bridge.bridge-nf-call-iptables = 1
EOF
sysctl --system
# start it up
systemctl daemon-reload
systemctl restart kubelet
echo "Still have to use kubeadm init/join"
\ No newline at end of file
# rabbit
firewall-cmd --permanent --add-port=5672/tcp
# mongo
firewall-cmd --permanent --add-port=27017/tcp
firewall-cmd --permanent --add-port=37017/tcp
# raw api
firewall-cmd --permanent --add-port=18001/tcp
# es
firewall-cmd --permanent --add-port=19200/tcp
# postgres
firewall-cmd --permanent --add-port=5432/tcp
# elk
firewall-cmd --permanent --add-port=29200/tcp
firewall-cmd --permanent --add-port=15601/tcp
firewall-cmd --permanent --add-port=15000/tcp
firewall-cmd --reload
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment