Skip to content

Commit

Permalink
sync - l7 cilium
Browse files Browse the repository at this point in the history
  • Loading branch information
msfidelis committed Aug 9, 2023
1 parent eeedc88 commit e81506a
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 19 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added samples/.DS_Store
Binary file not shown.
2 changes: 0 additions & 2 deletions samples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
### Nats Deploy

```bash
```
helm repo add nats https://nats-io.github.io/k8s/helm/charts/

helm install nats nats/nats \
Expand All @@ -17,5 +16,4 @@ helm install nats nats/nats \
--set nats.jetstream.fileStorage.enabled=true \
--set nats.jetstream.fileStorage.size=1Gi \
--set nats.jetstream.fileStorage.storageDirectory=/data/
```
```
3 changes: 2 additions & 1 deletion samples/cilium/bmr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ spec:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "30000"
prometheus.io/port: "30000"
policy.cilium.io/proxy-visibility: "<Egress/53/UDP/DNS>,<Egress/30000/TCP/HTTP>"
labels:
app: bmr-grpc
name: bmr-grpc
Expand Down
3 changes: 2 additions & 1 deletion samples/cilium/calories.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ spec:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "30000"
prometheus.io/port: "30000"
policy.cilium.io/proxy-visibility: "<Egress/53/UDP/DNS>,<Egress/30000/TCP/HTTP>"
labels:
app: calories-grpc
name: calories-grpc
Expand Down
3 changes: 2 additions & 1 deletion samples/cilium/database-store-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ spec:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
prometheus.io/port: "8080"
policy.cilium.io/proxy-visibility: "<Egress/53/UDP/DNS>,<Egress/30000/TCP/HTTP>"
labels:
app: database-store-service
name: database-store-service
Expand Down
17 changes: 7 additions & 10 deletions samples/cilium/health-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ spec:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "8080"
prometheus.io/port: "8080"
policy.cilium.io/proxy-visibility: "<Egress/53/UDP/DNS>,<Egress/30000/TCP/HTTP>"
labels:
app: health-api
name: health-api
Expand All @@ -41,15 +42,6 @@ spec:
value: "recommendations-grpc.recommendations.svc.cluster.local:30000"
- name: NATS_URI
value: "nats://nats.nats.svc.cluster.local:4222"
# livenessProbe:
# failureThreshold: 10
# httpGet:
# httpHeaders:
# - name: Custom-Header
# value: Awesome
# path: /healthcheck
# port: 8080
# periodSeconds: 10
ports:
- containerPort: 8080
name: http
Expand All @@ -59,6 +51,11 @@ spec:
path: /healthcheck
port: 8080
periodSeconds: 10
livenessProbe:
failureThreshold: 10
httpGet:
path: /healthcheck
port: 8080
terminationGracePeriodSeconds: 60
---
apiVersion: v1
Expand Down
3 changes: 2 additions & 1 deletion samples/cilium/imc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ spec:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "30000"
prometheus.io/port: "bmr-grpc.bmr.svc.cluster.local:30000"
policy.cilium.io/proxy-visibility: "<Egress/53/UDP/DNS>,<Egress/30000/TCP/HTTP>"
labels:
app: imc-grpc
name: imc-grpc
Expand Down
3 changes: 2 additions & 1 deletion samples/cilium/proteins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ spec:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "30000"
prometheus.io/port: "30000"
policy.cilium.io/proxy-visibility: "<Egress/53/UDP/DNS>,<Egress/30000/TCP/HTTP>"
labels:
app: proteins-grpc
name: proteins-grpc
Expand Down
3 changes: 2 additions & 1 deletion samples/cilium/recommendations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ spec:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "30000"
prometheus.io/port: "30000"
policy.cilium.io/proxy-visibility: "<Egress/53/UDP/DNS>,<Egress/30000/TCP/HTTP>"
labels:
app: recommendations-grpc
name: recommendations-grpc
Expand Down
3 changes: 2 additions & 1 deletion samples/cilium/water.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ spec:
metadata:
annotations:
prometheus.io/scrape: "true"
prometheus.io/port: "30000"
prometheus.io/port: "30000"
policy.cilium.io/proxy-visibility: "<Egress/53/UDP/DNS>,<Egress/30000/TCP/HTTP>"
labels:
app: water-grpc
name: water-grpc
Expand Down

0 comments on commit e81506a

Please sign in to comment.