-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.yaml
104 lines (104 loc) · 2.68 KB
/
app.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
kind: "Template"
apiVersion: "v1"
metadata:
name: "kube-ec2-node-labeling"
annotations:
description: "Label Kubernetes nodes with information from EC2 tags"
version: "0.1"
iconClass: "fa fa-amazon"
tags: "ec2"
objects:
-
kind: "ServiceAccount"
apiVersion: "v1"
metadata:
name: "node-labeler"
-
kind: "DeploymentConfig"
apiVersion: "v1"
metadata:
name: "kube-ec2-node-labeling-${APP_ID}"
spec:
strategy:
type: Recreate
triggers:
-
type: "ConfigChange"
replicas: 1
selector:
name: "kube-ec2-node-labeling-${APP_ID}"
context: "service"
template:
metadata:
labels:
name: "kube-ec2-node-labeling-${APP_ID}"
context: "service"
spec:
containers:
-
name: "kube-ec2-node-labeling-${APP_ID}"
image: "luisbarrueco/kube-ec2-node-labeling:latest"
resources: {}
terminationMessagePath: "/dev/termination-log"
imagePullPolicy: Always
securityContext:
capabilities: {}
privileged: false
env:
-
name: PYKUBE_KUBERNETES_SERVICE_HOST
value: "${PYKUBE_KUBERNETES_SERVICE_HOST}"
-
name: PYKUBE_KUBERNETES_SERVICE_PORT
value: "${PYKUBE_KUBERNETES_SERVICE_PORT}"
-
name: REGION
value: "${REGION}"
-
name: VPC
value: "${VPC}"
-
name: LABEL_PREFIX
value: "${LABEL_PREFIX}"
volumeMounts:
- name: aws-config-volume
mountPath: /.aws
readOnly: true
volumes:
- name: aws-config-volume
secret:
secretName: aws-config
serviceAccountName: node-labeler
restartPolicy: "Always"
dnsPolicy: "ClusterFirst"
status: {}
parameters:
-
name: "APP_ID"
description: "Application execution ID"
generate: "expression"
from: "[a-z0-9]{3}"
required: true
-
name: "PYKUBE_KUBERNETES_SERVICE_HOST"
value: "kubernetes.default"
required: true
-
name: "PYKUBE_KUBERNETES_SERVICE_PORT"
value: "443"
required: true
-
name: "REGION"
value: "us-east-1"
required: true
-
name: "VPC"
value: "vpc-838c21e5"
required: true
-
name: "LABEL_PREFIX"
value: "node-tags.alpha.olapic.com"
required: true
labels:
vendor: "Olapic"
service: "kube-ec2-node-labeling"