Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A auth-server
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PT. Tabeldata Informatika
  • auth-server
  • Wiki
  • Deployments
  • Kubernates
  • Istio

Istio · Changes

Page history
update dokumentasi kubernates authored Jun 26, 2019 by dimasm93's avatar dimasm93
Hide whitespace changes
Inline Side-by-side
Deployments/Kubernates/Istio.md
View page @ cbbdfbbb
# Installation
- [istio](https://istio.io/docs/setup/kubernetes/install/kubernetes/)
- helm (Optional)
Pertama download dulu, [istio.io lastest version](https://istio.io/docs/setup/kubernetes/download/), kemudian gunakan script berikut:
```bash
for i in install/kubernetes/helm/istio-init/files/crd*yaml; do kubectl apply -f $i; done
```
Setelah itu, kita active-kan istionya dengan menggunakan perintah berikut:
```bash
kubectl apply -f path-to-istio/install/kubernetes/istio-demo-auth.yaml
```
## Springboot running into pods
```bash
kubectl label namespace default istio-injection=enabled
## apply proxy
kubectl apply -f kubernetes/istio.gateway.yaml
kubectl apply -f kubernetes/istio.virtualservice.yaml
```
check status is running:
```bash
watch kubectl get pods -A
```
![watch pods creating](../imgs/watch-pods-creating.png)
## Testing
Setelah run, kita bisa testing dengan perintah berikut:
Untuk request token
```bash
curl -X POST \
'http://<minikube ip>:31380/oauth/token?username=user&password=password&grant_type=password' \
-H 'Authorization: Basic Y2xpZW50LXdlYjoxMjM0NTY=' \
-H 'cache-control: no-cache'
```
Untuk request api:
```bash
curl -X GET \
http://<minikube ip>:31380/api/example \
-H 'Authorization: Bearer [access-token]' \
-H 'cache-control: no-cache'
```
## Visualization mesh service
```bash
kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=kiali -o jsonpath='{.items[0].metadata.name}') 20001:20001
```
visit [http://localhost:20001/kiali/console](http://localhost:20001/kiali/console)
Berikut adalah graph flow service mesh:
![graph](../imgs/graph-service-mesh.png)
## Istio Dashboard
```bash
kubectl -n istio-system port-forward $(kubectl -n istio-system get pod -l app=grafana -o jsonpath='{.items[0].metadata.name}') 3000:3000 &
```
visit [http://localhost:3000/dashboard/db/istio-mesh-dashboard](http://localhost:3000/dashboard/db/istio-mesh-dashboard)
![graph](../imgs/istio-dashboard.png)
Clone repository
  • Auth
    • OAuth 2.0
      • Request Access Token
      • Request Access Token
        • GrantType Authorization Code
        • GrantType Password
    • WebAuthentication
      • Login Page
  • Database
    • MS SQLServer2017
      • Resource Servers
      • Token Store
      • Users
    • Oracle11g
      • Resource Servers
      • Users
    • PostgreSQL97
      • Resource Servers
      • Users
    • SchemaMigration
  • Deployments
    • Docker
      • Docker Compose
        • Run MS SQLServer2017
        • Run Oracle11g
        • Run PostgreSQL97
View All Pages