Skip to content

Commit

Permalink
Refactor project resources by namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
garystafford committed Jun 12, 2021
1 parent 1cd8912 commit 63e7108
Show file tree
Hide file tree
Showing 24 changed files with 26 additions and 28 deletions.
File renamed without changes.
17 changes: 0 additions & 17 deletions resources/aws/trust-eks-policy-internal.json

This file was deleted.

2 changes: 1 addition & 1 deletion resources/aws/trust-eks-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{
"Effect":"Allow",
"Principal":{
"Federated":"arn:aws:iam::676164205626:oidc-provider/oidc.eks.us-east-1.amazonaws.com/id/F91B063F4B2E8BDFED054DD64DAB4368"
"Federated":"arn:aws:iam::1234567890:oidc-provider/oidc.eks.us-east-1.amazonaws.com/id/F91B063F4B2E8BDFED054DD64DAB4368"
},
"Action":"sts:AssumeRoleWithWebIdentity",
"Condition":{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: angular-ui
namespace: dev
spec:
host: angular-ui.dev.svc.cluster.local
subsets:
Expand All @@ -13,6 +14,7 @@ apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: service-a
namespace: dev
spec:
host: service-a.dev.svc.cluster.local
subsets:
Expand All @@ -24,6 +26,7 @@ apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: service-b
namespace: dev
spec:
host: service-b.dev.svc.cluster.local
subsets:
Expand All @@ -35,6 +38,7 @@ apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: service-c
namespace: dev
spec:
host: service-c.dev.svc.cluster.local
subsets:
Expand All @@ -46,6 +50,7 @@ apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: service-d
namespace: dev
spec:
host: service-d.dev.svc.cluster.local
subsets:
Expand All @@ -57,6 +62,7 @@ apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: service-e
namespace: dev
spec:
host: service-e.dev.svc.cluster.local
subsets:
Expand All @@ -68,6 +74,7 @@ apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: service-f
namespace: dev
spec:
host: service-f.dev.svc.cluster.local
subsets:
Expand All @@ -79,6 +86,7 @@ apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: service-g
namespace: dev
spec:
host: service-g.dev.svc.cluster.local
subsets:
Expand All @@ -90,6 +98,7 @@ apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: service-h
namespace: dev
spec:
host: service-h.dev.svc.cluster.local
subsets:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: amazon-mq-external-mesh
namespace: dev
spec:
hosts:
- {{ your_amazon_mq_hostname }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
name: docdb-external-mesh
namespace: dev
spec:
hosts:
- {{ your_document_db_hostname }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: istio-gateway
namespace: dev
spec:
selector:
istio: ingressgateway # use istio default controller
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: angular-ui
namespace: dev
spec:
hosts:
- {{ your_ui_hostname }}
Expand All @@ -22,6 +23,7 @@ apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: service-a
namespace: dev
spec:
hosts:
- {{ your_api_hostname }}
Expand Down
9 changes: 9 additions & 0 deletions resources/dev/secrets/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: go-srv-config
namespace: dev
type: Opaque
data:
mongodb.conn: {{ your_base64_encoded_secret }}
rabbitmq.conn: {{ your_base64_encoded_secret }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
apiVersion: v1
kind: Secret
metadata:
name: go-srv-config
namespace: dev
type: Opaque
data:
mongodb.conn: {{ your_base64_encoded_secret }}
rabbitmq.conn: {{ your_base64_encoded_secret }}
---
apiVersion: v1
kind: Secret
metadata:
name: mongo-express-config
namespace: mongo-express
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiversion: v1
kind: Service
metadata:
name: mongo-express
namespace: mongo-express
labels:
app: mongo-express
spec:
Expand All @@ -16,6 +17,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: mongo-express
namespace: mongo-express
labels:
app: mongo-express
spec:
Expand Down

0 comments on commit 63e7108

Please sign in to comment.