From 99217abd0a3e75be21629d45273c34e34b277f9d Mon Sep 17 00:00:00 2001 From: dstrebel Date: Mon, 30 Mar 2020 11:46:51 -0500 Subject: [PATCH] added yamls --- cluster-apps/azure-vote.yaml | 78 ++++++++++++++++++++++++++++++++++++ namespaces/itops.yaml | 6 +++ namespaces/team-a.yaml | 6 +++ namespaces/team-b.yaml | 6 +++ team-a/endpoints.yaml | 8 ++++ 5 files changed, 104 insertions(+) create mode 100644 cluster-apps/azure-vote.yaml create mode 100644 namespaces/itops.yaml create mode 100644 namespaces/team-a.yaml create mode 100644 namespaces/team-b.yaml create mode 100644 team-a/endpoints.yaml diff --git a/cluster-apps/azure-vote.yaml b/cluster-apps/azure-vote.yaml new file mode 100644 index 0000000..a0350fa --- /dev/null +++ b/cluster-apps/azure-vote.yaml @@ -0,0 +1,78 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: azure-vote-back +spec: + replicas: 1 + selector: + matchLabels: + app: azure-vote-back + template: + metadata: + labels: + app: azure-vote-back + spec: + nodeSelector: + "beta.kubernetes.io/os": linux + containers: + - name: azure-vote-back + image: redis + ports: + - containerPort: 6379 + name: redis +--- +apiVersion: v1 +kind: Service +metadata: + name: azure-vote-back +spec: + ports: + - port: 6379 + selector: + app: azure-vote-back +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: azure-vote-front +spec: + replicas: 1 + selector: + matchLabels: + app: azure-vote-front + strategy: + rollingUpdate: + maxSurge: 1 + maxUnavailable: 1 + minReadySeconds: 5 + template: + metadata: + labels: + app: azure-vote-front + spec: + nodeSelector: + "beta.kubernetes.io/os": linux + containers: + - name: azure-vote-front + image: microsoft/azure-vote-front:v1 + ports: + - containerPort: 80 + resources: + requests: + cpu: 250m + limits: + cpu: 500m + env: + - name: REDIS + value: "azure-vote-back" +--- +apiVersion: v1 +kind: Service +metadata: + name: azure-vote-front +spec: + type: LoadBalancer + ports: + - port: 80 + selector: + app: azure-vote-front \ No newline at end of file diff --git a/namespaces/itops.yaml b/namespaces/itops.yaml new file mode 100644 index 0000000..1e81c22 --- /dev/null +++ b/namespaces/itops.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + labels: + name: itops + name: itops \ No newline at end of file diff --git a/namespaces/team-a.yaml b/namespaces/team-a.yaml new file mode 100644 index 0000000..4aaf4bb --- /dev/null +++ b/namespaces/team-a.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + labels: + name: team-a + name: team-a \ No newline at end of file diff --git a/namespaces/team-b.yaml b/namespaces/team-b.yaml new file mode 100644 index 0000000..732e4d6 --- /dev/null +++ b/namespaces/team-b.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + labels: + name: team-b + name: team-b \ No newline at end of file diff --git a/team-a/endpoints.yaml b/team-a/endpoints.yaml new file mode 100644 index 0000000..e846c05 --- /dev/null +++ b/team-a/endpoints.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: endpoints + namespace: team-a +data: + logs: https://logs.endpoint.internal.corpnet + metrics: https://metrics.endpoint.internal.corpnet/v2 \ No newline at end of file