Compare commits
6 Commits
patch-ingr
...
main
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f0e1142c12 | ||
![]() |
306dd771f4 | ||
![]() |
96e7ccac0e | ||
![]() |
e161343abc | ||
![]() |
10b6d0b2cd | ||
![]() |
9b25dbe886 |
@ -11,6 +11,6 @@ spec:
|
||||
name: in-cluster
|
||||
project: default
|
||||
source:
|
||||
path: app-of-apps/app1
|
||||
path: app-of-apps-applications/app1
|
||||
repoURL: https://github.com/acend/argocd-training-examples.git
|
||||
targetRevision: HEAD
|
@ -11,6 +11,6 @@ spec:
|
||||
name: in-cluster
|
||||
project: default
|
||||
source:
|
||||
path: app-of-apps/app2
|
||||
path: app-of-apps-applications/app2
|
||||
repoURL: https://github.com/acend/argocd-training-examples.git
|
||||
targetRevision: HEAD
|
@ -11,6 +11,6 @@ spec:
|
||||
name: in-cluster
|
||||
project: default
|
||||
source:
|
||||
path: app-of-apps/app3
|
||||
path: app-of-apps-applications/app3
|
||||
repoURL: https://github.com/acend/argocd-training-examples.git
|
||||
targetRevision: HEAD
|
0
application-set/matrix-example/.gitkeep
Normal file
0
application-set/matrix-example/.gitkeep
Normal file
@ -0,0 +1,20 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: matrix-application-1
|
||||
spec:
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: matrix-application-1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: matrix-application-1
|
||||
spec:
|
||||
containers:
|
||||
- image: quay.io/acend/example-web-go
|
||||
name: matrix-application-1
|
||||
ports:
|
||||
- containerPort: 5000
|
12
application-set/matrix-git-example/application1/service.yaml
Normal file
12
application-set/matrix-git-example/application1/service.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: matrix-application-1
|
||||
spec:
|
||||
ports:
|
||||
- port: 5000
|
||||
protocol: TCP
|
||||
targetPort: 5000
|
||||
selector:
|
||||
app: matrix-application-1
|
||||
type: ClusterIP
|
@ -0,0 +1,20 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: matrix-application-2
|
||||
spec:
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: matrix-application-2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: matrix-application-2
|
||||
spec:
|
||||
containers:
|
||||
- image: quay.io/acend/example-web-go
|
||||
name: matrix-application-2
|
||||
ports:
|
||||
- containerPort: 5000
|
12
application-set/matrix-git-example/application2/service.yaml
Normal file
12
application-set/matrix-git-example/application2/service.yaml
Normal file
@ -0,0 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: matrix-application-2
|
||||
spec:
|
||||
ports:
|
||||
- port: 5000
|
||||
protocol: TCP
|
||||
targetPort: 5000
|
||||
selector:
|
||||
app: matrix-application-2
|
||||
type: ClusterIP
|
0
application-set/simple-example/.gitkeep
Normal file
0
application-set/simple-example/.gitkeep
Normal file
@ -23,7 +23,6 @@ spec:
|
||||
{{- range .hosts }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
secretName: {{ .secretName }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
rules:
|
||||
|
8
jsonnet/params.libsonnet
Normal file
8
jsonnet/params.libsonnet
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
containerPort: 5000,
|
||||
image: "quay.io/acend/example-web-go",
|
||||
name: "argo-jsonnet-example-<username>",
|
||||
replicas: 1,
|
||||
servicePort: 5000,
|
||||
type: "ClusterIP",
|
||||
}
|
60
jsonnet/simple-application.jsonnet
Normal file
60
jsonnet/simple-application.jsonnet
Normal file
@ -0,0 +1,60 @@
|
||||
local params = import 'params.libsonnet';
|
||||
|
||||
[
|
||||
{
|
||||
"apiVersion": "v1",
|
||||
"kind": "Service",
|
||||
"metadata": {
|
||||
"name": params.name
|
||||
},
|
||||
"spec": {
|
||||
"ports": [
|
||||
{
|
||||
"port": params.servicePort,
|
||||
"protocol": "TCP",
|
||||
"targetPort": params.containerPort
|
||||
}
|
||||
],
|
||||
"selector": {
|
||||
"app": params.name
|
||||
},
|
||||
"type": params.type
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "apps/v1",
|
||||
"kind": "Deployment",
|
||||
"metadata": {
|
||||
"name": params.name
|
||||
},
|
||||
"spec": {
|
||||
"replicas": params.replicas,
|
||||
"revisionHistoryLimit": 3,
|
||||
"selector": {
|
||||
"matchLabels": {
|
||||
"app": params.name
|
||||
},
|
||||
},
|
||||
"template": {
|
||||
"metadata": {
|
||||
"labels": {
|
||||
"app": params.name
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"containers": [
|
||||
{
|
||||
"image": params.image,
|
||||
"name": params.name,
|
||||
"ports": [
|
||||
{
|
||||
"containerPort": params.containerPort
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user