From 86c8db61240e848629e45022c987ec2fe2d1f88b Mon Sep 17 00:00:00 2001 From: Xinhui Li Date: Tue, 5 Jan 2021 11:04:07 -0800 Subject: [PATCH] Add sample service Signed-off-by: xinhui li Change-Id: I24cb0b8d12b8794cacf9f14adbbfeed772b5e324 --- mash | 54 ++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 48 insertions(+), 6 deletions(-) diff --git a/mash b/mash index 86ab2b4..3e2d4f1 100644 --- a/mash +++ b/mash @@ -1,7 +1,49 @@ -apiVersion: install.istio.io/v1alpha1 -kind: IstioOperator +apiVersion: v1 +kind: Service +metadata: + name: my-service + namespace: my-namespace + labels: + app: my-app + annotations: + service.beta.kubernetes.io/aws-load-balancer-type: "nlb" spec: - meshConfig: - defaultConfig: - gatewayTopology: - numTrustedProxies: 2 + selector: + app: my-app + ports: + - protocol: TCP + port: 80 + targetPort: 80 +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: my-deployment + namespace: my-namespace + labels: + app: my-app +spec: + replicas: 1 + selector: + matchLabels: + app: my-app + template: + metadata: + labels: + app: my-app + spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: beta.kubernetes.io/arch + operator: In + values: + - amd64 + - arm64 + containers: + - name: nginx + image: nginx:1.19.2 + ports: + - containerPort: 80 -- 2.16.6