From b90305120a74e990e07bdc973af1da0fe646d2f4 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Thu, 6 Oct 2022 18:56:28 -0400 Subject: [PATCH 1/9] add best-app-ever --- best-app-ever/app-manifests.yaml | 61 ++++++++++++++++++++++++++++++++ best-app-ever/namespace.yaml | 4 +++ 2 files changed, 65 insertions(+) create mode 100644 best-app-ever/app-manifests.yaml create mode 100644 best-app-ever/namespace.yaml diff --git a/best-app-ever/app-manifests.yaml b/best-app-ever/app-manifests.yaml new file mode 100644 index 0000000..9c199d6 --- /dev/null +++ b/best-app-ever/app-manifests.yaml @@ -0,0 +1,61 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: best-app-ever + namespace: best-app-ever +--- +apiVersion: v1 +kind: Service +metadata: + name: best-app-ever + namespace: best-app-ever +spec: + type: ClusterIP + ports: + - port: 80 + targetPort: http + protocol: TCP + name: http + selector: + app: best-app-ever +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: best-app-ever + namespace: best-app-ever + labels: + app: best-app-ever +spec: + replicas: 1 + selector: + matchLabels: + app: best-app-ever + template: + metadata: + labels: + app: best-app-ever + spec: + serviceAccountName: best-app-ever + securityContext: + {} + containers: + - name: my-chart + securityContext: + {} + image: "nginx:1.16.0" + imagePullPolicy: IfNotPresent + ports: + - name: http + containerPort: 80 + protocol: TCP + livenessProbe: + httpGet: + path: / + port: http + readinessProbe: + httpGet: + path: / + port: http + resources: + {} \ No newline at end of file diff --git a/best-app-ever/namespace.yaml b/best-app-ever/namespace.yaml new file mode 100644 index 0000000..561a82f --- /dev/null +++ b/best-app-ever/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: best-app-ever From 44e7d771c806f7c53f91b3920c29b9f361ff9562 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Thu, 6 Oct 2022 19:12:58 -0400 Subject: [PATCH 2/9] bad svc port name --- best-app-ever/app-manifests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/best-app-ever/app-manifests.yaml b/best-app-ever/app-manifests.yaml index 9c199d6..7b55ae0 100644 --- a/best-app-ever/app-manifests.yaml +++ b/best-app-ever/app-manifests.yaml @@ -15,7 +15,7 @@ spec: - port: 80 targetPort: http protocol: TCP - name: http + name: test selector: app: best-app-ever --- From b267786eddb3a6de69e6a4a9904bae0a2c23e3da Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Thu, 6 Oct 2022 19:13:09 -0400 Subject: [PATCH 3/9] mTLS disabled --- best-app-ever/peerauthentication.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 best-app-ever/peerauthentication.yaml diff --git a/best-app-ever/peerauthentication.yaml b/best-app-ever/peerauthentication.yaml new file mode 100644 index 0000000..da53c1b --- /dev/null +++ b/best-app-ever/peerauthentication.yaml @@ -0,0 +1,8 @@ +apiVersion: security.istio.io/v1beta1 +kind: PeerAuthentication +metadata: + name: best-app-ever + namespace: best-app-ever +spec: + mtls: + mode: DISABLE From 91bd0444b330d84ed0628196616b0d7a448797aa Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Thu, 6 Oct 2022 20:15:44 -0400 Subject: [PATCH 4/9] sidecar inject annotation to false --- best-app-ever/app-manifests.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/best-app-ever/app-manifests.yaml b/best-app-ever/app-manifests.yaml index 7b55ae0..413c181 100644 --- a/best-app-ever/app-manifests.yaml +++ b/best-app-ever/app-manifests.yaml @@ -35,6 +35,8 @@ spec: metadata: labels: app: best-app-ever + annotations: + sidecar.istio.io/inject: "false" spec: serviceAccountName: best-app-ever securityContext: From 2e2a1d6c8c8f34f33d0424f09dbc3a432177e3a8 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Thu, 6 Oct 2022 21:01:27 -0400 Subject: [PATCH 5/9] add virtual service --- best-app-ever/virtualservice.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 best-app-ever/virtualservice.yaml diff --git a/best-app-ever/virtualservice.yaml b/best-app-ever/virtualservice.yaml new file mode 100644 index 0000000..9a8693e --- /dev/null +++ b/best-app-ever/virtualservice.yaml @@ -0,0 +1,16 @@ +apiVersion: networking.istio.io/v1alpha3 +kind: VirtualService +metadata: + name: best-app-ever + namespace: best-app-ever +spec: + hosts: + - "*" + gateways: + - istio-ingress/istio-ingressgateway + http: + - route: + - destination: + host: best-app-ever + port: + number: 80 \ No newline at end of file From b3324aa39d331fa56dc93a1e9331d7dc2ad7ba56 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Tue, 11 Oct 2022 09:48:35 -0400 Subject: [PATCH 6/9] test by removing namespace --- best-app-ever/namespace.yaml | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 best-app-ever/namespace.yaml diff --git a/best-app-ever/namespace.yaml b/best-app-ever/namespace.yaml deleted file mode 100644 index 561a82f..0000000 --- a/best-app-ever/namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: best-app-ever From abd302c59365ee0d924d4dc7329fdfbe9f30cfe1 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Tue, 11 Oct 2022 09:50:27 -0400 Subject: [PATCH 7/9] add the namespace back --- best-app-ever/namespace.yaml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 best-app-ever/namespace.yaml diff --git a/best-app-ever/namespace.yaml b/best-app-ever/namespace.yaml new file mode 100644 index 0000000..561a82f --- /dev/null +++ b/best-app-ever/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: best-app-ever From fb6c71a3b3e4743a7891c1509780049034eb65b5 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Tue, 11 Oct 2022 09:56:12 -0400 Subject: [PATCH 8/9] fix gator errors file removal in CI --- .github/workflows/ci-apps-gator.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-apps-gator.yaml b/.github/workflows/ci-apps-gator.yaml index d47e252..77e0dbf 100644 --- a/.github/workflows/ci-apps-gator.yaml +++ b/.github/workflows/ci-apps-gator.yaml @@ -39,5 +39,5 @@ jobs: echo '```' >> $GITHUB_STEP_SUMMARY cat gator-error.json | jq -r '.[]? | "➡️ \(.constraint.metadata.name) - \(.msg)"' | sed 's///g' >> $GITHUB_STEP_SUMMARY echo '```' >> $GITHUB_STEP_SUMMARY - rm tmp/results.yaml + rm gator-error.json fi From a82d246342faf14add2ae6533846edcacd24adcf Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Thu, 20 Oct 2022 12:54:49 -0400 Subject: [PATCH 9/9] image: "nginx:alpine" --- best-app-ever/app-manifests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/best-app-ever/app-manifests.yaml b/best-app-ever/app-manifests.yaml index 413c181..d7517dd 100644 --- a/best-app-ever/app-manifests.yaml +++ b/best-app-ever/app-manifests.yaml @@ -45,7 +45,7 @@ spec: - name: my-chart securityContext: {} - image: "nginx:1.16.0" + image: "nginx:alpine" imagePullPolicy: IfNotPresent ports: - name: http @@ -60,4 +60,4 @@ spec: path: / port: http resources: - {} \ No newline at end of file + {}