This repository has been archived by the owner on Oct 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.spinnaker.yml
57 lines (57 loc) · 2.2 KB
/
.spinnaker.yml
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
# This is an example of a delivery config
# For kubernetes
# other examples can be found here: https://github.com/nimakaviani/spin-md-test/tree/master/.spinnaker
name: my-k8s-manifest
application: test # the name of the application you created in spinnaker
serviceAccount: [email protected] # the name of the service account that was created to run managed delivery instructions to create: https://spinnaker.io/setup/security/authorization/service-accounts/
artifacts: []
environments:
- name: testing
locations:
account: spinnaker-service-account # the kubernetes account that you would like to use for this managed delivery as defined in providers: kubernetes: accounts:
regions: []
resources:
- kind: k8s/resource@v1
spec:
metadata:
application: test # the name of the application you created in spinnaker
template:
apiVersion: v1
kind: Service
metadata:
name: yollo-svc
namespace: default # the namespace that you would like to deploy this to, make sure the spinnaker instance has permissions to access this namespace as well
annotations:
app: hello
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 80
selector:
app: hello
- kind: k8s/resource@v1
spec:
metadata:
application: test # the name of the application you created in spinnaker
template:
apiVersion: apps/v1
kind: Deployment
metadata:
name: yollo-deply
namespace: default # the namespace that you would like to deploy this to, make sure the spinnaker instance has permissions to access this namespace as well. Should be the same as above namespace
spec:
replicas: 0
selector:
matchLabels:
app: hello
template:
metadata:
labels:
app: hello
spec:
containers:
- name: hello
image: nginx:1.14.2
ports:
- containerPort: 80