Skip to content

Commit

Permalink
Removal of Istio component hitachienergy#2836
Browse files Browse the repository at this point in the history
Signed-off-by: cicharka <arkadiusz.cichon@outlook.com>
  • Loading branch information
cicharka committed Jan 14, 2022
1 parent 4e4b0e2 commit 40df858
Showing 19 changed files with 5 additions and 271 deletions.
8 changes: 1 addition & 7 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@ ARG USER_GID=$USER_UID

ARG HELM_VERSION=3.3.1
ARG KUBECTL_VERSION=1.22.4
ARG ISTIOCTL_VERSION=1.8.1

RUN : INSTALL APT REQUIREMENTS \
&& export DEBIAN_FRONTEND=noninteractive \
@@ -32,12 +31,7 @@ RUN : INSTALL HELM BINARY \
&& curl -fsSLO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl \
&& chmod +x ./kubectl \
&& mv ./kubectl /usr/local/bin/kubectl \
&& kubectl version --client \
&& : INSTALL ISTIOCTl BINARY \
&& curl -fsSLO https://github.com/istio/istio/releases/download/${ISTIOCTL_VERSION}/istioctl-${ISTIOCTL_VERSION}-linux-amd64.tar.gz \
&& tar -xzof istioctl-${ISTIOCTL_VERSION}-linux-amd64.tar.gz -C /usr/local/bin istioctl \
&& rm istioctl-${ISTIOCTL_VERSION}-linux-amd64.tar.gz \
&& chmod +x /usr/local/bin/istioctl
&& kubectl version --client

RUN : INSTALL GEM REQUIREMENTS \
&& gem install \
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@ ARG USER_GID=$USER_UID

ARG HELM_VERSION=3.3.1
ARG KUBECTL_VERSION=1.22.4
ARG ISTIOCTL_VERSION=1.8.1

ENV EPICLI_DOCKER_SHARED_DIR=/shared

@@ -26,12 +25,7 @@ RUN : INSTALL APT REQUIREMENTS \
&& curl -fsSLO https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl \
&& chmod +x ./kubectl \
&& mv ./kubectl /usr/local/bin/kubectl \
&& kubectl version --client \
&& : INSTALL ISTIOCTL BINARY \
&& curl -fsSLO https://github.com/istio/istio/releases/download/${ISTIOCTL_VERSION}/istioctl-${ISTIOCTL_VERSION}-linux-amd64.tar.gz \
&& tar -xzof istioctl-${ISTIOCTL_VERSION}-linux-amd64.tar.gz -C /usr/local/bin istioctl \
&& rm istioctl-${ISTIOCTL_VERSION}-linux-amd64.tar.gz \
&& chmod +x /usr/local/bin/istioctl \
&& kubectl version --client
\
&& : INSTALL GEM REQUIREMENTS \
&& gem install \

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion ansible/playbooks/roles/preflight/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,6 @@ supported_oses:
unsupported_apps:
x86_64: []
aarch64:
- istio
- pgbouncer
- pgpool

Original file line number Diff line number Diff line change
@@ -205,10 +205,6 @@ registry:2
# applications
bitnami/pgpool:4.2.4
bitnami/pgbouncer:1.16.0
# istio
istio/pilot:1.8.1
istio/proxyv2:1.8.1
istio/operator:1.8.1
epiphanyplatform/keycloak:14.0.0
rabbitmq:3.8.9
# K8s
Original file line number Diff line number Diff line change
@@ -203,10 +203,6 @@ registry:2
# applications
bitnami/pgpool:4.2.4
bitnami/pgbouncer:1.16.0
# istio
istio/pilot:1.8.1
istio/proxyv2:1.8.1
istio/operator:1.8.1
epiphanyplatform/keycloak:14.0.0
rabbitmq:3.8.9
# K8s
Original file line number Diff line number Diff line change
@@ -240,10 +240,7 @@ registry:2
# applications
bitnami/pgpool:4.2.4
bitnami/pgbouncer:1.16.0
# istio
istio/pilot:1.8.1
istio/proxyv2:1.8.1
istio/operator:1.8.1

epiphanyplatform/keycloak:14.0.0
rabbitmq:3.8.9
# K8s
1 change: 0 additions & 1 deletion docs/home/ARM.md
Original file line number Diff line number Diff line change
@@ -46,7 +46,6 @@ Besides making sure that the selected providers, operating systems, components a
| auth-service | :heavy_check_mark: |
| pgpool | :x: |
| pgbouncer | :x: |
| istio | :x: |

***Notes***

