-
-
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.
- Loading branch information
1 parent
9ae92b4
commit 6e0e4de
Showing
37 changed files
with
672 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
resources: | ||
- https://github.com/jetstack/cert-manager/releases/download/v1.16.0/cert-manager.yaml |
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,20 @@ | ||
# The following manifests contain a self-signed issuer CR and a metrics certificate CR. | ||
# More document can be found at https://docs.cert-manager.io | ||
apiVersion: cert-manager.io/v1 | ||
kind: Certificate | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: kubebuilder | ||
app.kubernetes.io/managed-by: kustomize | ||
name: metrics-certs # this name should match the one appeared in kustomizeconfig.yaml | ||
namespace: system | ||
spec: | ||
dnsNames: | ||
# SERVICE_NAME and SERVICE_NAMESPACE will be substituted by kustomize | ||
# replacements in the config/default/kustomization.yaml file. | ||
- SERVICE_NAME.SERVICE_NAMESPACE.svc | ||
- SERVICE_NAME.SERVICE_NAMESPACE.svc.cluster.local | ||
issuerRef: | ||
kind: Issuer | ||
name: selfsigned-issuer | ||
secretName: metrics-server-cert |
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,13 @@ | ||
# The following manifest contains a self-signed issuer CR. | ||
# More information can be found at https://docs.cert-manager.io | ||
# WARNING: Targets CertManager v1.0. Check https://cert-manager.io/docs/installation/upgrading/ for breaking changes. | ||
apiVersion: cert-manager.io/v1 | ||
kind: Issuer | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: kubebuilder | ||
app.kubernetes.io/managed-by: kustomize | ||
name: selfsigned-issuer | ||
namespace: system | ||
spec: | ||
selfSigned: {} |
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,6 @@ | ||
resources: | ||
- issuer.yaml | ||
- certificate-metrics.yaml | ||
|
||
configurations: | ||
- kustomizeconfig.yaml |
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,8 @@ | ||
# This configuration is for teaching kustomize how to update name ref substitution | ||
nameReference: | ||
- kind: Issuer | ||
group: cert-manager.io | ||
fieldSpecs: | ||
- kind: Certificate | ||
group: cert-manager.io | ||
path: spec/issuerRef/name |
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,4 @@ | ||
# This patch adds the args to allow exposing the metrics endpoint | ||
- op: add | ||
path: /spec/template/spec/containers/0/args/0 | ||
value: --zap-devel |
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,28 @@ | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
name: argocd-application-controller | ||
namespace: system | ||
spec: | ||
replicas: 0 | ||
selector: | ||
matchLabels: | ||
app.kubernetes.io/name: argocd-application-controller | ||
argocd.paramount.tech/name: argocd | ||
template: | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: argocd-application-controller | ||
argocd.paramount.tech/name: argocd | ||
spec: | ||
containers: | ||
- name: argocd-application-controller | ||
image: registry.k8s.io/pause:3.1 | ||
securityContext: | ||
allowPrivilegeEscalation: false | ||
capabilities: | ||
drop: ["ALL"] | ||
runAsNonRoot: true | ||
runAsUser: 1000 | ||
seccompProfile: | ||
type: RuntimeDefault |
13 changes: 13 additions & 0 deletions
13
config/e2e/autoscaler_v1alpha1_longestprocessingtimepartition.yaml
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,13 @@ | ||
apiVersion: autoscaler.argoproj.io/v1alpha1 | ||
kind: LongestProcessingTimePartition | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: argocd-autoscaler | ||
app.kubernetes.io/managed-by: kustomize | ||
name: longestprocessingtimepartition-sample | ||
namespace: system | ||
spec: | ||
loadIndexProviderRef: | ||
apiGroup: autoscaler.argoproj.io | ||
kind: WeightedPNormLoadIndex | ||
name: argocd-autoscaler-weightedpnormloadindex-sample |
16 changes: 16 additions & 0 deletions
16
config/e2e/autoscaler_v1alpha1_mostwantedtwophasehysteresisevaluation.yaml
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,16 @@ | ||
apiVersion: autoscaler.argoproj.io/v1alpha1 | ||
kind: MostWantedTwoPhaseHysteresisEvaluation | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: argocd-autoscaler | ||
app.kubernetes.io/managed-by: kustomize | ||
name: mostwantedtwophasehysteresisevaluation-sample | ||
namespace: system | ||
spec: | ||
partitionProviderRef: | ||
apiGroup: autoscaler.argoproj.io | ||
kind: LongestProcessingTimePartition | ||
name: argocd-autoscaler-longestprocessingtimepartition-sample | ||
pollingPeriod: 5s | ||
stabilizationPeriod: 1m | ||
minimumSampleSize: 10 |
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,18 @@ | ||
apiVersion: autoscaler.argoproj.io/v1alpha1 | ||
kind: PrometheusPoll | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: argocd-autoscaler | ||
app.kubernetes.io/managed-by: kustomize | ||
name: prometheuspoll-sample | ||
namespace: system | ||
spec: | ||
shardManagerRef: | ||
apiGroup: autoscaler.argoproj.io | ||
kind: SecretTypeClusterShardManager | ||
name: argocd-autoscaler-secrettypeclustershardmanager-sample | ||
period: 5s | ||
address: http://prometheus-operated.prometheus.svc.cluster.local:9090 | ||
metrics: | ||
- id: up | ||
query: up |
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: autoscaler.argoproj.io/v1alpha1 | ||
kind: ReplicaSetScaler | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: argocd-autoscaler | ||
app.kubernetes.io/managed-by: kustomize | ||
name: replicasetscaler-sample | ||
namespace: system | ||
spec: | ||
partitionProviderRef: | ||
apiGroup: autoscaler.argoproj.io | ||
kind: MostWantedTwoPhaseHysteresisEvaluation | ||
name: argocd-autoscaler-mostwantedtwophasehysteresisevaluation-sample | ||
shardManagerRef: | ||
apiGroup: autoscaler.argoproj.io | ||
kind: SecretTypeClusterShardManager | ||
name: argocd-autoscaler-secrettypeclustershardmanager-sample | ||
replicaSetControllerRef: | ||
apiGroup: apps | ||
kind: StatefulSet | ||
name: argocd-autoscaler-argocd-application-controller | ||
mode: | ||
# default: | ||
# rolloutRestart: true | ||
# x0y: {} |
13 changes: 13 additions & 0 deletions
13
config/e2e/autoscaler_v1alpha1_robustscalingnormalizer.yaml
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,13 @@ | ||
apiVersion: autoscaler.argoproj.io/v1alpha1 | ||
kind: RobustScalingNormalizer | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: argocd-autoscaler | ||
app.kubernetes.io/managed-by: kustomize | ||
name: robustscalingnormalizer-sample | ||
namespace: system | ||
spec: | ||
metricValuesProviderRef: | ||
apiGroup: autoscaler.argoproj.io | ||
kind: PrometheusPoll | ||
name: argocd-autoscaler-prometheuspoll-sample |
12 changes: 12 additions & 0 deletions
12
config/e2e/autoscaler_v1alpha1_secrettypeclustershardmanager.yaml
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,12 @@ | ||
apiVersion: autoscaler.argoproj.io/v1alpha1 | ||
kind: SecretTypeClusterShardManager | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: argocd-autoscaler | ||
app.kubernetes.io/managed-by: kustomize | ||
name: secrettypeclustershardmanager-sample | ||
namespace: system | ||
spec: | ||
labelSelector: | ||
matchLabels: | ||
test.argocd.argoproj.io/secret-type: cluster |
17 changes: 17 additions & 0 deletions
17
config/e2e/autoscaler_v1alpha1_weightedpnormloadindex.yaml
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,17 @@ | ||
apiVersion: autoscaler.argoproj.io/v1alpha1 | ||
kind: WeightedPNormLoadIndex | ||
metadata: | ||
labels: | ||
app.kubernetes.io/name: argocd-autoscaler | ||
app.kubernetes.io/managed-by: kustomize | ||
name: weightedpnormloadindex-sample | ||
namespace: system | ||
spec: | ||
metricValuesProviderRef: | ||
apiGroup: autoscaler.argoproj.io | ||
kind: RobustScalingNormalizer | ||
name: argocd-autoscaler-robustscalingnormalizer-sample | ||
p: 1 | ||
weights: | ||
- id: up | ||
weight: "1" |
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,14 @@ | ||
namespace: argocd-autoscaler-system | ||
namePrefix: argocd-autoscaler- | ||
## Append samples of your project ## | ||
resources: | ||
- argocd_application_controller.yaml | ||
- secret_type_cluster.yaml | ||
- autoscaler_v1alpha1_secrettypeclustershardmanager.yaml | ||
- autoscaler_v1alpha1_prometheuspoll.yaml | ||
- autoscaler_v1alpha1_robustscalingnormalizer.yaml | ||
- autoscaler_v1alpha1_weightedpnormloadindex.yaml | ||
- autoscaler_v1alpha1_longestprocessingtimepartition.yaml | ||
- autoscaler_v1alpha1_mostwantedtwophasehysteresisevaluation.yaml | ||
- autoscaler_v1alpha1_replicasetscaler.yaml | ||
# +kubebuilder:scaffold:manifestskustomizesamples |
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,11 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
labels: | ||
test.argocd.argoproj.io/secret-type: cluster | ||
name: sample-cluster | ||
namespace: system | ||
stringData: | ||
name: sample-cluster | ||
server: https://kubernetes.default.svc | ||
type: Opaque |
Oops, something went wrong.