Jesum Yip
11/10/2021, 9:54 AMJesum Yip
11/10/2021, 9:54 AMJesum Yip
11/10/2021, 9:54 AMCharith (Cerbos)
Jesum Yip
11/10/2021, 10:06 AMistioctl x describe pod cerbos-69cfc48ffb-w2p2p
Pod: cerbos-69cfc48ffb-w2p2p
Pod Ports: 3592 (cerbos), 3593 (cerbos), 15090 (istio-proxy)
Suggestion: add 'app' label to pod for Istio telemetry.
Suggestion: add 'version' label to pod for Istio telemetry.
--------------------
Service: cerbos
Port: http 3592/HTTP targets pod port 3592
Port: grpc 3593/GRPC targets pod port 3593
Exposed on Ingress Gateway http://<redacted>
VirtualService: cerbos
Weight 100%
Jesum Yip
11/10/2021, 10:06 AMJesum Yip
11/10/2021, 10:07 AMJesum Yip
11/10/2021, 10:08 AMapiVersion: <http://networking.istio.io/v1alpha3|networking.istio.io/v1alpha3>
kind: Gateway
metadata:
name: cerbos-gateway
spec:
selector:
istio: ingressgateway # use Istio default gateway implementation
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
tls:
httpsRedirect: true
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
serverCertificate: /etc/istio/ingressgateway-certs/tls.crt
privateKey: /etc/istio/ingressgateway-certs/tls.key
hosts:
- "*"
---
apiVersion: <http://networking.istio.io/v1alpha3|networking.istio.io/v1alpha3>
kind: VirtualService
metadata:
name: cerbos
spec:
gateways:
- cerbos-gateway
hosts:
- "*"
http:
- route:
- destination:
host: cerbos.cerbos.svc.cluster.local
port:
number: 3592
weight: 100
Charith (Cerbos)
Jesum Yip
11/10/2021, 10:10 AMJesum Yip
11/10/2021, 10:11 AMCharith (Cerbos)
Charith (Cerbos)
Jesum Yip
11/10/2021, 10:14 AMJesum Yip
11/10/2021, 10:15 AMJesum Yip
11/10/2021, 10:16 AMJesum Yip
11/10/2021, 10:16 AMCharith (Cerbos)
Jesum Yip
11/10/2021, 10:17 AMJesum Yip
11/10/2021, 10:17 AMJesum Yip
11/10/2021, 10:17 AMCharith (Cerbos)
curl cerbos.cerbos.svc.cluster.local:3592/_cerbos/health
Jesum Yip
11/10/2021, 10:19 AMroot@ubuntu:/# curl cerbos.cerbos.svc.cluster.local:3592/_cerbos/health
SERVING
root@ubuntu:/
Jesum Yip
11/10/2021, 10:19 AMCharith (Cerbos)
Jesum Yip
11/10/2021, 10:21 AMistioctl proxy-config route ubuntu
NOTE: This output only contains routes loaded via RDS.
NAME DOMAINS MATCH VIRTUAL SERVICE
3592 cerbos /*
3593 cerbos /*
15014 istiod.istio-system /*
istio-ingressgateway.istio-system.svc.cluster.local:15021 istio-ingressgateway.istio-system /*
80 default-http-backend.kube-system /*
80 istio-ingressgateway.istio-system /*
15010 istiod.istio-system /*
metrics-server.kube-system.svc.cluster.local:443 metrics-server.kube-system /*
* /stats/prometheus*
* /healthz/ready*
InboundPassthroughClusterIpv4 * /*
InboundPassthroughClusterIpv4 * /*
Jesum Yip
11/10/2021, 10:21 AMJesum Yip
11/10/2021, 10:21 AMCharith (Cerbos)
Charith (Cerbos)
Jesum Yip
11/10/2021, 10:24 AMJesum Yip
11/11/2021, 8:26 AMJesum Yip
11/11/2021, 8:27 AMCharith (Cerbos)