-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: samples for upcoming Istio tutorial (#804)
* Kubernetes manifest files for Istio tutorial * Added License headers * Move files to service-mesh/istio-tutorial dir * Add region tags
- Loading branch information
1 parent
bfc73b0
commit 8d3e629
Showing
4 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Secure Kubernetes Services with Istio on GKE Autopilot | ||
|
||
[](https://ssh.cloud.google.com/cloudshell/editor?cloudshell_git_repo=https://github.com/GoogleCloudPlatform/kubernetes-engine-samples&cloudshell_workspace=autopilot/istio-tutorial) | ||
|
||
This example shows how to deploy a Istio service mesh | ||
to securely deploy of a Bank of Anthos sample application | ||
with enabled mTLS on using [Google Kubernetes Engine](https://cloud.google.com/kubernetes-engine) | ||
in Autopilot mode. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Copyright 2023 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# [START gke_service_mesh_istio_kiali_dashboard] | ||
apiVersion: kiali.io/v1alpha1 | ||
kind: Kiali | ||
metadata: | ||
name: kiali | ||
namespace: istio-system | ||
spec: | ||
deployment: | ||
namespace: istio-system | ||
auth: | ||
strategy: anonymous | ||
external_services: | ||
custom_dashboards: | ||
prometheus: | ||
url: "http://frontend.monitoring:9090/" | ||
auth: | ||
type: none | ||
prometheus: | ||
url: "http://frontend.monitoring:9090/" | ||
auth: | ||
type: none | ||
tracing: | ||
enabled: false | ||
grafana: | ||
enabled: false | ||
# [END gke_service_mesh_istio_kiali_dashboard] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright 2023 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# [START gke_service_mesh_istio_mtls] | ||
apiVersion: security.istio.io/v1beta1 | ||
kind: PeerAuthentication | ||
metadata: | ||
name: default | ||
spec: | ||
mtls: | ||
mode: STRICT | ||
# [END gke_service_mesh_istio_mtls] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Copyright 2023 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# [START gke_service_mesh_istio_monitoring] | ||
apiVersion: monitoring.googleapis.com/v1 | ||
kind: PodMonitoring | ||
metadata: | ||
name: istiod | ||
namespace: istio-system | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: istiod | ||
endpoints: | ||
- port: 15014 | ||
path: /metrics | ||
timeout: 30s | ||
interval: 60s | ||
# [END gke_service_mesh_istio_monitoring] | ||
--- | ||
# [START gke_service_mesh_istio_containers_envoy_proxies_monitoring] | ||
apiVersion: monitoring.googleapis.com/v1 | ||
kind: PodMonitoring | ||
metadata: | ||
name: envoy-proxies | ||
namespace: default | ||
spec: | ||
selector: | ||
matchLabels: | ||
application: bank-of-anthos | ||
endpoints: | ||
- port: 15020 | ||
path: /metrics | ||
timeout: 30s | ||
interval: 60s | ||
# [END gke_service_mesh_istio_containers_envoy_proxies_monitoring] |