Skip to content

Commit

Permalink
Move ingress to premium-context-server namespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellw committed Dec 20, 2023
1 parent 46cba99 commit 3597896
Showing 1 changed file with 19 additions and 27 deletions.
46 changes: 19 additions & 27 deletions apps/prod/premium-context-server/ingress-nginx.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
labels:
app.kubernetes.io/instance: premium-ingress-nginx
app.kubernetes.io/name: premium-ingress-nginx
name: premium-ingress-nginx
---
apiVersion: v1
automountServiceAccountToken: true
kind: ServiceAccount
metadata:
Expand All @@ -17,7 +9,7 @@ metadata:
app.kubernetes.io/part-of: premium-ingress-nginx
app.kubernetes.io/version: 1.6.4
name: premium-ingress-nginx
namespace: premium-ingress-nginx
namespace: premium-context-server
---
apiVersion: v1
kind: ServiceAccount
Expand All @@ -29,7 +21,7 @@ metadata:
app.kubernetes.io/part-of: premium-ingress-nginx
app.kubernetes.io/version: 1.6.4
name: premium-ingress-nginx-admission
namespace: premium-ingress-nginx
namespace: premium-context-server
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
Expand All @@ -41,7 +33,7 @@ metadata:
app.kubernetes.io/part-of: premium-ingress-nginx
app.kubernetes.io/version: 1.6.4
name: premium-ingress-nginx
namespace: premium-ingress-nginx
namespace: premium-context-server
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -131,7 +123,7 @@ metadata:
app.kubernetes.io/part-of: premium-ingress-nginx
app.kubernetes.io/version: 1.6.4
name: premium-ingress-nginx-admission
namespace: premium-ingress-nginx
namespace: premium-context-server
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -251,15 +243,15 @@ metadata:
app.kubernetes.io/part-of: premium-ingress-nginx
app.kubernetes.io/version: 1.6.4
name: premium-ingress-nginx
namespace: premium-ingress-nginx
namespace: premium-context-server
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: premium-ingress-nginx
subjects:
- kind: ServiceAccount
name: premium-ingress-nginx
namespace: premium-ingress-nginx
namespace: premium-context-server
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
Expand All @@ -271,15 +263,15 @@ metadata:
app.kubernetes.io/part-of: premium-ingress-nginx
app.kubernetes.io/version: 1.6.4
name: premium-ingress-nginx-admission
namespace: premium-ingress-nginx
namespace: premium-context-server
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: premium-ingress-nginx-admission
subjects:
- kind: ServiceAccount
name: premium-ingress-nginx-admission
namespace: premium-ingress-nginx
namespace: premium-context-server
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -297,7 +289,7 @@ roleRef:
subjects:
- kind: ServiceAccount
name: premium-ingress-nginx
namespace: premium-ingress-nginx
namespace: premium-context-server
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand All @@ -316,7 +308,7 @@ roleRef:
subjects:
- kind: ServiceAccount
name: premium-ingress-nginx-admission
namespace: premium-ingress-nginx
namespace: premium-context-server
---
apiVersion: v1
data:
Expand All @@ -337,7 +329,7 @@ metadata:
app.kubernetes.io/part-of: premium-ingress-nginx
app.kubernetes.io/version: 1.6.4
name: premium-ingress-nginx-controller
namespace: premium-ingress-nginx
namespace: premium-context-server
---
apiVersion: v1
kind: Service
Expand All @@ -349,7 +341,7 @@ metadata:
app.kubernetes.io/part-of: premium-ingress-nginx
app.kubernetes.io/version: 1.6.4
name: premium-ingress-nginx-controller
namespace: premium-ingress-nginx
namespace: premium-context-server
spec:
externalTrafficPolicy: Local
ipFamilies:
Expand Down Expand Up @@ -385,7 +377,7 @@ metadata:
app.kubernetes.io/part-of: premium-ingress-nginx
app.kubernetes.io/version: 1.6.4
name: premium-ingress-nginx-controller-admission
namespace: premium-ingress-nginx
namespace: premium-context-server
spec:
ports:
- appProtocol: https
Expand All @@ -408,7 +400,7 @@ metadata:
app.kubernetes.io/part-of: premium-ingress-nginx
app.kubernetes.io/version: 1.6.4
name: premium-ingress-nginx-controller
namespace: premium-ingress-nginx
namespace: premium-context-server
spec:
replicas: 1
minReadySeconds: 0
Expand Down Expand Up @@ -563,7 +555,7 @@ metadata:
app.kubernetes.io/part-of: premium-ingress-nginx
app.kubernetes.io/version: 1.6.4
name: premium-ingress-nginx-admission-create
namespace: premium-ingress-nginx
namespace: premium-context-server
spec:
template:
metadata:
Expand Down Expand Up @@ -610,7 +602,7 @@ metadata:
app.kubernetes.io/part-of: premium-ingress-nginx
app.kubernetes.io/version: 1.6.4
name: premium-ingress-nginx-admission-patch
namespace: premium-ingress-nginx
namespace: premium-context-server
spec:
template:
metadata:
Expand Down Expand Up @@ -678,7 +670,7 @@ webhooks:
clientConfig:
service:
name: premium-ingress-nginx-controller-admission
namespace: premium-ingress-nginx
namespace: premium-context-server
path: /networking/v1/ingresses
failurePolicy: Fail
matchPolicy: Equivalent
Expand All @@ -699,7 +691,7 @@ apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
name: premium-ingress-nginx-podmonitor
namespace: premium-ingress-nginx
namespace: premium-context-server
labels:
app.kubernetes.io/part-of: compose
spec:
Expand All @@ -708,7 +700,7 @@ spec:
targetPort: 10254
namespaceSelector:
matchNames:
- premium-ingress-nginx
- premium-context-server
selector:
matchExpressions:
- key: app.kubernetes.io/name
Expand Down

0 comments on commit 3597896

Please sign in to comment.