diff --git a/argocd/waiter/intern-prac/00.yaml b/argocd/waiter/intern-prac/00.yaml new file mode 100644 index 00000000..fb20551a --- /dev/null +++ b/argocd/waiter/intern-prac/00.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-{} +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-{} + namespace: intern-{} +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-{}" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-{} + namespace: intern-{} +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-{} + namespace: intern-{} +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-{} + namespace: intern-{} + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/app.yaml b/argocd/waiter/intern-prac/app.yaml new file mode 100644 index 00000000..c77bf352 --- /dev/null +++ b/argocd/waiter/intern-prac/app.yaml @@ -0,0 +1,22 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + namespace: argocd + name: practice + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: default + destination: + name: in-cluster + namespace: default + # syncPolicy: + # automated: + # prune: true + # selfHeal: true + sources: + - repoURL: https://github.com/bacchus-snu/cd-manifests.git + targetRevision: main + path: argocd/waiter/intern-prac/svc/ +--- diff --git a/argocd/waiter/intern-prac/svc/01.yaml b/argocd/waiter/intern-prac/svc/01.yaml new file mode 100644 index 00000000..54f7ee81 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/01.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-01 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-01 + namespace: intern-01 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-01" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-01 + namespace: intern-01 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-01 + namespace: intern-01 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-01 + namespace: intern-01 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/02.yaml b/argocd/waiter/intern-prac/svc/02.yaml new file mode 100644 index 00000000..ecedc08b --- /dev/null +++ b/argocd/waiter/intern-prac/svc/02.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-02 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-02 + namespace: intern-02 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-02" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-02 + namespace: intern-02 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-02 + namespace: intern-02 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-02 + namespace: intern-02 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/03.yaml b/argocd/waiter/intern-prac/svc/03.yaml new file mode 100644 index 00000000..a75a5e4a --- /dev/null +++ b/argocd/waiter/intern-prac/svc/03.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-03 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-03 + namespace: intern-03 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-03" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-03 + namespace: intern-03 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-03 + namespace: intern-03 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-03 + namespace: intern-03 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/04.yaml b/argocd/waiter/intern-prac/svc/04.yaml new file mode 100644 index 00000000..83cc93d5 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/04.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-04 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-04 + namespace: intern-04 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-04" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-04 + namespace: intern-04 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-04 + namespace: intern-04 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-04 + namespace: intern-04 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/05.yaml b/argocd/waiter/intern-prac/svc/05.yaml new file mode 100644 index 00000000..9bf5b948 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/05.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-05 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-05 + namespace: intern-05 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-05" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-05 + namespace: intern-05 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-05 + namespace: intern-05 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-05 + namespace: intern-05 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/06.yaml b/argocd/waiter/intern-prac/svc/06.yaml new file mode 100644 index 00000000..d4319732 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/06.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-06 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-06 + namespace: intern-06 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-06" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-06 + namespace: intern-06 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-06 + namespace: intern-06 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-06 + namespace: intern-06 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/07.yaml b/argocd/waiter/intern-prac/svc/07.yaml new file mode 100644 index 00000000..30c73455 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/07.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-07 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-07 + namespace: intern-07 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-07" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-07 + namespace: intern-07 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-07 + namespace: intern-07 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-07 + namespace: intern-07 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/08.yaml b/argocd/waiter/intern-prac/svc/08.yaml new file mode 100644 index 00000000..39cd7e62 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/08.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-08 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-08 + namespace: intern-08 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-08" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-08 + namespace: intern-08 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-08 + namespace: intern-08 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-08 + namespace: intern-08 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/09.yaml b/argocd/waiter/intern-prac/svc/09.yaml new file mode 100644 index 00000000..c05721d4 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/09.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-09 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-09 + namespace: intern-09 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-09" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-09 + namespace: intern-09 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-09 + namespace: intern-09 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-09 + namespace: intern-09 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/10.yaml b/argocd/waiter/intern-prac/svc/10.yaml new file mode 100644 index 00000000..9bf3c7bf --- /dev/null +++ b/argocd/waiter/intern-prac/svc/10.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-10 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-10 + namespace: intern-10 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-10" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-10 + namespace: intern-10 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-10 + namespace: intern-10 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-10 + namespace: intern-10 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/11.yaml b/argocd/waiter/intern-prac/svc/11.yaml new file mode 100644 index 00000000..c01a2512 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/11.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-11 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-11 + namespace: intern-11 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-11" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-11 + namespace: intern-11 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-11 + namespace: intern-11 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-11 + namespace: intern-11 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/12.yaml b/argocd/waiter/intern-prac/svc/12.yaml new file mode 100644 index 00000000..96ff038c --- /dev/null +++ b/argocd/waiter/intern-prac/svc/12.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-12 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-12 + namespace: intern-12 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-12" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-12 + namespace: intern-12 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-12 + namespace: intern-12 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-12 + namespace: intern-12 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/13.yaml b/argocd/waiter/intern-prac/svc/13.yaml new file mode 100644 index 00000000..858a7f71 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/13.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-13 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-13 + namespace: intern-13 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-13" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-13 + namespace: intern-13 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-13 + namespace: intern-13 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-13 + namespace: intern-13 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/14.yaml b/argocd/waiter/intern-prac/svc/14.yaml new file mode 100644 index 00000000..bcbf3fc7 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/14.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-14 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-14 + namespace: intern-14 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-14" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-14 + namespace: intern-14 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-14 + namespace: intern-14 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-14 + namespace: intern-14 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/15.yaml b/argocd/waiter/intern-prac/svc/15.yaml new file mode 100644 index 00000000..8bffd121 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/15.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-15 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-15 + namespace: intern-15 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-15" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-15 + namespace: intern-15 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-15 + namespace: intern-15 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-15 + namespace: intern-15 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/16.yaml b/argocd/waiter/intern-prac/svc/16.yaml new file mode 100644 index 00000000..a0297778 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/16.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-16 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-16 + namespace: intern-16 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-16" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-16 + namespace: intern-16 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-16 + namespace: intern-16 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-16 + namespace: intern-16 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/17.yaml b/argocd/waiter/intern-prac/svc/17.yaml new file mode 100644 index 00000000..0f90d532 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/17.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-17 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-17 + namespace: intern-17 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-17" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-17 + namespace: intern-17 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-17 + namespace: intern-17 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-17 + namespace: intern-17 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/18.yaml b/argocd/waiter/intern-prac/svc/18.yaml new file mode 100644 index 00000000..957e06e7 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/18.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-18 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-18 + namespace: intern-18 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-18" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-18 + namespace: intern-18 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-18 + namespace: intern-18 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-18 + namespace: intern-18 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/19.yaml b/argocd/waiter/intern-prac/svc/19.yaml new file mode 100644 index 00000000..ce46d5b2 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/19.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-19 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-19 + namespace: intern-19 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-19" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-19 + namespace: intern-19 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-19 + namespace: intern-19 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-19 + namespace: intern-19 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80 diff --git a/argocd/waiter/intern-prac/svc/20.yaml b/argocd/waiter/intern-prac/svc/20.yaml new file mode 100644 index 00000000..bfcea114 --- /dev/null +++ b/argocd/waiter/intern-prac/svc/20.yaml @@ -0,0 +1,82 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: intern-20 +--- +apiVersion: gateway.networking.k8s.io/v1 +kind: HTTPRoute +metadata: + name: intern-20 + namespace: intern-20 +spec: + hostnames: + - 'practice.bacchus.io' + parentRefs: + - kind: Gateway + name: web-gateway + namespace: cilium-system + rules: + - matches: + - path: + type: PathPrefix + value: "/intern-20" + backendRefs: + - name: practice + port: 80 + filters: + - type: URLRewrite + urlRewrite: + path: + type: ReplacePrefixMatch + replacePrefixMatch: "/" +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: RoleBinding +metadata: + name: intern-20 + namespace: intern-20 +subjects: +- kind: Group + name: intern-members@bacchus.snucse.org +roleRef: + kind: ClusterRole + name: edit + apiGroup: rbac.authorization.k8s.io +--- +apiVersion: v1 +kind: Service +metadata: + name: intern-20 + namespace: intern-20 +spec: + selector: + instance: intern-rbac + ports: + - name: nginx + protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: intern-20 + namespace: intern-20 + labels: + instance: intern-rbac +spec: + replicas: 3 + selector: + matchLabels: + instance: intern-rbac + template: + metadata: + labels: + instance: intern-rbac + spec: + containers: + - name: my-nginx + image: nginx:alpine + ports: + - containerPort: 80