Skip to content

Commit

Permalink
Items #182, #178, #177, #183
Browse files Browse the repository at this point in the history
Kubernete-cni v0.6.0 installation, docker-ce on RedHat, fied url for Kafka
  • Loading branch information
toszo committed Mar 28, 2019
1 parent c946193 commit dbb10cd
Show file tree
Hide file tree
Showing 10 changed files with 55 additions and 28 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG-0.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@

### Changed
- Kubernetes version 1.13.1 #178
- Docker version for RedHat to 18.06

### Fixed

- Fix issue with kubernetes-cni in 0.2.2 #177
- Fix Kafka url #183

## [0.2.1] 2019-03-07

Expand Down
11 changes: 9 additions & 2 deletions core/core/src/ansible/roles/docker/tasks/RedHat.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
---
- name: Add Docker-CE stable repo
yum_repository:
name: docker-ce-stable
description: Docker CE Stable Repo
baseurl: https://download.docker.com/linux/centos/7/$basearch/stable
gpgkey: https://download.docker.com/linux/centos/gpg
gpgcheck: yes

- name: Install Docker
yum:
name: docker
name: docker-ce-18.06.3.ce-3.el7
state: present
update_cache: yes
when: ansible_os_family == "RedHat"
8 changes: 0 additions & 8 deletions core/core/src/ansible/roles/docker/tasks/configure-docker.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
---
- name: Unset log driver if defined in /etc/sysconfig/docker
replace: # remove --log-driver=driver-name to configure log-driver in daemon.json
path: /etc/sysconfig/docker
regexp: '^(OPTIONS=.*?)(?:--log-driver=[\w|-]+\s*|\s+--log-driver=[\w|-]+)(.*)$'
replace: '\1\2'
notify: Restart Docker
when: ansible_os_family == "RedHat"

- name: Copy configuration file (daemon.json)
template:
src: daemon.json.j2
Expand Down
4 changes: 2 additions & 2 deletions core/core/src/ansible/roles/kafka/tasks/setup-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
stat:
path: "/tmp/kafka_{{ kafka_var.scala.version }}-{{ kafka_var.version }}.tgz"
register: kafka_check

- name: Fetch Kafka binary package
get_url:
url: "http://apache.mirrors.tds.net/kafka/{{ kafka_var.version }}/kafka_{{ kafka_var.scala.version }}-{{ kafka_var.version }}.tgz"
url: "https://archive.apache.org/dist/kafka/{{ kafka_var.version }}/kafka_{{ kafka_var.scala.version }}-{{ kafka_var.version }}.tgz"
dest: "/tmp/kafka_{{ kafka_var.scala.version }}-{{ kafka_var.version }}.tgz"
when: not kafka_check.stat.exists

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,23 @@
- samba-common
when: kubernetes.storage.enable == True

- name: Install RedHat family packages
- name: Install Kubernetes packages for RedHat family
yum:
name:
- kubernetes-cni-0.6.0-0 # todo remove it in future release
- kubelet-{{kubernetes.version}}
- kubectl-{{kubernetes.version}}
- kubernetes-cni=0.6.0-0 # todo remove it in future release
- kubeadm-{{kubernetes.version}}
update_cache: yes
state: present
when: ansible_os_family == "RedHat"

- name: Install Debian family packages
- name: Install Kubernetes packages for Debian family
apt:
name:
- kubernetes-cni=0.6.0-00 # todo remove it in future release
- kubelet={{kubernetes.version}}-00
- kubectl={{kubernetes.version}}-00
- kubernetes-cni=0.6.0-00 # todo remove it in future release
- kubeadm={{kubernetes.version}}-00
update_cache: yes
state: present
Expand Down
2 changes: 1 addition & 1 deletion core/data/azure/infrastructure/epiphany-bld-apps/data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
title: Epiphany Apps Infrastructure...

kind: datafile
version: 0.2.0
version: 0.2.2

# NOTE: Any data values that are empty put "" or the value None will be used in the templates for those attributes.

Expand Down
4 changes: 2 additions & 2 deletions core/data/azure/infrastructure/epiphany-template/data.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
title: Epiphany ({{ azure.image_offer }}) {{ environment_name }}

kind: datafile
version: 0.2.0
version: 0.2.2

# NOTE: Any data values that are empty put "" or the value None will be used in the templates for those attributes.

Expand All @@ -27,7 +27,7 @@ core:

build:
# IMPORTANT - will be appended to release name and output folder and part of the template names
version: &version 0.1.21
version: &version 0.2.2
# Type of build environment
environment: &env development
# Name of the given release. Version will be appended
Expand Down
2 changes: 1 addition & 1 deletion core/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# This data is for the core of Epiphany and not the data for a given environment.

name: Epiphany
version: 0.2.0
version: 0.2.2

# Set the proxy info up if your environment requires it. This is sometimes the case for on-premise builds/installs
proxy:
Expand Down
2 changes: 1 addition & 1 deletion core/version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ set -e
unset EPIPHANY_VERSION
unset EPIPHANY_VERSION_NAME

export EPIPHANY_VERSION="0.2.0"
export EPIPHANY_VERSION="0.2.2"
export EPIPHANY_VERSION_NAME="Epiphany"
40 changes: 33 additions & 7 deletions docs/home/HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,30 @@ sudo apt-mark hold kubectl
### RHEL
#### Upgrade Docker version
Upgrading on Kubernetes to 1.13.1 on RHEL requires Docker upgrade. Newer Docker packages exist in docker-ce repository but you can use newer Docker-ee if you need. Verified Docker versions for Kubernetes are: 1.11.1, 1.12.1, 1.13.1, 17.03, 17.06, 17.09, 18.06. [Go to K8s docs](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.13.md#external-dependencies)
```bash
# Remove previous docker version
1 sudo yum remove docker \
docker-common \
container-selinux \
docker-selinux \
docker-engine
2. sudo rm -rf /var/lib/docker
3. sudo rm -rf /run/docker
4. sudo rm -rf /var/run/docker
5. sudo rm -rf /etc/docker
# Add docker-ce repository
6. sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
7. sudo yum makecache fast
8. sudo yum -y install docker-ce-18.06.3.ce-3.el7
```
#### Upgrade Master
```bash
Expand Down Expand Up @@ -905,21 +929,23 @@ Worker nodes will be upgraded one by one - it will prevent application downtime.
# RUN ON WORKER NODE - $NODE
3. sudo kubeadm upgrade node config --kubelet-version v1.13.1
3. # Upgrade Docker version using instruction from above
4. sudo kubeadm upgrade node config --kubelet-version v1.13.1
4. sudo yum install -y kubelet-1.13.1-0 kubeadm-1.13.1-0 --disableexcludes=kubernetes
5. sudo yum install -y kubelet-1.13.1-0 kubeadm-1.13.1-0 --disableexcludes=kubernetes
5. sudo systemctl restart kubelet
6. sudo systemctl status kubelet # should be running
6. sudo systemctl restart kubelet
7. sudo systemctl status kubelet # should be running
# RUN ON MASTER
7. kubectl uncordon $NODE
8. kubectl uncordon $NODE
8. # go to 1. for next node
9. # go to 1. for next node
# RUN ON MASTER
9. kubectl get nodes # should return nodes in status "Ready" and version 1.13.1
10. kubectl get nodes # should return nodes in status "Ready" and version 1.13.1
```
Expand Down

0 comments on commit dbb10cd

Please sign in to comment.