-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to kustomize2 as default. Add argocd-ha install manifests #1169
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
???
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes. Because I am changing the meaning of
kustomize
from 1 to 2, the unit tests will fail unless I publish a new "builder image". But since the same build image is used for other branches (e.g. release-0.11) it means if everyone is using:latest
, then I will break the release-0.11 branch builds. It was an eventuality that we would need to start versioning the builder images, this was the first time we needed to.