https://github.com/osinfra-io/istio-test
An example Istio test application that shows information about the Google Kubernetes Engine (GKE) cluster.
https://github.com/osinfra-io/istio-test
golang google-cloud-platform infrastructure-as-code kubernetes osinfra platform-team terraform
Last synced: 12 months ago
JSON representation
An example Istio test application that shows information about the Google Kubernetes Engine (GKE) cluster.
- Host: GitHub
- URL: https://github.com/osinfra-io/istio-test
- Owner: osinfra-io
- License: gpl-2.0
- Created: 2024-05-15T23:09:17.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-25T09:31:18.000Z (over 1 year ago)
- Last Synced: 2025-03-09T08:09:42.612Z (over 1 year ago)
- Topics: golang, google-cloud-platform, infrastructure-as-code, kubernetes, osinfra, platform-team, terraform
- Language: Go
- Homepage: https://www.osinfra.io
- Size: 268 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
#
Istio Test
An example Istio test application that shows information about the Google Kubernetes Engine (GKE) cluster.
## Usage
```yaml
---
apiVersion: v1
kind: Namespace
metadata:
name: istio-test
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: istio-test
namespace: istio-test
spec:
replicas: 1
selector:
matchLabels:
app: istio-test
template:
metadata:
labels:
app: istio-test
spec:
containers:
- image: ghcr.io/osinfra-io/istio-test:latest
imagePullPolicy: Always
name: istio-test
ports:
- containerPort: 8080
resources:
limits:
cpu: "50m"
memory: "128Mi"
requests:
cpu: "25m"
memory: "64Mi"
---
apiVersion: v1
kind: Service
metadata:
name: istio-test
namespace: istio-test
labels:
app: istio-test
spec:
ports:
- name: http
port: 8080
targetPort: 8080
selector:
app: istio-test
```
After deploying, you can get the information about the GKE cluster by running the following command:
```bash
kubectl port-forward --namespace istio-test $(kubectl get pod --namespace istio-test --selector="app=istio-test" --output jsonpath='{.items[0].metadata.name}') 8080:8080
```
Curl the endpoint:
```bash
curl http://localhost:8080/istio-test
```