Compare commits

..

6 Commits

Author SHA1 Message Date
Sebastian Plattner
f0e1142c12
Merge pull request #5 from acend/ingress
remove ingress secret
2025-02-05 13:59:30 +01:00
Christian Schlatter
306dd771f4 remove ingress secret 2025-02-05 13:25:55 +01:00
Thomas Philipona
96e7ccac0e
Add Jsonnet example 2022-11-01 11:07:06 +01:00
Thomas Philipona
e161343abc
Add application-set 2022-11-01 09:01:03 +01:00
Thomas Philipona
10b6d0b2cd
Rework app-of-apps example 2022-10-29 17:06:17 +02:00
schlapzz
9b25dbe886
Merge pull request #4 from acend/patch-ingress
Update ingress.yaml to v1
2022-09-13 11:34:32 +02:00
15 changed files with 135 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

View 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

View 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

View File

@ -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

View 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

View File

View File

@ -23,7 +23,6 @@ spec:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:

8
jsonnet/params.libsonnet Normal file
View 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",
}

View 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
}
]
}
]
}
}
}
}
]