File tree 1 file changed +97
-0
lines changed
teams/team-riker/dev/templates/alb-skiapp
1 file changed +97
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : argoproj.io/v1alpha1
2
+ kind : Rollout
3
+ metadata :
4
+ name : skiapp-rollout
5
+ namespace : team-riker
6
+ labels :
7
+ app : skiapp
8
+ spec :
9
+ replicas : 3
10
+ revisionHistoryLimit : 1
11
+ selector :
12
+ matchLabels :
13
+ app : skiapp
14
+ template :
15
+ metadata :
16
+ labels :
17
+ app : skiapp
18
+ spec :
19
+ containers :
20
+ - name : skiapp
21
+ image : sharepointoscar/skiapp:v1
22
+ imagePullPolicy : Always
23
+ ports :
24
+ - name : http
25
+ containerPort : 8080
26
+ protocol : TCP
27
+ resources :
28
+ requests :
29
+ memory : " 64Mi"
30
+ cpu : " 250m"
31
+ limits :
32
+ memory : " 128Mi"
33
+ cpu : " 500m"
34
+ {{ if .Values.spec.karpenterInstanceProfile }}
35
+ nodeSelector : # <- add nodeselector, toleration and spread constraitns
36
+ team : default
37
+ type : karpenter
38
+ tolerations :
39
+ - key : ' karpenter'
40
+ operator : ' Exists'
41
+ effect : ' NoSchedule'
42
+ {{ end }}
43
+ topologySpreadConstraints :
44
+ - maxSkew : 1
45
+ topologyKey : topology.kubernetes.io/zone
46
+ whenUnsatisfiable : DoNotSchedule
47
+ labelSelector :
48
+ matchLabels :
49
+ app : skiapp
50
+ tolerations :
51
+ - key : ' karpenter'
52
+ operator : ' Exists'
53
+ effect : ' NoSchedule'
54
+ strategy :
55
+ blueGreen :
56
+ autoPromotionEnabled : false
57
+ activeService : skiapp-service
58
+ previewService : skiapp-service-preview
59
+ ---
60
+ apiVersion : v1
61
+ kind : Service
62
+ metadata :
63
+ name : skiapp-service-preview
64
+ namespace : team-riker
65
+ spec :
66
+ ports :
67
+ - port : 80
68
+ targetPort : 8080
69
+ protocol : TCP
70
+ type : NodePort
71
+ selector :
72
+ app : skiapp
73
+ ---
74
+ apiVersion : networking.k8s.io/v1
75
+ kind : Ingress
76
+ metadata :
77
+ name : skiapp-ingress-preview
78
+ namespace : team-riker
79
+ annotations :
80
+ alb.ingress.kubernetes.io/group.name : riker-preview
81
+ alb.ingress.kubernetes.io/scheme : internet-facing
82
+ alb.ingress.kubernetes.io/target-type : ip
83
+ alb.ingress.kubernetes.io/listen-ports : ' [{"HTTP": 80}]'
84
+ alb.ingress.kubernetes.io/tags : ' Environment=dev,Team=Riker'
85
+ spec :
86
+ ingressClassName : alb
87
+ rules :
88
+ - host :
89
+ http :
90
+ paths :
91
+ - path : /
92
+ pathType : Prefix
93
+ backend :
94
+ service :
95
+ name : skiapp-service-preview
96
+ port :
97
+ number : 80
You can’t perform that action at this time.
0 commit comments