From: Xinhui Li Date: Tue, 5 Jan 2021 19:04:07 +0000 (-0800) Subject: Add sample service X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F25%2F4025%2F1;p=iec%2Fxconnect.git Add sample service Signed-off-by: xinhui li Change-Id: I24cb0b8d12b8794cacf9f14adbbfeed772b5e324 --- 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