Skip to content

Commit

Permalink
working on lb samples and policies.
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenhak committed Jun 6, 2024
1 parent 95ff86e commit c6347f9
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion samples/pepsi/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ spec:
service:
name: emailservice
port:
number: 80
number: 80
12 changes: 12 additions & 0 deletions samples/pepsi/lb.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: kubevious.io/v1alpha1
kind: ClusterRuleApplicator
metadata:
name: lb-white-list
spec:
clusterRuleRef:
name: lb-white-list
values:
allowed-apps:
- app: emailservice
- app: important-service
25 changes: 25 additions & 0 deletions samples/pepsi/network.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
apiVersion: kubevious.io/v1alpha1
kind: ClusterRuleApplicator
metadata:
name: service-
spec:
source:
app: email-service
dest:
app: mysql
action: allow
enforce:
- tls

---
apiVersion: kubevious.io/v1alpha1
kind: ClusterRuleApplicator
metadata:
name: service-
spec:
sources:
# - backend
# - backend2
dest:
app: mysql

0 comments on commit c6347f9

Please sign in to comment.