Signed-off-by: xinhui li <xinhui.li@salesforce.com>
Change-Id: I24cb0b8d12b8794cacf9f14adbbfeed772b5e324
-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