Add sample service 25/4025/1
authorXinhui Li <xinhui.li@salesforce.com>
Tue, 5 Jan 2021 19:04:07 +0000 (11:04 -0800)
committerXinhui Li <xinhui.li@salesforce.com>
Tue, 5 Jan 2021 19:04:07 +0000 (11:04 -0800)
Signed-off-by: xinhui li <xinhui.li@salesforce.com>
Change-Id: I24cb0b8d12b8794cacf9f14adbbfeed772b5e324

mash

diff --git a/mash b/mash
index 86ab2b4..3e2d4f1 100644 (file)
--- 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