forked from argoproj/argo-cd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to kustomize2 as default. Add argocd-ha install manifests (arg…
- Loading branch information
Showing
66 changed files
with
3,075 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
apiVersion: argoproj.io/v1alpha1 | ||
kind: Application | ||
metadata: | ||
name: guestbook | ||
spec: | ||
# The project the application belongs to. | ||
project: default | ||
|
||
# Source of the application manifests | ||
source: | ||
repoURL: https://github.com/argoproj/argocd-example-apps.git | ||
targetRevision: HEAD | ||
path: guestbook | ||
|
||
# helm specific config | ||
helm: | ||
valueFiles: | ||
- values-prod.yaml | ||
|
||
# kustomize specific config | ||
kustomize: | ||
namePrefix: prod- | ||
|
||
# directory | ||
directory: | ||
recurse: true | ||
|
||
# plugin specific config | ||
plugin: | ||
- name: mypluginname | ||
|
||
# Destination cluster and namespace to deploy the application | ||
destination: | ||
server: https://kubernetes.default.svc | ||
namespace: guestbook | ||
|
||
# Sync policy | ||
syncPolicy: | ||
automated: | ||
prune: true | ||
|
||
# Ignore differences at the specified json pointers | ||
ignoreDifferences: | ||
- group: apps | ||
kind: Deployment | ||
jsonPointers: | ||
- /spec/replicas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argocd-cm | ||
data: | ||
# Argo CD's externally facing base URL (optional). Required when configuring SSO | ||
url: https://argo-cd-demo.argoproj.io | ||
|
||
# A dex connector configuration (optional). See SSO configuration documentation: | ||
# https://github.com/argoproj/argo-cd/blob/master/docs/sso.md | ||
# https://github.com/dexidp/dex/tree/master/Documentation/connectors | ||
dex.config: | | ||
connectors: | ||
# GitHub example | ||
- type: github | ||
id: github | ||
name: GitHub | ||
config: | ||
clientID: aabbccddeeff00112233 | ||
clientSecret: $dex.github.clientSecret | ||
orgs: | ||
- name: your-github-org | ||
teams: | ||
- red-team | ||
# OIDC configuration as an alternative to dex (optional). | ||
oidc.config: | | ||
name: Okta | ||
issuer: https://dev-123456.oktapreview.com | ||
clientID: aaaabbbbccccddddeee | ||
clientSecret: $oidc.okta.clientSecret | ||
# Git repositories configure Argo CD with (optional). | ||
# This list is updated when configuring/removing repos from the UI/CLI | ||
repositories: | | ||
- url: https://github.com/argoproj/my-private-repository | ||
passwordSecret: | ||
name: my-secret | ||
key: password | ||
usernameSecret: | ||
name: my-secret | ||
key: username | ||
sshPrivateKeySecret: | ||
name: my-secret | ||
key: sshPrivateKey | ||
# Non-standard and private Helm repositories (optional). | ||
helm.repositories: | | ||
- url: https://storage.googleapis.com/istio-prerelease/daily-build/master-latest-daily/charts | ||
name: istio.io | ||
- url: https://my-private-chart-repo.internal | ||
name: private-repo | ||
usernameSecret: | ||
name: my-secret | ||
key: username | ||
passwordSecret: | ||
name: my-secret | ||
key: password | ||
# Configuration to customize resource behavior (optional). Keys are in the form: group/Kind. | ||
resource.customizations: | | ||
admissionregistration.k8s.io/MutatingWebhookConfiguration: | ||
# List of json pointers in the object to ignore differences | ||
ignoreDifferences: | ||
jsonPointers: | ||
- webhooks/0/clientConfig/caBundle | ||
certmanager.k8s.io/Certificate: | ||
# Lua script for customizing the health status assessment | ||
health.lua: | | ||
hs = {} | ||
if obj.status ~= nil then | ||
if obj.status.conditions ~= nil then | ||
for i, condition in ipairs(obj.status.conditions) do | ||
if condition.type == "Ready" and condition.status == "False" then | ||
hs.status = "Degraded" | ||
hs.message = condition.message | ||
return hs | ||
end | ||
if condition.type == "Ready" and condition.status == "True" then | ||
hs.status = "Healthy" | ||
hs.message = condition.message | ||
return hs | ||
end | ||
end | ||
end | ||
end | ||
hs.status = "Progressing" | ||
hs.message = "Waiting for certificate" | ||
return hs | ||
# Configuration to completely ignore entire classes of resource group/kinds (optional). | ||
# Excluding high-volume resources improves performance and memory usage, and reduces load and | ||
# bandwidth to the Kubernetes API server. | ||
# NOTE: events.k8s.io and metrics.k8s.io are excluded by default | ||
excludedResources: | | ||
- apiGroups: | ||
- repositories.stash.appscode.com | ||
kinds: | ||
- Snapshot | ||
# The metadata.label key name where Argo CD injects the app name as a tracking label (optional). | ||
# Tracking labels are used to determine which resources need to be deleted when pruning. | ||
# If omitted, Argo CD injects the app name into the label: 'app.kubernetes.io/instance' | ||
application.instanceLabelKey: mycompany.com/appname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: argocd-rbac-cm | ||
data: | ||
# policy.csv is an file containing user-defined RBAC policies and role definitions (optional). | ||
# Policy rules are in the form: | ||
# p, subject, resource, action, object, effect | ||
# Role definitions and bindings are in the form: | ||
# g, subject, inherited-subject | ||
# See https://github.com/argoproj/argo-cd/blob/master/docs/rbac.md for additional information. | ||
policy.csv: | | ||
# Grant all members of the group 'my-org:team-alpha; the ability to sync apps in 'my-project' | ||
p, my-org:team-alpha, applications, sync, my-project/*, allow | ||
# Grant all members of 'my-org:team-beta' admins | ||
g, my-org:team-beta, role:admin | ||
# policy.default is the name of the default role which Argo CD will falls back to, when | ||
# authorizing API requests (optional). If omitted or empty, users may be still be able to login, | ||
# but will see no apps, projects, etc... | ||
policy.default: role:readonly |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: argocd-secret | ||
type: Opaque | ||
data: | ||
# TLS certificate and private key for API server (required). | ||
# Autogenerated with a self-signed ceritificate when keys are missing or invalid. | ||
tls.crt: | ||
tls.key: | ||
|
||
# bcrypt hash of the admin password and its last modified time (required). | ||
# Autogenerated to be the name of the argocd-server pod when missing. | ||
admin.password: | ||
admin.passwordMtime: | ||
|
||
# random server signature key for session validation (required). | ||
# Autogenerated when missing. | ||
server.secretkey: | ||
|
||
# Shared secrets for authenticating GitHub, GitLab, BitBucket webhook events (optional). | ||
# See https://github.com/argoproj/argo-cd/blob/master/docs/webhook.md for additional details. | ||
github.webhook.secret: | ||
gitlab.webhook.secret: | ||
bitbucket.webhook.uuid: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.