uninstall all
This commit is contained in:
@@ -1,37 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: argoproj.io/v1alpha1
|
|
||||||
kind: ApplicationSet
|
|
||||||
metadata:
|
|
||||||
name: external-secrets-operator
|
|
||||||
namespace: openshift-gitops
|
|
||||||
finalizers:
|
|
||||||
- resources-finalizer.argocd.argoproj.io
|
|
||||||
spec:
|
|
||||||
goTemplate: true
|
|
||||||
goTemplateOptions: ["missingkey=error"]
|
|
||||||
generators:
|
|
||||||
- clusters: {} # Variable is .name
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
name: '{{.name}}-external-secrets'
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-wave: "1"
|
|
||||||
spec:
|
|
||||||
project: default
|
|
||||||
source:
|
|
||||||
repoURL: https://github.com/rblundon/homelab.git
|
|
||||||
targetRevision: HEAD
|
|
||||||
path: cluster/external-secrets/overlays/{{.name}}
|
|
||||||
destination:
|
|
||||||
name: '{{.name}}'
|
|
||||||
namespace: openshift-operators
|
|
||||||
syncPolicy:
|
|
||||||
automated:
|
|
||||||
prune: true
|
|
||||||
selfHeal: true
|
|
||||||
syncOptions:
|
|
||||||
- RespectIgnoreDifferences=true
|
|
||||||
- CreateNamespace=true
|
|
||||||
managedNamespaceMetadata:
|
|
||||||
labels:
|
|
||||||
argocd.argoproj.io/managed-by: openshift-gitops
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: external-secrets.io/v1beta1
|
|
||||||
kind: ExternalSecret
|
|
||||||
metadata:
|
|
||||||
name: cloudflare-api-token # This is the secret name
|
|
||||||
namespace: cert-manager
|
|
||||||
spec:
|
|
||||||
secretStoreRef:
|
|
||||||
kind: ClusterSecretStore
|
|
||||||
name: doppler-cluster
|
|
||||||
refreshInterval: "1h"
|
|
||||||
data:
|
|
||||||
- secretKey: api-token
|
|
||||||
remoteRef:
|
|
||||||
key: CLOUDFLARE_TOKEN
|
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: cert-manager.io/v1
|
|
||||||
kind: ClusterIssuer
|
|
||||||
metadata:
|
|
||||||
name: letsencrypt-prod
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
|
||||||
spec:
|
|
||||||
acme:
|
|
||||||
email: ryan.blundon@protonmail.com
|
|
||||||
privateKeySecretRef:
|
|
||||||
name: letsencrypt-prod-issuer-account-key
|
|
||||||
server: https://acme-v02.api.letsencrypt.org/directory
|
|
||||||
solvers:
|
|
||||||
- dns01:
|
|
||||||
cloudflare:
|
|
||||||
apiTokenSecretRef:
|
|
||||||
name: cloudflare-api-token
|
|
||||||
key: api-token
|
|
||||||
email: ryan.blundon@protonmail.com
|
|
||||||
cnameStrategy: Follow
|
|
||||||
selector:
|
|
||||||
dnsZones:
|
|
||||||
- 'mk-labs.cloud'
|
|
||||||
- 'monetnaildesign.com'
|
|
||||||
|
|
||||||
---
|
|
||||||
apiVersion: cert-manager.io/v1
|
|
||||||
kind: ClusterIssuer
|
|
||||||
metadata:
|
|
||||||
name: letsencrypt-staging
|
|
||||||
annotations:
|
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
|
||||||
spec:
|
|
||||||
acme:
|
|
||||||
email: ryan.blundon@protonmail.com
|
|
||||||
privateKeySecretRef:
|
|
||||||
name: letsencrypt-staging-issuer-account-key
|
|
||||||
server: https://acme-staging-v02.api.letsencrypt.org/directory
|
|
||||||
solvers:
|
|
||||||
- dns01:
|
|
||||||
cloudflare:
|
|
||||||
apiTokenSecretRef:
|
|
||||||
name: cloudflare-api-token
|
|
||||||
key: api-token
|
|
||||||
email: ryan.blundon@protonmail.com
|
|
||||||
cnameStrategy: Follow
|
|
||||||
selector:
|
|
||||||
dnsZones:
|
|
||||||
- 'mk-labs.cloud'
|
|
||||||
- 'monetnaildesign.com'
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
|
|
||||||
commonAnnotations:
|
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
|
||||||
|
|
||||||
resources:
|
|
||||||
# Operator deployment
|
|
||||||
- namespace.yaml
|
|
||||||
- operatorgroup.yaml
|
|
||||||
- subscription.yaml
|
|
||||||
- monitoring.yaml
|
|
||||||
# Deploy cluster resources
|
|
||||||
# - cloudflare-secret-eso.yaml
|
|
||||||
# - clusterissuers.yaml
|
|
||||||
# - split-horizon-patch.yaml
|
|
||||||
#- api-ingress.yaml
|
|
||||||
@@ -1,52 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: Role
|
|
||||||
metadata:
|
|
||||||
name: prometheus-k8s
|
|
||||||
namespace: cert-manager
|
|
||||||
rules:
|
|
||||||
- apiGroups:
|
|
||||||
- ""
|
|
||||||
resources:
|
|
||||||
- services
|
|
||||||
- endpoints
|
|
||||||
- pods
|
|
||||||
verbs:
|
|
||||||
- get
|
|
||||||
- list
|
|
||||||
- watch
|
|
||||||
---
|
|
||||||
apiVersion: rbac.authorization.k8s.io/v1
|
|
||||||
kind: RoleBinding
|
|
||||||
metadata:
|
|
||||||
name: prometheus-k8s
|
|
||||||
namespace: cert-manager
|
|
||||||
roleRef:
|
|
||||||
apiGroup: rbac.authorization.k8s.io
|
|
||||||
kind: Role
|
|
||||||
name: prometheus-k8s
|
|
||||||
subjects:
|
|
||||||
- kind: ServiceAccount
|
|
||||||
name: prometheus-k8s
|
|
||||||
namespace: openshift-monitoring
|
|
||||||
---
|
|
||||||
apiVersion: monitoring.coreos.com/v1
|
|
||||||
kind: ServiceMonitor
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: cert-manager
|
|
||||||
app.kubernetes.io/component: controller
|
|
||||||
app.kubernetes.io/instance: cert-manager
|
|
||||||
app.kubernetes.io/name: cert-manager
|
|
||||||
name: cert-manager
|
|
||||||
namespace: cert-manager
|
|
||||||
spec:
|
|
||||||
endpoints:
|
|
||||||
- interval: 30s
|
|
||||||
port: tcp-prometheus-servicemonitor
|
|
||||||
scheme: http
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app.kubernetes.io/component: controller
|
|
||||||
app.kubernetes.io/instance: cert-manager
|
|
||||||
app.kubernetes.io/name: cert-manager
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
annotations: {}
|
|
||||||
# openshift.io/display-name: "cert-manager Operator for Red Hat OpenShift"
|
|
||||||
labels:
|
|
||||||
openshift.io/cluster-monitoring: 'true'
|
|
||||||
name: cert-manager-operator
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: operators.coreos.com/v1
|
|
||||||
kind: OperatorGroup
|
|
||||||
metadata:
|
|
||||||
name: openshift-cert-manager-operator
|
|
||||||
namespace: cert-manager-operator
|
|
||||||
spec:
|
|
||||||
targetNamespaces:
|
|
||||||
- cert-manager-operator
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
apiVersion: operator.openshift.io/v1alpha1
|
|
||||||
kind: CertManager
|
|
||||||
metadata:
|
|
||||||
name: cluster
|
|
||||||
spec:
|
|
||||||
managementState: 'Managed'
|
|
||||||
unsupportedConfigOverrides:
|
|
||||||
controller:
|
|
||||||
args:
|
|
||||||
- "--dns01-recursive-nameservers=1.1.1.1:53"
|
|
||||||
- "--dns01-recursive-nameservers-only"
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: operators.coreos.com/v1alpha1
|
|
||||||
kind: Subscription
|
|
||||||
metadata:
|
|
||||||
name: openshift-cert-manager-operator
|
|
||||||
namespace: cert-manager-operator
|
|
||||||
spec:
|
|
||||||
channel: stable-v1
|
|
||||||
installPlanApproval: Automatic
|
|
||||||
name: openshift-cert-manager-operator
|
|
||||||
source: redhat-operators
|
|
||||||
sourceNamespace: openshift-marketplace
|
|
||||||
@@ -1,29 +1,30 @@
|
|||||||
|
---
|
||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: ApplicationSet
|
kind: ApplicationSet
|
||||||
metadata:
|
metadata:
|
||||||
name: external-secrets
|
name: external-secrets-operator
|
||||||
namespace: openshift-gitops
|
namespace: openshift-gitops
|
||||||
|
finalizers:
|
||||||
|
- resources-finalizer.argocd.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
|
goTemplate: true
|
||||||
|
goTemplateOptions: ["missingkey=error"]
|
||||||
generators:
|
generators:
|
||||||
- clusters: {} # Automatically use all clusters defined within Argo CD
|
- clusters: {} # Variable is .name
|
||||||
# - list:
|
|
||||||
# elements:
|
|
||||||
# - cluster: dev
|
|
||||||
# url: https://kubernetes-dev.example.com
|
|
||||||
# - cluster: prod
|
|
||||||
# url: https://kubernetes-prod.example.com
|
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: '{{cluster}}-external-secrets'
|
name: '{{.name}}-external-secrets'
|
||||||
|
annotations:
|
||||||
|
argocd.argoproj.io/sync-wave: "1"
|
||||||
spec:
|
spec:
|
||||||
project: default
|
project: default
|
||||||
source:
|
source:
|
||||||
repoURL: 'https://github.com/rblundon/homelab.git'
|
repoURL: https://github.com/rblundon/homelab.git
|
||||||
targetRevision: HEAD
|
targetRevision: HEAD
|
||||||
path: 'cluster/external-secrets/overlays/{{cluster}}'
|
path: cluster/external-secrets/overlays/{{.name}}
|
||||||
destination:
|
destination:
|
||||||
server: '{{url}}'
|
name: '{{.name}}'
|
||||||
namespace: external-secrets
|
namespace: openshift-operators
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
@@ -34,8 +35,3 @@ spec:
|
|||||||
managedNamespaceMetadata:
|
managedNamespaceMetadata:
|
||||||
labels:
|
labels:
|
||||||
argocd.argoproj.io/managed-by: openshift-gitops
|
argocd.argoproj.io/managed-by: openshift-gitops
|
||||||
ignoreDifferences:
|
|
||||||
- group: apps
|
|
||||||
kind: Deployment
|
|
||||||
jsonPointers:
|
|
||||||
- /spec/replicas
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: cert-manager.io/v1
|
|
||||||
kind: Certificate
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
generation: 1
|
|
||||||
name: letsencrypt
|
|
||||||
namespace: openshift-ingress
|
|
||||||
spec:
|
|
||||||
commonName: '*.apps.hub.int.mk-labs.cloud'
|
|
||||||
dnsNames:
|
|
||||||
- '*.apps.hub.int.mk-labs.cloud'
|
|
||||||
duration: 2160h0m0s
|
|
||||||
issuerRef:
|
|
||||||
kind: ClusterIssuer
|
|
||||||
name: letsencrypt-prod
|
|
||||||
renewBefore: 360h0m0s
|
|
||||||
secretName: letsencrypt
|
|
||||||
usages:
|
|
||||||
- server auth
|
|
||||||
- client auth
|
|
||||||
---
|
|
||||||
apiVersion: cert-manager.io/v1
|
|
||||||
kind: Certificate
|
|
||||||
metadata:
|
|
||||||
annotations:
|
|
||||||
name: letsencrypt
|
|
||||||
namespace: openshift-config
|
|
||||||
spec:
|
|
||||||
commonName: 'api.hub.int.mk-labs.cloud'
|
|
||||||
dnsNames:
|
|
||||||
- api.hub.int.mk-labs.cloud
|
|
||||||
duration: 2160h0m0s
|
|
||||||
issuerRef:
|
|
||||||
kind: ClusterIssuer
|
|
||||||
name: letsencrypt-prod
|
|
||||||
renewBefore: 360h0m0s
|
|
||||||
secretName: letsencrypt
|
|
||||||
usages:
|
|
||||||
- server auth
|
|
||||||
- client auth
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
apiVersion: config.openshift.io/v1
|
|
||||||
kind: APIServer
|
|
||||||
metadata:
|
|
||||||
name: cluster
|
|
||||||
spec:
|
|
||||||
servingCerts:
|
|
||||||
namedCertificates:
|
|
||||||
- names:
|
|
||||||
- api.hub.int.mk-labs.cloud
|
|
||||||
servingCertificate:
|
|
||||||
name: letsencrypt
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
apiVersion: operator.openshift.io/v1
|
|
||||||
kind: IngressController
|
|
||||||
metadata:
|
|
||||||
name: default
|
|
||||||
namespace: openshift-ingress-operator
|
|
||||||
spec:
|
|
||||||
defaultCertificate:
|
|
||||||
name: letsencrypt
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
||||||
kind: Kustomization
|
|
||||||
|
|
||||||
commonAnnotations:
|
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
|
||||||
|
|
||||||
resources:
|
|
||||||
- ../../base
|
|
||||||
#- api-ingress.yaml
|
|
||||||
#- apiserver-cert-config.yaml
|
|
||||||
#- ingress-controller-cert-config.yaml
|
|
||||||
Reference in New Issue
Block a user