Merge 0d6bc4b387
into d7927a27b4
This commit is contained in:
commit
617be62b8b
|
@ -0,0 +1 @@
|
||||||
|
/**/charts/
|
60
README.md
60
README.md
|
@ -4,18 +4,48 @@ This repository contains example applications for demoing ArgoCD functionality.
|
||||||
to register this repository to your ArgoCD instance, or fork this repo and push your own commits
|
to register this repository to your ArgoCD instance, or fork this repo and push your own commits
|
||||||
to explore ArgoCD and GitOps!
|
to explore ArgoCD and GitOps!
|
||||||
|
|
||||||
| Application | Description |
|
| Status | Application | Description |
|
||||||
|-------------|-------------|
|
| ------------------------------------------------------------------------- | -------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
||||||
| [guestbook](guestbook/) | A hello word guestbook app as plain YAML |
|
| [![App Status][badge_sync_example_apps]][app_sync_example_apps] | [apps](apps/) | An app composed of other apps synchronized in [cd.apps.argoproj.io][app_sync_example_apps] |
|
||||||
| [ksonnet-guestbook](ksonnet-guestbook/) | The guestbook app as a ksonnet app |
|
| [![App Status][badge_blue_green]][app_blue_green] | [blue-green](blue-green/) | Demonstrates how to implement blue-green deployment using [Argo Rollouts](https://github.com/argoproj/argo-rollouts) |
|
||||||
| [helm-guestbook](helm-guestbook/) | The guestbook app as a Helm chart |
|
| [![App Status][badge_guestbook]][app_guestbook] | [guestbook](guestbook/) | A hello word guestbook app as plain YAML |
|
||||||
| [jsonnet-guestbook](jsonnet-guestbook/) | The guestbook app as a raw jsonnet |
|
| [![App Status][badge_helm_dependency]][app_helm_dependency] | [helm-dependency](helm-dependency/) | Demonstrates how to customize an OTS (off-the-shelf) helm chart from an upstream repo |
|
||||||
| [jsonnet-guestbook-tla](jsonnet-guestbook-tla/) | The guestbook app as a raw jsonnet with support for top level arguments |
|
| [![App Status][badge_helm_guestbook]][app_helm_guestbook] | [helm-guestbook](helm-guestbook/) | The guestbook app as a Helm chart |
|
||||||
| [kustomize-guestbook](kustomize-guestbook/) | The guestbook app as a Kustomize 2 app |
|
| [![App Status][badge_helm_hooks]][app_helm_hooks] | [helm-hooks](helm-hooks/) | An application with native Helm hooks |
|
||||||
| [pre-post-sync](pre-post-sync/) | Demonstrates Argo CD PreSync and PostSync hooks |
|
| [![App Status][badge_jsonnet_guestbook]][app_jsonnet_guestbook] | [jsonnet-guestbook](jsonnet-guestbook/) | The guestbook app as a raw jsonnet |
|
||||||
| [sync-waves](sync-waves/) | Demonstrates Argo CD sync waves with hooks |
|
| [![App Status][badge_jsonnet_guestbook_tla]][app_jsonnet_guestbook_tla] | [jsonnet-guestbook-tla](jsonnet-guestbook-tla/) | The guestbook app as a raw jsonnet with support for top level arguments |
|
||||||
| [helm-dependency](helm-dependency/) | Demonstrates how to customize an OTS (off-the-shelf) helm chart from an upstream repo |
|
| [![App Status][badge_kustomize_guestbook]][app_kustomize_guestbook] | [kustomize-guestbook](kustomize-guestbook/) | The guestbook app as a Kustomize app |
|
||||||
| [sock-shop](sock-shop/) | A microservices demo app (https://microservices-demo.github.io) |
|
| [![App Status][badge_plugin_kasane]][app_plugin_kasane] | [plugins/kasane](plugins/kasane) | Apps which demonstrate config management plugins usage with [kasane](plugins/kasane/README.md) |
|
||||||
| [plugins](plugins/) | Apps which demonstrate config management plugins usage |
|
| [![App Status][badge_plugin_kustomized_helm]][app_plugin_kustomized_helm] | [plugins/kustomized-helm](plugins/kustomized-helm) | Apps which demonstrate config management plugins usage with a [kustomized helm chart](plugins/kustomized-helm/README.md) |
|
||||||
| [blue-green](blue-green/) | Demonstrates how to implement blue-green deployment using [Argo Rollouts](https://github.com/argoproj/argo-rollouts)
|
| [![App Status][badge_pre_post_sync]][app_pre_post_sync] | [pre-post-sync](pre-post-sync/) | Demonstrates Argo CD PreSync and PostSync hooks |
|
||||||
| [apps](apps/) | An app composed of other apps |
|
| [![App Status][badge_sock_shop]][app_sock_shop] | [sock-shop](sock-shop/) | A microservices demo app (https://microservices-demo.github.io) |
|
||||||
|
| [![App Status][badge_sync_waves]][app_sync_waves] | [sync-waves](sync-waves/) | Demonstrates Argo CD sync waves with hooks |
|
||||||
|
|
||||||
|
[app_sync_example_apps]: https://cd.apps.argoproj.io/applications/sync-example-apps
|
||||||
|
[badge_sync_example_apps]: https://cd.apps.argoproj.io/api/badge?revision=true&name=sync-example-apps
|
||||||
|
[app_blue_green]: https://cd.apps.argoproj.io/applications/example.blue-green
|
||||||
|
[badge_blue_green]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.blue-green
|
||||||
|
[app_guestbook]: https://cd.apps.argoproj.io/applications/example.guestbook
|
||||||
|
[badge_guestbook]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.guestbook
|
||||||
|
[app_helm_dependency]: https://cd.apps.argoproj.io/applications/example.helm-dependency
|
||||||
|
[badge_helm_dependency]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.helm-dependency
|
||||||
|
[app_helm_guestbook]: https://cd.apps.argoproj.io/applications/example.helm-guestbook
|
||||||
|
[badge_helm_guestbook]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.helm-guestbook
|
||||||
|
[app_helm_hooks]: https://cd.apps.argoproj.io/applications/example.helm-hooks
|
||||||
|
[badge_helm_hooks]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.helm-hooks
|
||||||
|
[app_jsonnet_guestbook]: https://cd.apps.argoproj.io/applications/example.jsonnet-guestbook
|
||||||
|
[badge_jsonnet_guestbook]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.jsonnet-guestbook
|
||||||
|
[app_jsonnet_guestbook_tla]: https://cd.apps.argoproj.io/applications/example.jsonnet-guestbook-tla
|
||||||
|
[badge_jsonnet_guestbook_tla]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.jsonnet-guestbook-tla
|
||||||
|
[app_kustomize_guestbook]: https://cd.apps.argoproj.io/applications/example.kustomize-guestbook
|
||||||
|
[badge_kustomize_guestbook]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.kustomize-guestbook
|
||||||
|
[app_plugin_kasane]: https://cd.apps.argoproj.io/applications/example.plugin-kasane
|
||||||
|
[badge_plugin_kasane]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.plugin-kasane
|
||||||
|
[app_plugin_kustomized_helm]: https://cd.apps.argoproj.io/applications/example.plugin-kustomized-helm
|
||||||
|
[badge_plugin_kustomized_helm]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.plugin-kustomized-helm
|
||||||
|
[app_pre_post_sync]: https://cd.apps.argoproj.io/applications/example.pre-post-sync
|
||||||
|
[badge_pre_post_sync]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.pre-post-sync
|
||||||
|
[app_sock_shop]: https://cd.apps.argoproj.io/applications/example.sock-shop
|
||||||
|
[badge_sock_shop]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.sock-shop
|
||||||
|
[app_sync_waves]: https://cd.apps.argoproj.io/applications/example.sync-waves
|
||||||
|
[badge_sync_waves]: https://cd.apps.argoproj.io/api/badge?revision=true&name=example.sync-waves
|
||||||
|
|
|
@ -0,0 +1,29 @@
|
||||||
|
{{- range .Values.applications }}
|
||||||
|
{{- $config := $.Values.config -}}
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: {{ printf "example.%s" .name | quote }}
|
||||||
|
namespace: argocd
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
namespace: {{ .namespace | default .name | quote }}
|
||||||
|
server: {{ $config.spec.destination.server | quote }}
|
||||||
|
project: default
|
||||||
|
source:
|
||||||
|
path: {{ .path | default .name | quote }}
|
||||||
|
repoURL: {{ $config.spec.source.repoURL }}
|
||||||
|
targetRevision: {{ $config.spec.source.targetRevision }}
|
||||||
|
{{- with .tool }}
|
||||||
|
{{- . | toYaml | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
syncPolicy:
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
---
|
||||||
|
{{ end -}}
|
|
@ -1,16 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: helm-guestbook
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
destination:
|
|
||||||
namespace: helm-guestbook
|
|
||||||
server: {{ .Values.spec.destination.server }}
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
path: helm-guestbook
|
|
||||||
repoURL: {{ .Values.spec.source.repoURL }}
|
|
||||||
targetRevision: {{ .Values.spec.source.targetRevision }}
|
|
|
@ -1,17 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: helm-hooks
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
destination:
|
|
||||||
namespace: helm-hooks
|
|
||||||
server: {{ .Values.spec.destination.server }}
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
path: helm-hooks
|
|
||||||
repoURL: {{ .Values.spec.source.repoURL }}
|
|
||||||
targetRevision: {{ .Values.spec.source.targetRevision }}
|
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: kustomize-guestbook
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
destination:
|
|
||||||
namespace: kustomize-guestbook
|
|
||||||
server: {{ .Values.spec.destination.server }}
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
path: kustomize-guestbook
|
|
||||||
repoURL: {{ .Values.spec.source.repoURL }}
|
|
||||||
targetRevision: {{ .Values.spec.source.targetRevision }}
|
|
|
@ -1,27 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: helm-guestbook
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "-1"
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: helm-hooks
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "-1"
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: kustomize-guestbook
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "-1"
|
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: sync-waves
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "-1"
|
|
|
@ -1,16 +0,0 @@
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: Application
|
|
||||||
metadata:
|
|
||||||
name: sync-waves
|
|
||||||
namespace: argocd
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
destination:
|
|
||||||
namespace: sync-waves
|
|
||||||
server: {{ .Values.spec.destination.server }}
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
path: sync-waves
|
|
||||||
repoURL: {{ .Values.spec.source.repoURL }}
|
|
||||||
targetRevision: {{ .Values.spec.source.targetRevision }}
|
|
|
@ -1,6 +1,39 @@
|
||||||
spec:
|
config:
|
||||||
destination:
|
spec:
|
||||||
server: https://kubernetes.default.svc
|
destination:
|
||||||
source:
|
server: https://kubernetes.default.svc
|
||||||
repoURL: https://github.com/argoproj/argocd-example-apps
|
source:
|
||||||
targetRevision: HEAD
|
repoURL: https://github.com/agaudreault/argocd-example-apps
|
||||||
|
targetRevision: sync-from-demo
|
||||||
|
|
||||||
|
applications:
|
||||||
|
- name: blue-green
|
||||||
|
tool:
|
||||||
|
helm:
|
||||||
|
releaseName: blue-green
|
||||||
|
- name: guestbook
|
||||||
|
- name: helm-dependency
|
||||||
|
tool:
|
||||||
|
helm:
|
||||||
|
releaseName: helm-dependency
|
||||||
|
- name: helm-guestbook
|
||||||
|
tool:
|
||||||
|
helm:
|
||||||
|
releaseName: helm-guestbook
|
||||||
|
- name: helm-hooks
|
||||||
|
- name: jsonnet-guestbook
|
||||||
|
- name: jsonnet-guestbook-tla
|
||||||
|
- name: kustomize-guestbook
|
||||||
|
- name: plugin-kasane
|
||||||
|
path: plugins/kasane
|
||||||
|
tool:
|
||||||
|
plugin:
|
||||||
|
name: kasane
|
||||||
|
- name: plugin-kustomized-helm
|
||||||
|
path: plugins/kustomized-helm
|
||||||
|
tool:
|
||||||
|
plugin:
|
||||||
|
name: kustomized-helm
|
||||||
|
- name: pre-post-sync
|
||||||
|
- name: sock-shop
|
||||||
|
- name: sync-waves
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
wordpress:
|
wordpress:
|
||||||
|
image:
|
||||||
|
tag: invalid #break this app on purpose until a dedicated broken app is created
|
||||||
wordpressPassword: foo
|
wordpressPassword: foo
|
||||||
mariadb:
|
mariadb:
|
||||||
db:
|
db:
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
/lib
|
|
||||||
/.ksonnet/registries
|
|
||||||
/app.override.yaml
|
|
||||||
/.ks_environment
|
|
|
@ -1,23 +0,0 @@
|
||||||
apiVersion: 0.1.0
|
|
||||||
environments:
|
|
||||||
default:
|
|
||||||
destination:
|
|
||||||
namespace: default
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
k8sVersion: v1.10.0
|
|
||||||
path: default
|
|
||||||
dev:
|
|
||||||
destination:
|
|
||||||
namespace: dev
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
k8sVersion: v1.10.0
|
|
||||||
path: dev
|
|
||||||
prod:
|
|
||||||
destination:
|
|
||||||
namespace: prod
|
|
||||||
server: https://kubernetes.default.svc
|
|
||||||
k8sVersion: v1.10.0
|
|
||||||
path: prod
|
|
||||||
kind: ksonnet.io/app
|
|
||||||
name: guestbook
|
|
||||||
version: 0.0.1
|
|
|
@ -1,59 +0,0 @@
|
||||||
local env = std.extVar("__ksonnet/environments");
|
|
||||||
local params = std.extVar("__ksonnet/params").components["guestbook-ui"];
|
|
||||||
[
|
|
||||||
{
|
|
||||||
"apiVersion": "v1",
|
|
||||||
"kind": "Service",
|
|
||||||
"metadata": {
|
|
||||||
"name": params.name
|
|
||||||
},
|
|
||||||
"spec": {
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"port": params.servicePort,
|
|
||||||
"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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
|
@ -1,18 +0,0 @@
|
||||||
{
|
|
||||||
global: {
|
|
||||||
// User-defined global parameters; accessible to all component and environments, Ex:
|
|
||||||
// replicas: 4,
|
|
||||||
},
|
|
||||||
components: {
|
|
||||||
// Component-level parameters, defined initially from 'ks prototype use ...'
|
|
||||||
// Each object below should correspond to a component in the components/ directory
|
|
||||||
"guestbook-ui": {
|
|
||||||
containerPort: 80,
|
|
||||||
image: "gcr.io/heptio-images/ks-guestbook-demo:0.2",
|
|
||||||
name: "ks-guestbook-ui",
|
|
||||||
replicas: 1,
|
|
||||||
servicePort: 80,
|
|
||||||
type: "LoadBalancer",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,4 +0,0 @@
|
||||||
local components = std.extVar("__ksonnet/components");
|
|
||||||
components + {
|
|
||||||
// Insert user-specified overrides here.
|
|
||||||
}
|
|
|
@ -1,2 +0,0 @@
|
||||||
{
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
local base = import "base.libsonnet";
|
|
||||||
// uncomment if you reference ksonnet-lib
|
|
||||||
// local k = import "k.libsonnet";
|
|
||||||
|
|
||||||
base + {
|
|
||||||
// Insert user-specified overrides here. For example if a component is named \"nginx-deployment\", you might have something like:\n")
|
|
||||||
// "nginx-deployment"+: k.deployment.mixin.metadata.labels({foo: "bar"})
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
local params = std.extVar("__ksonnet/params");
|
|
||||||
local globals = import "globals.libsonnet";
|
|
||||||
local envParams = params + {
|
|
||||||
components +: {
|
|
||||||
// Insert component parameter overrides here. Ex:
|
|
||||||
// guestbook +: {
|
|
||||||
// name: "guestbook-dev",
|
|
||||||
// replicas: params.global.replicas,
|
|
||||||
// },
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
{
|
|
||||||
components: {
|
|
||||||
[x]: envParams.components[x] + globals, for x in std.objectFields(envParams.components)
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,2 +0,0 @@
|
||||||
{
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
local base = import "base.libsonnet";
|
|
||||||
// uncomment if you reference ksonnet-lib
|
|
||||||
// local k = import "k.libsonnet";
|
|
||||||
|
|
||||||
base + {
|
|
||||||
// Insert user-specified overrides here. For example if a component is named \"nginx-deployment\", you might have something like:\n")
|
|
||||||
// "nginx-deployment"+: k.deployment.mixin.metadata.labels({foo: "bar"})
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
local params = std.extVar("__ksonnet/params");
|
|
||||||
local globals = import "globals.libsonnet";
|
|
||||||
local envParams = params + {
|
|
||||||
components +: {
|
|
||||||
// Insert component parameter overrides here. Ex:
|
|
||||||
// guestbook +: {
|
|
||||||
// name: "guestbook-dev",
|
|
||||||
// replicas: params.global.replicas,
|
|
||||||
// },
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
{
|
|
||||||
components: {
|
|
||||||
[x]: envParams.components[x] + globals, for x in std.objectFields(envParams.components)
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,2 +0,0 @@
|
||||||
{
|
|
||||||
}
|
|
|
@ -1,8 +0,0 @@
|
||||||
local base = import "base.libsonnet";
|
|
||||||
// uncomment if you reference ksonnet-lib
|
|
||||||
// local k = import "k.libsonnet";
|
|
||||||
|
|
||||||
base + {
|
|
||||||
// Insert user-specified overrides here. For example if a component is named \"nginx-deployment\", you might have something like:\n")
|
|
||||||
// "nginx-deployment"+: k.deployment.mixin.metadata.labels({foo: "bar"})
|
|
||||||
}
|
|
|
@ -1,17 +0,0 @@
|
||||||
local params = std.extVar("__ksonnet/params");
|
|
||||||
local globals = import "globals.libsonnet";
|
|
||||||
local envParams = params + {
|
|
||||||
components +: {
|
|
||||||
// Insert component parameter overrides here. Ex:
|
|
||||||
// guestbook +: {
|
|
||||||
// name: "guestbook-dev",
|
|
||||||
// replicas: params.global.replicas,
|
|
||||||
// },
|
|
||||||
},
|
|
||||||
};
|
|
||||||
|
|
||||||
{
|
|
||||||
components: {
|
|
||||||
[x]: envParams.components[x] + globals, for x in std.objectFields(envParams.components)
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -0,0 +1,23 @@
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: front-end-ingress
|
||||||
|
labels:
|
||||||
|
name: front-end
|
||||||
|
annotations:
|
||||||
|
ingress.kubernetes.io/proxy-body-size: 100M
|
||||||
|
ingress.kubernetes.io/app-root: '/'
|
||||||
|
spec:
|
||||||
|
ingressClassName: nginx
|
||||||
|
rules:
|
||||||
|
- host: sockshop.apps.argoproj.io
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: front-end
|
||||||
|
port:
|
||||||
|
number: 80
|
|
@ -6,10 +6,9 @@ metadata:
|
||||||
labels:
|
labels:
|
||||||
name: front-end
|
name: front-end
|
||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- port: 80
|
- port: 80
|
||||||
targetPort: 8079
|
targetPort: 8079
|
||||||
nodePort: 30001
|
|
||||||
selector:
|
selector:
|
||||||
name: front-end
|
name: front-end
|
||||||
|
|
|
@ -1,28 +1,29 @@
|
||||||
resources:
|
resources:
|
||||||
- base/carts-db-dep.yaml
|
- base/carts-db-dep.yaml
|
||||||
- base/carts-db-svc.yaml
|
- base/carts-db-svc.yaml
|
||||||
- base/carts-dep.yaml
|
- base/carts-dep.yaml
|
||||||
- base/catalogue-db-dep.yaml
|
- base/catalogue-db-dep.yaml
|
||||||
- base/catalogue-db-svc.yaml
|
- base/catalogue-db-svc.yaml
|
||||||
- base/catalogue-dep.yaml
|
- base/catalogue-dep.yaml
|
||||||
- base/catalogue-svc.yaml
|
- base/catalogue-svc.yaml
|
||||||
- base/front-end-dep.yaml
|
- base/front-end-dep.yaml
|
||||||
- base/front-end-svc.yaml
|
- base/front-end-ingress.yaml
|
||||||
- base/orders-db-dep.yaml
|
- base/front-end-svc.yaml
|
||||||
- base/orders-db-svc.yaml
|
- base/orders-db-dep.yaml
|
||||||
- base/orders-dep.yaml
|
- base/orders-db-svc.yaml
|
||||||
- base/orders-svc.yaml
|
- base/orders-dep.yaml
|
||||||
- base/payment-dep.yaml
|
- base/orders-svc.yaml
|
||||||
- base/payment-svc.yaml
|
- base/payment-dep.yaml
|
||||||
- base/queue-master-dep.yaml
|
- base/payment-svc.yaml
|
||||||
- base/queue-master-svc.yaml
|
- base/queue-master-dep.yaml
|
||||||
- base/rabbitmq-dep.yaml
|
- base/queue-master-svc.yaml
|
||||||
- base/rabbitmq-svc.yaml
|
- base/rabbitmq-dep.yaml
|
||||||
- base/session-db-dep.yaml
|
- base/rabbitmq-svc.yaml
|
||||||
- base/session-db-svc.yaml
|
- base/session-db-dep.yaml
|
||||||
- base/shipping-dep.yaml
|
- base/session-db-svc.yaml
|
||||||
- base/shipping-svc.yaml
|
- base/shipping-dep.yaml
|
||||||
- base/user-db-dep.yaml
|
- base/shipping-svc.yaml
|
||||||
- base/user-db-svc.yaml
|
- base/user-db-dep.yaml
|
||||||
- base/user-dep.yaml
|
- base/user-db-svc.yaml
|
||||||
- base/user-svc.yaml
|
- base/user-dep.yaml
|
||||||
|
- base/user-svc.yaml
|
||||||
|
|
Loading…
Reference in New Issue