1 change: 0 additions & 1 deletion docs/home/COMPONENTS.md
Original file line number Diff line number Diff line change
@@ -39,7 +39,6 @@ Note that versions are default versions and can be changed in certain cases thro
| Pgpool | 4.2.4 | https://www.pgpool.net/ | [License](https://www.pgpool.net/mediawiki/index.php/pgpool-II_License) |
| Alertmanager | 0.23.0 | https://github.com/prometheus/alertmanager | [Apache License 2.0](https://github.com/prometheus/alertmanager/blob/master/LICENSE) |
| Apache2 | 2.4.29 | https://httpd.apache.org/ | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) |
| Istio | 1.8.1 | https://github.com/istio/istio | [Apache License 2.0](https://github.com/istio/istio/blob/master/LICENSE) |

## Epicli binary dependencies

4 changes: 2 additions & 2 deletions docs/home/SECURITY.md
Original file line number Diff line number Diff line change
@@ -129,11 +129,11 @@ different values. The list does not include ports that are bound to the loopback

- 80 - deb/rpm package repository (httpd is stopped at the end of installation)
- 5000 - Docker image registry

### Connection protocols and ciphers used by components in Epiphany

Below you can find list of cipersuites and protocols used for communication set in Epiphany on per component basis. This
doesn't contain information about potentially deprecated components: Apache Ignite, Istio.
doesn't contain information about potentially deprecated components: Apache Ignite,.

1. OS services:

115 changes: 0 additions & 115 deletions docs/home/howto/ISTIO.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/home/howto/KUBERNETES.md
Original file line number Diff line number Diff line change
@@ -37,7 +37,6 @@ Currently, Epiphany provides the following predefined applications which may be
- auth-service (Keycloak)
- pgpool
- pgbouncer
- istio
All of them have
[default configuration](https://github.com/epiphany-platform/epiphany/blob/develop/schema/common/defaults/configuration/applications.yml).
33 changes: 0 additions & 33 deletions docs/home/howto/UPGRADE.md
Original file line number Diff line number Diff line change
@@ -328,39 +328,6 @@ Before K8s version upgrade make sure that deprecated API versions are not used:
- [v1.21](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.21.md)
- [v1.22](https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.22.md)
### Upgrade
---
**NOTE**
If the K8s cluster that is going to be upgraded has the Istio control plane application deployed, issues can occur. The
default [profiles](https://istio.io/latest/docs/setup/additional-setup/config-profiles/) we currently support for
installing Istio only deploy a single replica for the control services with a `PodDisruptionBudgets` value of 0. This
will result in the following error while draining pods during an upgrade:
```shell
Cannot evict pod as it would violate the pods disruption budget.
```
As we currently don't support any kind of advanced configuration of the Istio control plane components outside the
default profiles, we need to scale up all components manually before the upgrade. This can be done with the following
command:

```shell
kubectl scale deploy -n istio-system --replicas=2 --all
```

After the upgrade, the deployments can be scaled down to the original capacity:

```shell
kubectl scale deploy -n istio-system --replicas=1 --all
```

**Note: The ```istio-system``` namespace value is the default value and should be set to whatever is being used in the
Istio application configuration.**

---

## PostgreSQL upgrade
---
14 changes: 0 additions & 14 deletions schema/common/defaults/configuration/applications.yml
Original file line number Diff line number Diff line change
@@ -151,17 +151,3 @@ specification:
RESERVE_POOL_SIZE: 25
POOL_MODE: session
CLIENT_IDLE_TIMEOUT: 0

## --- istio ---

- name: istio
enabled: false
use_local_image_registry: true
namespaces:
operator: istio-operator # namespace where operator will be deployed
watched: # list of namespaces which operator will watch
- istio-system
istio: istio-system # namespace where istio control plane will be deployed
istio_spec:
profile: default # Check all possibilities https://istio.io/latest/docs/setup/additional-setup/config-profiles/
name: istiocontrolplane
6 changes: 0 additions & 6 deletions schema/common/defaults/configuration/image-registry.yml
Original file line number Diff line number Diff line change
@@ -17,12 +17,6 @@ specification:
file_name: dashboard-v2.3.1.tar
- name: "kubernetesui/metrics-scraper:v1.0.7"
file_name: metrics-scraper-v1.0.7.tar
- name: "istio/proxyv2:1.8.1"
file_name: proxyv2-1.8.1.tar
- name: "istio/pilot:1.8.1"
file_name: pilot-1.8.1.tar
- name: "istio/operator:1.8.1"
file_name: operator-1.8.1.tar
# postgres
- name: bitnami/pgpool:4.2.4
file_name: pgpool-4.2.4.tar
9 changes: 0 additions & 9 deletions schema/common/validation/configuration/applications.yml
Original file line number Diff line number Diff line change
@@ -324,12 +324,3 @@ properties:
type: array
items:
- type: string
istio:
type: string
istio_spec:
type: object
properties:
profile:
type: string
name:
type: string

0 comments on commit 40df858

Please sign in to comment.