diff --git a/TODO.md b/TODO.md deleted file mode 100644 index 126084e..0000000 --- a/TODO.md +++ /dev/null @@ -1,9 +0,0 @@ -root@pine01:/etc/kubernetes# kubeadm upgrade apply v1.24.9 --ignore-preflight-errors=CoreDNSUnsupportedPlugins -[upgrade/config] Making sure the configuration is correct: -[upgrade/config] Reading configuration from the cluster... -[upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml' -W0112 18:28:48.533830 21616 initconfiguration.go:120] Usage of CRI endpoints without URL scheme is deprecated and can cause kubelet errors in the future. Automatically prepending scheme "unix" to the "criSocket" with value "/run/containerd/containerd.sock". Please update your configuration! - - -CoreDNS v1.8.6 v1.9.3 - diff --git a/_CI-CD/git.lan-access-token.yaml b/_CI-CD/git.lan-access-token.yaml deleted file mode 100644 index afbf92e..0000000 --- a/_CI-CD/git.lan-access-token.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: git-secret -type: Opaque -data: - token: Nzk1YTFhMGQxMWQ0MDJiY2FiOGM3MjkyZDk5ODIyMzg2NDNkM2U3OQo= \ No newline at end of file diff --git a/_CI-CD/tekton-pvc.yaml b/_CI-CD/tekton-pvc.yaml deleted file mode 100644 index 69c10b4..0000000 --- a/_CI-CD/tekton-pvc.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: tektoncd-workspaces - namespace: default -spec: - accessModes: - - ReadWriteMany - resources: - requests: - storage: 40Gi - storageClassName: nfs-ssd-ebin02 - volumeMode: Filesystem ---- -apiVersion: v1 -kind: PersistentVolume -metadata: - name: tektoncd-workspaces -spec: - storageClassName: "nfs-ssd-ebin02" - nfs: - path: /data/raid1-ssd/k8s-data/tektoncd-workspaces - server: ebin02 - capacity: - storage: 40Gi - accessModes: - - ReadWriteOnce - volumeMode: Filesystem - persistentVolumeReclaimPolicy: Retain - claimRef: - kind: PersistentVolumeClaim - name: tektoncd-workspaces - namespace: default diff --git a/_CI-CD/tektoncd-git-clone-task.yaml b/_CI-CD/tektoncd-git-clone-task.yaml deleted file mode 100644 index 9c5817b..0000000 --- a/_CI-CD/tektoncd-git-clone-task.yaml +++ /dev/null @@ -1,101 +0,0 @@ -apiVersion: tekton.dev/v1beta1 -kind: Task -metadata: - name: git-clone -spec: - workspaces: - - name: output - description: The git repo will be cloned onto the volume backing this workspace - params: - - name: url - description: git url to clone - type: string - default: http://git-ui.lan/chaos/kubernetes.git - - name: revision - description: git revision to checkout (branch, tag, sha, ref…) - type: string - default: master - - name: refspec - description: (optional) git refspec to fetch before checking out revision - default: "" - - name: submodules - description: defines if the resource should initialize and fetch the submodules - type: string - default: "true" - - name: depth - description: performs a shallow clone where only the most recent commit(s) will be fetched - type: string - default: "1" - - name: sslVerify - description: defines if http.sslVerify should be set to true or false in the global git config - type: string - default: "true" - - name: subdirectory - description: subdirectory inside the "output" workspace to clone the git repo into - type: string - default: "" - - name: deleteExisting - description: clean out the contents of the repo's destination directory (if it already exists) before trying to clone the repo there - type: string - default: "true" - - name: httpProxy - description: git HTTP proxy server for non-SSL requests - type: string - default: "" - - name: httpsProxy - description: git HTTPS proxy server for SSL requests - type: string - default: "" - - name: noProxy - description: git no proxy - opt out of proxying HTTP/HTTPS requests - type: string - default: "" - results: - - name: commit - description: The precise commit SHA that was fetched by this Task - steps: - - name: clone - image: gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init:v0.30.2 - script: | - CHECKOUT_DIR="$(workspaces.output.path)/$(params.subdirectory)" - - cleandir() { - # Delete any existing contents of the repo directory if it exists. - # - # We don't just "rm -rf $CHECKOUT_DIR" because $CHECKOUT_DIR might be "/" - # or the root of a mounted volume. - if [[ -d "$CHECKOUT_DIR" ]] ; then - # Delete non-hidden files and directories - rm -rf "$CHECKOUT_DIR"/* - # Delete files and directories starting with . but excluding .. - rm -rf "$CHECKOUT_DIR"/.[!.]* - # Delete files and directories starting with .. plus any other character - rm -rf "$CHECKOUT_DIR"/..?* - fi - } - - if [[ "$(params.deleteExisting)" == "true" ]] ; then - cleandir - fi - - test -z "$(params.httpProxy)" || export HTTP_PROXY=$(params.httpProxy) - test -z "$(params.httpsProxy)" || export HTTPS_PROXY=$(params.httpsProxy) - test -z "$(params.noProxy)" || export NO_PROXY=$(params.noProxy) - - /ko-app/git-init \ - -url "$(params.url)" \ - -revision "$(params.revision)" \ - -refspec "$(params.refspec)" \ - -path "$CHECKOUT_DIR" \ - -sslVerify="$(params.sslVerify)" \ - -submodules="$(params.submodules)" \ - -depth "$(params.depth)" - cd "$CHECKOUT_DIR" - RESULT_SHA="$(git rev-parse HEAD | tr -d '\n')" - EXIT_CODE="$?" - if [ "$EXIT_CODE" != 0 ] - then - exit $EXIT_CODE - fi - # Make sure we don't add a trailing newline to the result! - echo -n "$RESULT_SHA" > $(results.commit.path) \ No newline at end of file diff --git a/_CI-CD/tektoncd-kaniko-pipeline.yaml b/_CI-CD/tektoncd-kaniko-pipeline.yaml deleted file mode 100644 index cc9c8b7..0000000 --- a/_CI-CD/tektoncd-kaniko-pipeline.yaml +++ /dev/null @@ -1,45 +0,0 @@ -apiVersion: tekton.dev/v1beta1 -kind: Pipeline -metadata: - name: kaniko -spec: - params: - - name: git-url - - name: git-revision - - name: image-name - - name: path-to-image-context - - name: path-to-dockerfile - workspaces: - - name: git-source - tasks: - - name: fetch-from-git - taskRef: - name: git-clone - params: - - name: url - value: $(params.git-url) - - name: revision - value: $(params.git-revision) - - name: submodules - value: false - - subdirectory: - value: "source" - workspaces: - - name: source - workspace: git-source - - name: build-image - taskRef: - name: kaniko - params: - - name: IMAGE - value: $(params.image-name) - - name: CONTEXT - value: $(params.path-to-image-context) - - name: DOCKERFILE - value: $(params.path-to-dockerfile) - workspaces: - - name: source - workspace: git-source - # If you want you can add a Task that uses the IMAGE_DIGEST from the kaniko task - # via $(tasks.build-image.results.IMAGE_DIGEST) - this was a feature we hadn't been - # able to fully deliver with the Image PipelineResource! \ No newline at end of file diff --git a/_CI-CD/tektoncd-kaniko-task.yaml b/_CI-CD/tektoncd-kaniko-task.yaml deleted file mode 100644 index 035dc80..0000000 --- a/_CI-CD/tektoncd-kaniko-task.yaml +++ /dev/null @@ -1,78 +0,0 @@ -apiVersion: tekton.dev/v1beta1 -kind: Task -metadata: - name: kaniko - labels: - app.kubernetes.io/version: "0.5" - annotations: - tekton.dev/pipelines.minVersion: "0.17.0" - tekton.dev/categories: Image Build - tekton.dev/tags: image-build - tekton.dev/displayName: "Build and upload container image using Kaniko" - tekton.dev/platforms: "linux/arm64" -spec: - description: >- - This Task builds source into a container image using Google's kaniko tool. - - Kaniko doesn't depend on a Docker daemon and executes each - command within a Dockerfile completely in userspace. This enables - building container images in environments that can't easily or - securely run a Docker daemon, such as a standard Kubernetes cluster. - - params: - - name: IMAGE - description: Name (reference) of the image to build. - - name: DOCKERFILE - description: Path to the Dockerfile to build. - default: ./Dockerfile - - name: CONTEXT - description: The build context used by Kaniko. - default: ./ - - name: EXTRA_ARGS - type: array - default: [] - - name: BUILDER_IMAGE - description: The image on which builds will run (default is v1.5.1) - default: gcr.io/kaniko-project/executor:v1.9.1 - workspaces: - - name: source - description: Holds the context and docker file - - name: dockerconfig - description: Includes a docker `config.json` - optional: true - mountPath: /kaniko/.docker - results: - - name: IMAGE-DIGEST - description: Digest of the image just built. - - steps: - - name: debug - workingDir: $(workspaces.source.path) - image: bash - script: | - #!/usr/bin/env bash - export - pwd - mount - ls -al - - name: build-and-push - workingDir: $(workspaces.source.path) - image: $(params.BUILDER_IMAGE) - args: - - $(params.EXTRA_ARGS[*]) - - --dockerfile=$(params.DOCKERFILE) - - --context=$(params.CONTEXT) # The user does not need to care the workspace and the source. - - --destination=$(params.IMAGE) - - --digest-file=/tekton/results/IMAGE-DIGEST - - --snapshotMode=redo - - --single-snapshot - - --use-new-run - - --skip-tls-verify - - --cache - - --cache-copy-layers - - --cache-dir=/workspace/cache - # kaniko assumes it is running as root, which means this example fails on platforms - # that default to run containers as random uid (like OpenShift). Adding this securityContext - # makes it explicit that it needs to run as root. - securityContext: - runAsUser: 0 diff --git a/_scripts/get_resources.py b/_scripts/get_resources.py deleted file mode 100755 index f35a176..0000000 --- a/_scripts/get_resources.py +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/python3 -import kubernetes as k8s - -from pint import UnitRegistry -from collections import defaultdict - -__all__ = ["compute_allocated_resources"] - - -def compute_allocated_resources(): - ureg = UnitRegistry() - ureg.load_definitions('kubernetes_units.txt') - - Q_ = ureg.Quantity - data = {} - - # doing this computation within a k8s cluster - k8s.config.load_kube_config() - core_v1 = k8s.client.CoreV1Api() - -# print("Listing pods with their IPs:") -# ret = core_v1.list_pod_for_all_namespaces(watch=False) -# for i in ret.items: -# print("%s\t%s\t%s" % (i.status.pod_ip, i.metadata.namespace, i.metadata.name)) - - for node in core_v1.list_node().items: - - stats = {} - node_name = node.metadata.name - allocatable = node.status.allocatable - max_pods = int(int(allocatable["pods"]) * 1.5) -# print("{} ALLOC: {} MAX_PODS: {}".format(node_name,allocatable,max_pods)) - field_selector = ("status.phase!=Succeeded,status.phase!=Failed," + - "spec.nodeName=" + node_name) - - stats["cpu_alloc"] = Q_(allocatable["cpu"]) - stats["mem_alloc"] = Q_(allocatable["memory"]) - - pods = core_v1.list_pod_for_all_namespaces(limit=max_pods, - field_selector=field_selector).items - - # compute the allocated resources - cpureqs, cpulmts, memreqs, memlmts = [], [], [], [] - for pod in pods: - for container in pod.spec.containers: - res = container.resources - reqs = defaultdict(lambda: 0, res.requests or {}) - lmts = defaultdict(lambda: 0, res.limits or {}) - cpureqs.append(Q_(reqs["cpu"])) - memreqs.append(Q_(reqs["memory"])) - cpulmts.append(Q_(lmts["cpu"])) - memlmts.append(Q_(lmts["memory"])) - - stats["cpu_req"] = sum(cpureqs) - stats["cpu_lmt"] = sum(cpulmts) - stats["cpu_req_per"] = (stats["cpu_req"] / stats["cpu_alloc"] * 100) - stats["cpu_lmt_per"] = (stats["cpu_lmt"] / stats["cpu_alloc"] * 100) - - stats["mem_req"] = sum(memreqs) - stats["mem_lmt"] = sum(memlmts) - stats["mem_req_per"] = (stats["mem_req"] / stats["mem_alloc"] * 100) - stats["mem_lmt_per"] = (stats["mem_lmt"] / stats["mem_alloc"] * 100) - - data[node_name] = stats - - return data - -if __name__ == "__main__": - # execute only if run as a script - print(compute_allocated_resources()) - - - \ No newline at end of file diff --git a/_scripts/kubernetes_units.txt b/_scripts/kubernetes_units.txt deleted file mode 100644 index 6a73f51..0000000 --- a/_scripts/kubernetes_units.txt +++ /dev/null @@ -1,20 +0,0 @@ -# memory units - -kmemunits = 1 = [kmemunits] -Ki = 1024 * kmemunits -Mi = Ki^2 -Gi = Ki^3 -Ti = Ki^4 -Pi = Ki^5 -Ei = Ki^6 - -# cpu units - -kcpuunits = 1 = [kcpuunits] -m = 1/1000 * kcpuunits -k = 1000 * kcpuunits -M = k^2 -G = k^3 -T = k^4 -P = k^5 -E = k^6 diff --git a/_sys/README.md b/_sys/README.md deleted file mode 100644 index 90b0509..0000000 --- a/_sys/README.md +++ /dev/null @@ -1,90 +0,0 @@ -Upgrade: - -``` -export KV=1.26.0-00; -apt-mark unhold kubeadm=$KV kubectl=$KV kubelet=$KV; -apt install -y kubeadm=$KV; -``` - -``` -kubeadm upgrade node #Other pines in the wood -``` - -``` -#pine01 -kubeadm upgrade plan --ignore-preflight-errors=CoreDNSUnsupportedPlugins; -kubeadm config images pull; -kubeadm upgrade apply ${KV/\-*/} --ignore-preflight-errors=CoreDNSUnsupportedPlugins --certificate-renewal=false; #sometimes true -``` - -``` -apt install kubectl=$KV kubelet=$KV; -systemctl daemon-reload && systemctl restart kubelet; -apt-mark hold kubeadm=$KV kubectl=$KV kubelet=$KV; -echo 'You can now uncordon, der Geraet'; -``` - - - -# Infos: - -``` -$ kubectl -n kube-system get cm kubeadm-config -o yaml -apiVersion: v1 -data: - ClusterConfiguration: | - apiServer: - extraArgs: - authorization-mode: Node,RBAC - timeoutForControlPlane: 4m0s - apiVersion: kubeadm.k8s.io/v1beta3 - certificatesDir: /etc/kubernetes/pki - clusterName: kubernetes - controllerManager: {} - dns: {} - etcd: - local: - dataDir: /var/lib/etcd - imageRepository: registry.k8s.io - kind: ClusterConfiguration - kubernetesVersion: v1.23.15 - networking: - dnsDomain: cluster.local - podSubnet: 172.23.0.0/16 - serviceSubnet: 10.96.0.0/12 - scheduler: {} - ClusterStatus: | - apiEndpoints: - pine01: - advertiseAddress: 172.16.23.21 - bindPort: 6443 - apiVersion: kubeadm.k8s.io/v1beta2 - kind: ClusterStatus -kind: ConfigMap -metadata: - creationTimestamp: "2021-01-20T14:55:12Z" - managedFields: - - apiVersion: v1 - fieldsType: FieldsV1 - fieldsV1: - f:data: - .: {} - f:ClusterConfiguration: {} - f:ClusterStatus: {} - manager: kubeadm - operation: Update - time: "2021-01-20T14:55:12Z" - name: kubeadm-config - namespace: kube-system - resourceVersion: "441685033" - uid: c70fefd3-02c3-44c8-a37d-7b17ec445455 -``` - - - -Descheduler (reschedule pods) -# https://github.com/kubernetes-sigs/descheduler -# kubectl apply -n kube-system -f https://raw.githubusercontent.com/kubernetes-sigs/descheduler/master/kubernetes/base/rbac.yaml -# kubectl apply -n kube-system -f https://raw.githubusercontent.com/kubernetes-sigs/descheduler/master/kubernetes/base/configmap.yaml -# kubectl apply -n kube-system -f https://raw.githubusercontent.com/kubernetes-sigs/descheduler/master/kubernetes/job/job.yaml - diff --git a/_sys/consul-values.yaml b/_sys/consul-values.yaml deleted file mode 100644 index cf88279..0000000 --- a/_sys/consul-values.yaml +++ /dev/null @@ -1,2348 +0,0 @@ -# Available parameters and their default values for the Consul chart. - -# Holds values that affect multiple components of the chart. -global: - # The main enabled/disabled setting. If true, servers, - # clients, Consul DNS and the Consul UI will be enabled. Each component can override - # this default via its component-specific "enabled" config. If false, no components - # will be installed by default and per-component opt-in is required, such as by - # setting `server.enabled` to true. - enabled: true - - # The default log level to apply to all components which do not otherwise override this setting. - # It is recommended to generally not set this below "info" unless actively debugging due to logging verbosity. - # One of "debug", "info", "warn", or "error". - # @type: string - logLevel: "info" - - # Enable all component logs to be output in JSON format. - # @type: boolean - logJSON: false - - # Set the prefix used for all resources in the Helm chart. If not set, - # the prefix will be `-consul`. - # @type: string - name: consul - - # The domain Consul will answer DNS queries for - # (see `-domain` (https://consul.io/docs/agent/options#_domain)) and the domain services synced from - # Consul into Kubernetes will have, e.g. `service-name.service.consul`. - domain: consul - - # [Enterprise Only] Enabling `adminPartitions` allows creation of Admin Partitions in Kubernetes clusters. - # It additionally indicates that you are running Consul Enterprise v1.11+ with a valid Consul Enterprise - # license. Admin partitions enables deploying services across partitions, while sharing - # a set of Consul servers. - adminPartitions: - # If true, the Helm chart will enable Admin Partitions for the cluster. The clients in the server cluster - # must be installed in the default partition. Creation of Admin Partitions is only supported during installation. - # Admin Partitions cannot be installed via a Helm upgrade operation. Only Helm installs are supported. - enabled: false - # The name of the Admin Partition. The partition name cannot be modified once the partition has been installed. - # Changing the partition name would require an un-install and a re-install with the updated name. - # Must be "default" in the server cluster ie the Kubernetes cluster that the Consul server pods are deployed onto. - name: "default" - # Partition service properties. - service: - type: LoadBalancer - # Optionally set the nodePort value of the partition service if using a NodePort service. - # If not set and using a NodePort service, Kubernetes will automatically assign - # a port. - nodePort: - - # RPC node port - # @type: integer - rpc: null - - # Serf node port - # @type: integer - serf: null - - # HTTPS node port - # @type: integer - https: null - - # Annotations to apply to the partition service. - # - # ```yaml - # annotations: | - # "annotation-key": "annotation-value" - # ``` - # - # @type: string - annotations: null - - # The name (and tag) of the Consul Docker image for clients and servers. - # This can be overridden per component. This should be pinned to a specific - # version tag, otherwise you may inadvertently upgrade your Consul version. - # - # Examples: - # - # ```yaml - # # Consul 1.10.0 - # image: "consul:1.10.0" - # # Consul Enterprise 1.10.0 - # image: "hashicorp/consul-enterprise:1.10.0-ent" - # ``` - # @default: hashicorp/consul: - image: "hashicorp/consul:1.10.3" - - # Array of objects containing image pull secret names that will be applied to each service account. - # This can be used to reference image pull secrets if using a custom consul or consul-k8s-control-plane Docker image. - # See https://kubernetes.io/docs/concepts/containers/images/#using-a-private-registry for reference. - # - # Example: - # - # ```yaml - # imagePullSecrets: - # - name: pull-secret-name - # - name: pull-secret-name-2 - # ``` - # @type: array - imagePullSecrets: [] - - # The name (and tag) of the consul-k8s-control-plane Docker - # image that is used for functionality such as catalog sync. - # This can be overridden per component. - # @default: hashicorp/consul-k8s-control-plane: - imageK8S: "hashicorp/consul-k8s-control-plane:0.35.0" - - # The name of the datacenter that the agents should - # register as. This can't be changed once the Consul cluster is up and running - # since Consul doesn't support an automatic way to change this value currently: - # https://github.com/hashicorp/consul/issues/1858. - datacenter: wks - - # Controls whether pod security policies are created for the Consul components - # created by this chart. See https://kubernetes.io/docs/concepts/policy/pod-security-policy/. - enablePodSecurityPolicies: false - - # Configures Consul's gossip encryption key, set as a Kubernetes secret - # (see `-encrypt` (https://consul.io/docs/agent/options#_encrypt)). - # By default, gossip encryption is not enabled. The gossip encryption key may be set automatically or manually. - # The recommended method is to automatically generate the key. - # To automatically generate and set a gossip encryption key, set autoGenerate to true. - # Values for secretName and secretKey should not be set if autoGenerate is true. - # To manually generate a gossip encryption key, set secretName and secretKey and use Consul to generate - # a Kubernetes secret referencing these values. - # - # ``` - # $ kubectl create secret generic consul-gossip-encryption-key --from-literal=key=$(consul keygen) - # ``` - gossipEncryption: - # Automatically generate a gossip encryption key and save it to a Kubernetes secret. - autoGenerate: false - # secretName is the name of the Kubernetes secret that holds the gossip - # encryption key. The secret must be in the same namespace that Consul is installed into. - secretName: "" - # secretKey is the key within the Kubernetes secret that holds the gossip - # encryption key. - secretKey: "" - - # A list of addresses of upstream DNS servers that are used to recursively resolve DNS queries. - # These values are given as `-recursor` flags to Consul servers and clients. - # See https://www.consul.io/docs/agent/options#_recursor for more details. - # If this is an empty array (the default), then Consul DNS will only resolve queries for the Consul top level domain (by default `.consul`). - # @type: array - recursors: [] - - # Enables TLS (https://learn.hashicorp.com/tutorials/consul/tls-encryption-secure) - # across the cluster to verify authenticity of the Consul servers and clients. - # Requires Consul v1.4.1+. - tls: - # If true, the Helm chart will enable TLS for Consul - # servers and clients and all consul-k8s-control-plane components, as well as generate certificate - # authority (optional) and server and client certificates. - enabled: false - - # If true, turns on the auto-encrypt feature on clients and servers. - # It also switches consul-k8s-control-plane components to retrieve the CA from the servers - # via the API. Requires Consul 1.7.1+. - enableAutoEncrypt: false - - # A list of additional DNS names to set as Subject Alternative Names (SANs) - # in the server certificate. This is useful when you need to access the - # Consul server(s) externally, for example, if you're using the UI. - # @type: array - serverAdditionalDNSSANs: [] - - # A list of additional IP addresses to set as Subject Alternative Names (SANs) - # in the server certificate. This is useful when you need to access the - # Consul server(s) externally, for example, if you're using the UI. - # @type: array - serverAdditionalIPSANs: [] - - # If true, `verify_outgoing`, `verify_server_hostname`, - # and `verify_incoming_rpc` will be set to `true` for Consul servers and clients. - # Set this to false to incrementally roll out TLS on an existing Consul cluster. - # Please see https://consul.io/docs/k8s/operations/tls-on-existing-cluster - # for more details. - verify: true - - # If true, the Helm chart will configure Consul to disable the HTTP port on - # both clients and servers and to only accept HTTPS connections. - httpsOnly: true - - # A Kubernetes secret containing the certificate of the CA to use for - # TLS communication within the Consul cluster. If you have generated the CA yourself - # with the consul CLI, you could use the following command to create the secret - # in Kubernetes: - # - # ```bash - # kubectl create secret generic consul-ca-cert \ - # --from-file='tls.crt=./consul-agent-ca.pem' - # ``` - caCert: - # The name of the Kubernetes secret. - secretName: null - # The key of the Kubernetes secret. - secretKey: null - - # A Kubernetes secret containing the private key of the CA to use for - # TLS communication within the Consul cluster. If you have generated the CA yourself - # with the consul CLI, you could use the following command to create the secret - # in Kubernetes: - # - # ```bash - # kubectl create secret generic consul-ca-key \ - # --from-file='tls.key=./consul-agent-ca-key.pem' - # ``` - # - # Note that we need the CA key so that we can generate server and client certificates. - # It is particularly important for the client certificates since they need to have host IPs - # as Subject Alternative Names. In the future, we may support bringing your own server - # certificates. - caKey: - # The name of the Kubernetes secret. - secretName: null - # The key of the Kubernetes secret. - secretKey: null - - # [Enterprise Only] `enableConsulNamespaces` indicates that you are running - # Consul Enterprise v1.7+ with a valid Consul Enterprise license and would - # like to make use of configuration beyond registering everything into - # the `default` Consul namespace. Additional configuration - # options are found in the `consulNamespaces` section of both the catalog sync - # and connect injector. - enableConsulNamespaces: false - - # Configure ACLs. - acls: - - # If true, the Helm chart will automatically manage ACL tokens and policies - # for all Consul and consul-k8s-control-plane components. - # This requires Consul >= 1.4. - manageSystemACLs: false - - # A Kubernetes secret containing the bootstrap token to use for - # creating policies and tokens for all Consul and consul-k8s-control-plane components. - # If set, we will skip ACL bootstrapping of the servers and will only - # initialize ACLs for the Consul clients and consul-k8s-control-plane system components. - bootstrapToken: - # The name of the Kubernetes secret. - secretName: null - # The key of the Kubernetes secret. - secretKey: null - - # If true, an ACL token will be created that can be used in secondary - # datacenters for replication. This should only be set to true in the - # primary datacenter since the replication token must be created from that - # datacenter. - # In secondary datacenters, the secret needs to be imported from the primary - # datacenter and referenced via `global.acls.replicationToken`. - createReplicationToken: false - - # replicationToken references a secret containing the replication ACL token. - # This token will be used by secondary datacenters to perform ACL replication - # and create ACL tokens and policies. - # This value is ignored if `bootstrapToken` is also set. - replicationToken: - # The name of the Kubernetes secret. - secretName: null - # The key of the Kubernetes secret. - secretKey: null - - # Configure federation. - federation: - # If enabled, this datacenter will be federation-capable. Only federation - # via mesh gateways is supported. - # Mesh gateways and servers will be configured to allow federation. - # Requires `global.tls.enabled`, `meshGateway.enabled` and `connectInject.enabled` - # to be true. Requires Consul 1.8+. - enabled: false - - # If true, the chart will create a Kubernetes secret that can be imported - # into secondary datacenters so they can federate with this datacenter. The - # secret contains all the information secondary datacenters need to contact - # and authenticate with this datacenter. This should only be set to true - # in your primary datacenter. The secret name is - # `-federation` (if setting `global.name`), otherwise - # `-consul-federation`. - createFederationSecret: false - - # Configures metrics for Consul service mesh - metrics: - # Configures the Helm chart’s components - # to expose Prometheus metrics for the Consul service mesh. By default - # this includes gateway metrics and sidecar metrics. - # @type: boolean - enabled: true - - # Configures consul agent metrics. Only applicable if - # `global.metrics.enabled` is true. - # @type: boolean - enableAgentMetrics: true - - # Configures the retention time for metrics in Consul clients and - # servers. This must be greater than 0 for Consul clients and servers - # to expose any metrics at all. - # Only applicable if `global.metrics.enabled` is true. - # @type: string - agentMetricsRetentionTime: 1m - - # If true, mesh, terminating, and ingress gateways will expose their - # Envoy metrics on port `20200` at the `/metrics` path and all gateway pods - # will have Prometheus scrape annotations. Only applicable if `global.metrics.enabled` is true. - # @type: boolean - enableGatewayMetrics: true - - # For connect-injected pods, the consul sidecar is responsible for metrics merging. For ingress/mesh/terminating - # gateways, it additionally ensures the Consul services are always registered with their local Consul client. - # @recurse: false - # @type: map - consulSidecarContainer: - resources: - requests: - memory: "25Mi" - cpu: "20m" - limits: - memory: "50Mi" - cpu: "20m" - - # The name (and tag) of the Envoy Docker image used for the - # connect-injected sidecar proxies and mesh, terminating, and ingress gateways. - # See https://www.consul.io/docs/connect/proxies/envoy for full compatibility matrix between Consul and Envoy. - # @default: envoyproxy/envoy-alpine: - imageEnvoy: "envoyproxy/envoy-alpine:v1.18.4" - - # Configuration for running this Helm chart on the Red Hat OpenShift platform. - # This Helm chart currently supports OpenShift v4.x+. - openshift: - # If true, the Helm chart will create necessary configuration for running - # its components on OpenShift. - enabled: false - -# Server, when enabled, configures a server cluster to run. This should -# be disabled if you plan on connecting to a Consul cluster external to -# the Kube cluster. -server: - - # If true, the chart will install all the resources necessary for a - # Consul server cluster. If you're running Consul externally and want agents - # within Kubernetes to join that cluster, this should probably be false. - # @default: global.enabled - # @type: boolean - enabled: "-" - - # The name of the Docker image (including any tag) for the containers running - # Consul server agents. - # @type: string - image: null - - # The number of server agents to run. This determines the fault tolerance of - # the cluster. Please see the deployment table (https://consul.io/docs/internals/consensus#deployment-table) - # for more information. - replicas: 1 - - # The number of servers that are expected to be running. - # It defaults to server.replicas. - # In most cases the default should be used, however if there are more - # servers in this datacenter than server.replicas it might make sense - # to override the default. This would be the case if two kube clusters - # were joined into the same datacenter and each cluster ran a certain number - # of servers. - # @type: int - bootstrapExpect: null - - # [Enterprise Only] This value refers to a Kubernetes secret that you have created - # that contains your enterprise license. It is required if you are using an - # enterprise binary. Defining it here applies it to your cluster once a leader - # has been elected. If you are not using an enterprise image or if you plan to - # introduce the license key via another route, then set these fields to null. - # Note: the job to apply license runs on both Helm installs and upgrades. - enterpriseLicense: - # The name of the Kubernetes secret that holds the enterprise license. - # The secret must be in the same namespace that Consul is installed into. - secretName: null - # The key within the Kubernetes secret that holds the enterprise license. - secretKey: null - # Manages license autoload. Required in Consul 1.10.0+, 1.9.7+ and 1.8.12+. - enableLicenseAutoload: true - - # A Kubernetes secret containing a certificate & key for the server agents to use - # for TLS communication within the Consul cluster. Cert needs to be provided with - # additional DNS name SANs so that it will work within the Kubernetes cluster: - # - # ```bash - # consul tls cert create -server -days=730 -domain=consul -ca=consul-agent-ca.pem \ - # -key=consul-agent-ca-key.pem -dc={{datacenter}} \ - # -additional-dnsname="{{fullname}}-server" \ - # -additional-dnsname="*.{{fullname}}-server" \ - # -additional-dnsname="*.{{fullname}}-server.{{namespace}}" \ - # -additional-dnsname="*.{{fullname}}-server.{{namespace}}.svc" \ - # -additional-dnsname="*.server.{{datacenter}}.{{domain}}" \ - # -additional-dnsname="server.{{datacenter}}.{{domain}}" - # ``` - # - # If you have generated the - # server-cert yourself with the consul CLI, you could use the following command - # to create the secret in Kubernetes: - # - # ```bash - # kubectl create secret generic consul-server-cert \ - # --from-file='tls.crt=./dc1-server-consul-0.pem' - # --from-file='tls.key=./dc1-server-consul-0-key.pem' - # ``` - serverCert: - # The name of the Kubernetes secret. - secretName: null - - # Exposes the servers' gossip and RPC ports as hostPorts. To enable a client - # agent outside of the k8s cluster to join the datacenter, you would need to - # enable `server.exposeGossipAndRPCPorts`, `client.exposeGossipPorts`, and - # set `server.ports.serflan.port` to a port not being used on the host. Since - # `client.exposeGossipPorts` uses the hostPort 8301, - # `server.ports.serflan.port` must be set to something other than 8301. - exposeGossipAndRPCPorts: false - - # Configures ports for the consul servers. - ports: - # Configures the LAN gossip port for the consul servers. If you choose to - # enable `server.exposeGossipAndRPCPorts` and `client.exposeGossipPorts`, - # that will configure the LAN gossip ports on the servers and clients to be - # hostPorts, so if you are running clients and servers on the same node the - # ports will conflict if they are both 8301. When you enable - # `server.exposeGossipAndRPCPorts` and `client.exposeGossipPorts`, you must - # change this from the default to an unused port on the host, e.g. 9301. By - # default the LAN gossip port is 8301 and configured as a containerPort on - # the consul server Pods. - serflan: - port: 8301 - - # This defines the disk size for configuring the - # servers' StatefulSet storage. For dynamically provisioned storage classes, this is the - # desired size. For manually defined persistent volumes, this should be set to - # the disk size of the attached volume. - storage: 10Gi - - # The StorageClass to use for the servers' StatefulSet storage. It must be - # able to be dynamically provisioned if you want the storage - # to be automatically created. For example, to use local - # (https://kubernetes.io/docs/concepts/storage/storage-classes/#local) - # storage classes, the PersistentVolumeClaims would need to be manually created. - # A `null` value will use the Kubernetes cluster's default StorageClass. If a default - # StorageClass does not exist, you will need to create one. - # @type: string - storageClass: nfs-ssd-ebin02 - - # This will enable/disable Connect (https://consul.io/docs/connect). Setting this to true - # _will not_ automatically secure pod communication, this - # setting will only enable usage of the feature. Consul will automatically initialize - # a new CA and set of certificates. Additional Connect settings can be configured - # by setting the `server.extraConfig` value. - connect: true - - serviceAccount: - # This value defines additional annotations for the server service account. This should be formatted as a multi-line - # string. - # - # ```yaml - # annotations: | - # "sample/annotation1": "foo" - # "sample/annotation2": "bar" - # ``` - # - # @type: string - annotations: null - - # The resource requests (CPU, memory, etc.) - # for each of the server agents. This should be a YAML map corresponding to a Kubernetes - # ResourceRequirements (https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#resourcerequirements-v1-core) - # object. NOTE: The use of a YAML string is deprecated. - # - # Example: - # - # ```yaml - # resources: - # requests: - # memory: '100Mi' - # cpu: '100m' - # limits: - # memory: '100Mi' - # cpu: '100m' - # ``` - # - # @recurse: false - # @type: map - resources: - requests: - memory: "100Mi" - cpu: "100m" - limits: - memory: "100Mi" - cpu: "100m" - - # The security context for the server pods. This should be a YAML map corresponding to a - # Kubernetes [SecurityContext](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) object. - # By default, servers will run as non-root, with user ID `100` and group ID `1000`, - # which correspond to the consul user and group created by the Consul docker image. - # Note: if running on OpenShift, this setting is ignored because the user and group are set automatically - # by the OpenShift platform. - # @type: map - # @recurse: false - securityContext: - runAsNonRoot: true - runAsGroup: 1000 - runAsUser: 100 - fsGroup: 1000 - - # The container securityContext for each container in the server pods. In - # addition to the Pod's SecurityContext this can - # set the capabilities of processes running in the container and ensure the - # root file systems in the container is read-only. - # @type: map - # @recurse: true - containerSecurityContext: - # The consul server agent container - # @type: map - # @recurse: false - server: null - - # This value is used to carefully - # control a rolling update of Consul server agents. This value specifies the - # partition (https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions) - # for performing a rolling update. Please read the linked Kubernetes documentation - # and https://www.consul.io/docs/k8s/upgrade#upgrading-consul-servers for more information. - updatePartition: 0 - - # This configures the PodDisruptionBudget (https://kubernetes.io/docs/tasks/run-application/configure-pdb/) - # for the server cluster. - disruptionBudget: - # This will enable/disable registering a PodDisruptionBudget for the server - # cluster. If this is enabled, it will only register the budget so long as - # the server cluster is enabled. - enabled: true - - # The maximum number of unavailable pods. By default, this will be - # automatically computed based on the `server.replicas` value to be `(n/2)-1`. - # If you need to set this to `0`, you will need to add a - # --set 'server.disruptionBudget.maxUnavailable=0'` flag to the helm chart installation - # command because of a limitation in the Helm templating language. - # @type: integer - maxUnavailable: null - - # A raw string of extra JSON configuration (https://consul.io/docs/agent/options) for Consul - # servers. This will be saved as-is into a ConfigMap that is read by the Consul - # server agents. This can be used to add additional configuration that - # isn't directly exposed by the chart. - # - # Example: - # - # ```yaml - # extraConfig: | - # { - # "log_level": "DEBUG" - # } - # ``` - # - # This can also be set using Helm's `--set` flag using the following syntax: - # - # ```shell - # --set 'server.extraConfig="{"log_level": "DEBUG"}"' - # ``` - extraConfig: | - {} - - # A list of extra volumes to mount for server agents. This - # is useful for bringing in extra data that can be referenced by other configurations - # at a well known path, such as TLS certificates or Gossip encryption keys. The - # value of this should be a list of objects. - # - # Example: - # - # ```yaml - # extraVolumes: - # - type: secret - # name: consul-certs - # load: false - # ``` - # - # Each object supports the following keys: - # - # - `type` - Type of the volume, must be one of "configMap" or "secret". Case sensitive. - # - # - `name` - Name of the configMap or secret to be mounted. This also controls - # the path that it is mounted to. The volume will be mounted to `/consul/userconfig/`. - # - # - `load` - If true, then the agent will be - # configured to automatically load HCL/JSON configuration files from this volume - # with `-config-dir`. This defaults to false. - # - # @type: array - extraVolumes: [] - - # A list of sidecar containers. - # Example: - # - # ```yaml - # extraContainers: - # - name: extra-container - # image: example-image:latest - # command: - # - ... - # ``` - # @type: array - extraContainers: [] - - # This value defines the affinity (https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity) - # for server pods. It defaults to allowing only a single server pod on each node, which - # minimizes risk of the cluster becoming unusable if a node is lost. If you need - # to run more pods per node (for example, testing on Minikube), set this value - # to `null`. - # - # Example: - # - # ```yaml - # affinity: | - # podAntiAffinity: - # requiredDuringSchedulingIgnoredDuringExecution: - # - labelSelector: - # matchLabels: - # app: {{ template "consul.name" . }} - # release: "{{ .Release.Name }}" - # component: server - # topologyKey: kubernetes.io/hostname - # ``` - affinity: | - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchLabels: - app: {{ template "consul.name" . }} - release: "{{ .Release.Name }}" - component: server - topologyKey: kubernetes.io/hostname - - # Toleration settings for server pods. This - # should be a multi-line string matching the Tolerations - # (https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/) array in a Pod spec. - tolerations: "" - - # Pod topology spread constraints for server pods. - # This should be a multi-line YAML string matching the `topologySpreadConstraints` array - # (https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/) in a Pod Spec. - # - # This requires K8S >= 1.18 (beta) or 1.19 (stable). - # - # Example: - # - # ```yaml - # topologySpreadConstraints: | - # - maxSkew: 1 - # topologyKey: topology.kubernetes.io/zone - # whenUnsatisfiable: DoNotSchedule - # labelSelector: - # matchLabels: - # app: {{ template "consul.name" . }} - # release: "{{ .Release.Name }}" - # component: server - # ``` - topologySpreadConstraints: "" - - # This value defines `nodeSelector` (https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) - # labels for server pod assignment, formatted as a multi-line string. - # - # Example: - # - # ```yaml - # nodeSelector: | - # beta.kubernetes.io/arch: amd64 - # ``` - # - # @type: string - nodeSelector: null - - # This value references an existing - # Kubernetes `priorityClassName` (https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#pod-priority) - # that can be assigned to server pods. - priorityClassName: "" - - # Extra labels to attach to the server pods. This should be a YAML map. - # - # Example: - # - # ```yaml - # extraLabels: - # labelKey: label-value - # anotherLabelKey: another-label-value - # ``` - # - # @type: map - extraLabels: null - - # This value defines additional annotations for - # server pods. This should be formatted as a multi-line string. - # - # ```yaml - # annotations: | - # "sample/annotation1": "foo" - # "sample/annotation2": "bar" - # ``` - # - # @type: string - annotations: null - - # Server service properties. - service: - # Annotations to apply to the server service. - # - # ```yaml - # annotations: | - # "annotation-key": "annotation-value" - # ``` - # - # @type: string - annotations: null - - # A list of extra environment variables to set within the stateful set. - # These could be used to include proxy settings required for cloud auto-join - # feature, in case kubernetes cluster is behind egress http proxies. Additionally, - # it could be used to configure custom consul parameters. - # @type: map - extraEnvironmentVars: {} - -# Configuration for Consul servers when the servers are running outside of Kubernetes. -# When running external servers, configuring these values is recommended -# if setting `global.tls.enableAutoEncrypt` to true -# or `global.acls.manageSystemACLs` to true. -externalServers: - # If true, the Helm chart will be configured to talk to the external servers. - # If setting this to true, you must also set `server.enabled` to false. - enabled: false - - # An array of external Consul server hosts that are used to make - # HTTPS connections from the components in this Helm chart. - # Valid values include IPs, DNS names, or Cloud auto-join string. - # The port must be provided separately below. - # Note: `client.join` must also be set to the hosts that should be - # used to join the cluster. In most cases, the `client.join` values - # should be the same, however, they may be different if you - # wish to use separate hosts for the HTTPS connections. - # @type: array - hosts: [] - - # The HTTPS port of the Consul servers. - httpsPort: 8501 - - # The server name to use as the SNI host header when connecting with HTTPS. - # @type: string - tlsServerName: null - - # If true, consul-k8s-control-plane components will ignore the CA set in - # `global.tls.caCert` when making HTTPS calls to Consul servers and - # will instead use the consul-k8s-control-plane image's system CAs for TLS verification. - # If false, consul-k8s-control-plane components will use `global.tls.caCert` when - # making HTTPS calls to Consul servers. - # **NOTE:** This does not affect Consul's internal RPC communication which will - # always use `global.tls.caCert`. - useSystemRoots: false - - # If you are setting `global.acls.manageSystemACLs` and - # `connectInject.enabled` to true, set `k8sAuthMethodHost` to the address of the Kubernetes API server. - # This address must be reachable from the Consul servers. - # Please see the Kubernetes Auth Method documentation (https://consul.io/docs/acl/auth-methods/kubernetes). - # - # You could retrieve this value from your `kubeconfig` by running: - # - # ```shell - # kubectl config view \ - # -o jsonpath="{.clusters[?(@.name=='')].cluster.server}" - # ``` - # - # @type: string - k8sAuthMethodHost: null - -# Values that configure running a Consul client on Kubernetes nodes. -client: - # If true, the chart will install all - # the resources necessary for a Consul client on every Kubernetes node. This _does not_ require - # `server.enabled`, since the agents can be configured to join an external cluster. - # @default: global.enabled - # @type: boolean - enabled: "-" - - # The name of the Docker image (including any tag) for the containers - # running Consul client agents. - # @type: string - image: null - - # A list of valid `-retry-join` values (https://consul.io/docs/agent/options#retry-join). - # If this is `null` (default), then the clients will attempt to automatically - # join the server cluster running within Kubernetes. - # This means that with `server.enabled` set to true, clients will automatically - # join that cluster. If `server.enabled` is not true, then a value must be - # specified so the clients can join a valid cluster. - # @type: array - join: null - - # An absolute path to a directory on the host machine to use as the Consul - # client data directory. If set to the empty string or null, the Consul agent - # will store its data in the Pod's local filesystem (which will - # be lost if the Pod is deleted). Security Warning: If setting this, Pod Security - # Policies _must_ be enabled on your cluster and in this Helm chart (via the - # `global.enablePodSecurityPolicies` setting) to prevent other pods from - # mounting the same host path and gaining access to all of Consul's data. - # Consul's data is not encrypted at rest. - # @type: string - dataDirectoryHostPath: null - - # If true, agents will enable their GRPC listener on - # port 8502 and expose it to the host. This will use slightly more resources, but is - # required for Connect. - grpc: true - - # nodeMeta specifies an arbitrary metadata key/value pair to associate with the node - # (see https://www.consul.io/docs/agent/options.html#_node_meta) - nodeMeta: - pod-name: ${HOSTNAME} - host-ip: ${HOST_IP} - - # If true, the Helm chart will expose the clients' gossip ports as hostPorts. - # This is only necessary if pod IPs in the k8s cluster are not directly routable - # and the Consul servers are outside of the k8s cluster. - # This also changes the clients' advertised IP to the `hostIP` rather than `podIP`. - exposeGossipPorts: false - - serviceAccount: - # This value defines additional annotations for the client service account. This should be formatted as a multi-line - # string. - # - # ```yaml - # annotations: | - # "sample/annotation1": "foo" - # "sample/annotation2": "bar" - # ``` - # - # @type: string - annotations: null - - # Resource settings for Client agents. - # NOTE: The use of a YAML string is deprecated. Instead, set directly as a - # YAML map. - # @recurse: false - # @type: map - resources: - requests: - memory: "100Mi" - cpu: "100m" - limits: - memory: "100Mi" - cpu: "100m" - - # The security context for the client pods. This should be a YAML map corresponding to a - # Kubernetes [SecurityContext](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/) object. - # By default, servers will run as non-root, with user ID `100` and group ID `1000`, - # which correspond to the consul user and group created by the Consul docker image. - # Note: if running on OpenShift, this setting is ignored because the user and group are set automatically - # by the OpenShift platform. - # @type: map - # @recurse: false - securityContext: - runAsNonRoot: true - runAsGroup: 1000 - runAsUser: 100 - fsGroup: 1000 - - # The container securityContext for each container in the client pods. In - # addition to the Pod's SecurityContext this can - # set the capabilities of processes running in the container and ensure the - # root file systems in the container is read-only. - # @type: map - # @recurse: true - containerSecurityContext: - # The consul client agent container - # @type: map - # @recurse: false - client: null - # The acl-init initContainer - # @type: map - # @recurse: false - aclInit: null - # The tls-init initContainer - # @type: map - # @recurse: false - tlsInit: null - - # A raw string of extra JSON configuration (https://consul.io/docs/agent/options) for Consul - # clients. This will be saved as-is into a ConfigMap that is read by the Consul - # client agents. This can be used to add additional configuration that - # isn't directly exposed by the chart. - # - # Example: - # - # ```yaml - # extraConfig: | - # { - # "log_level": "DEBUG" - # } - # ``` - # - # This can also be set using Helm's `--set` flag using the following syntax: - # - # ```shell - # --set 'client.extraConfig="{"log_level": "DEBUG"}"' - # ``` - extraConfig: | - {} - - # A list of extra volumes to mount for client agents. This - # is useful for bringing in extra data that can be referenced by other configurations - # at a well known path, such as TLS certificates or Gossip encryption keys. The - # value of this should be a list of objects. - # - # Example: - # - # ```yaml - # extraVolumes: - # - type: secret - # name: consul-certs - # load: false - # ``` - # - # Each object supports the following keys: - # - # - `type` - Type of the volume, must be one of "configMap" or "secret". Case sensitive. - # - # - `name` - Name of the configMap or secret to be mounted. This also controls - # the path that it is mounted to. The volume will be mounted to `/consul/userconfig/`. - # - # - `load` - If true, then the agent will be - # configured to automatically load HCL/JSON configuration files from this volume - # with `-config-dir`. This defaults to false. - # - # @type: array - extraVolumes: [] - - # A list of sidecar containers. - # Example: - # - # ```yaml - # extraContainers: - # - name: extra-container - # image: example-image:latest - # command: - # - ... - # ``` - # @type: array - extraContainers: [] - - # Toleration Settings for Client pods - # This should be a multi-line string matching the Toleration array - # in a PodSpec. - # The example below will allow Client pods to run on every node - # regardless of taints - # - # ```yaml - # tolerations: | - # - operator: Exists - # ``` - tolerations: "" - - # nodeSelector labels for client pod assignment, formatted as a multi-line string. - # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector - # - # Example: - # - # ```yaml - # nodeSelector: | - # beta.kubernetes.io/arch: amd64 - # ``` - # @type: string - nodeSelector: null - - # Affinity Settings for Client pods, formatted as a multi-line YAML string. - # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity - # - # Example: - # - # ```yaml - # affinity: | - # nodeAffinity: - # requiredDuringSchedulingIgnoredDuringExecution: - # nodeSelectorTerms: - # - matchExpressions: - # - key: node-role.kubernetes.io/master - # operator: DoesNotExist - # ``` - # @type: string - affinity: null - - # This value references an existing - # Kubernetes `priorityClassName` (https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#pod-priority) - # that can be assigned to client pods. - priorityClassName: "" - - # This value defines additional annotations for - # client pods. This should be formatted as a multi-line string. - # - # ```yaml - # annotations: | - # "sample/annotation1": "foo" - # "sample/annotation2": "bar" - # ``` - # - # @type: string - annotations: null - - # Extra labels to attach to the client pods. This should be a regular YAML map. - # - # Example: - # - # ```yaml - # extraLabels: - # labelKey: label-value - # anotherLabelKey: another-label-value - # ``` - # - # @type: map - extraLabels: null - - # A list of extra environment variables to set within the stateful set. - # These could be used to include proxy settings required for cloud auto-join - # feature, in case kubernetes cluster is behind egress http proxies. Additionally, - # it could be used to configure custom consul parameters. - # @type: map - extraEnvironmentVars: {} - - # This value defines the Pod DNS policy (https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy) - # for client pods to use. - # @type: string - dnsPolicy: null - - # hostNetwork defines whether or not we use host networking instead of hostPort in the event - # that a CNI plugin doesn't support `hostPort`. This has security implications and is not recommended - # as doing so gives the consul client unnecessary access to all network traffic on the host. - # In most cases, pod network and host network are on different networks so this should be - # combined with `dnsPolicy: ClusterFirstWithHostNet` - hostNetwork: false - - # updateStrategy for the DaemonSet. - # See https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/#daemonset-update-strategy. - # This should be a multi-line string mapping directly to the updateStrategy - # - # Example: - # - # ```yaml - # updateStrategy: | - # rollingUpdate: - # maxUnavailable: 5 - # type: RollingUpdate - # ``` - # - # @type: string - updateStrategy: null - - # [Enterprise Only] Values for setting up and running snapshot agents - # (https://consul.io/commands/snapshot/agent) - # within the Consul clusters. They are required to be co-located with Consul clients, - # so will inherit the clients' nodeSelector, tolerations and affinity. - snapshotAgent: - # If true, the chart will install resources necessary to run the snapshot agent. - enabled: false - - # The number of snapshot agents to run. - replicas: 2 - - # A Kubernetes secret that should be manually created to contain the entire - # config to be used on the snapshot agent. - # This is the preferred method of configuration since there are usually storage - # credentials present. Please see Snapshot agent config (https://consul.io/commands/snapshot/agent#config-file-options) - # for details. - configSecret: - # The name of the Kubernetes secret. - secretName: null - # The key of the Kubernetes secret. - secretKey: null - - serviceAccount: - # This value defines additional annotations for the snapshot agent service account. This should be formatted as a - # multi-line string. - # - # ```yaml - # annotations: | - # "sample/annotation1": "foo" - # "sample/annotation2": "bar" - # ``` - # - # @type: string - annotations: null - - # Resource settings for snapshot agent pods. - # @recurse: false - # @type: map - resources: - requests: - memory: "50Mi" - cpu: "50m" - limits: - memory: "50Mi" - cpu: "50m" - - # Optional PEM-encoded CA certificate that will be added to the trusted system CAs. - # Useful if using an S3-compatible storage exposing a self-signed certificate. - # - # Example: - # - # ```yaml - # caCert: | - # -----BEGIN CERTIFICATE----- - # MIIC7jCCApSgAwIBAgIRAIq2zQEVexqxvtxP6J0bXAwwCgYIKoZIzj0EAwIwgbkx - # ... - # ``` - # @type: string - caCert: null - -# Configuration for DNS configuration within the Kubernetes cluster. -# This creates a service that routes to all agents (client or server) -# for serving DNS requests. This DOES NOT automatically configure kube-dns -# today, so you must still manually configure a `stubDomain` with kube-dns -# for this to have any effect: -# https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/#configure-stub-domain-and-upstream-dns-servers -dns: - # @type: boolean - enabled: "-" - - # Used to control the type of service created. For - # example, setting this to "LoadBalancer" will create an external load - # balancer (for supported K8S installations) - type: ClusterIP - - # Set a predefined cluster IP for the DNS service. - # Useful if you need to reference the DNS service's IP - # address in CoreDNS config. - # @type: string - clusterIP: null - - # Extra annotations to attach to the dns service - # This should be a multi-line string of - # annotations to apply to the dns Service - # @type: string - annotations: null - - # Additional ServiceSpec values - # This should be a multi-line string mapping directly to a Kubernetes - # ServiceSpec object. - # @type: string - additionalSpec: null - -# Values that configure the Consul UI. -ui: - # If true, the UI will be enabled. This will - # only _enable_ the UI, it doesn't automatically register any service for external - # access. The UI will only be enabled on server agents. If `server.enabled` is - # false, then this setting has no effect. To expose the UI in some way, you must - # configure `ui.service`. - # @default: global.enabled - # @type: boolean - enabled: "-" - - # Configure the service for the Consul UI. - service: - # This will enable/disable registering a - # Kubernetes Service for the Consul UI. This value only takes effect if `ui.enabled` is - # true and taking effect. - enabled: true - - # The service type to register. - # @type: string - type: null - - # Set the port value of the UI service. - port: - - # HTTP port. - http: 80 - - # HTTPS port. - https: 443 - - # Optionally set the nodePort value of the ui service if using a NodePort service. - # If not set and using a NodePort service, Kubernetes will automatically assign - # a port. - nodePort: - - # HTTP node port - # @type: integer - http: null - - # HTTPS node port - # @type: integer - https: null - - # Annotations to apply to the UI service. - # - # Example: - # - # ```yaml - # annotations: | - # 'annotation-key': annotation-value - # ``` - # @type: string - annotations: null - - # Additional ServiceSpec values - # This should be a multi-line string mapping directly to a Kubernetes - # ServiceSpec object. - # @type: string - additionalSpec: null - - # Configure Ingress for the Consul UI. - # If `global.tls.enabled` is set to `true`, the Ingress will expose - # the port 443 on the UI service. Please ensure the Ingress Controller - # supports SSL pass-through and it is enabled to ensure traffic forwarded - # to port 443 has not been TLS terminated. - ingress: - # This will create an Ingress resource for the Consul UI. - # @type: boolean - enabled: true - - # pathType override - see: https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types - pathType: Prefix - - # hosts is a list of host name to create Ingress rules. - # - # ```yaml - # hosts: - # - host: foo.bar - # paths: - # - /example - # - /test - # ``` - # - # @type: array - hosts: - - host: consul.lan - paths: - - / - - # tls is a list of hosts and secret name in an Ingress - # which tells the Ingress controller to secure the channel. - # - # ```yaml - # tls: - # - hosts: - # - chart-example.local - # secretName: testsecret-tls - # ``` - # @type: array - tls: [] - - # Annotations to apply to the UI ingress. - # - # Example: - # - # ```yaml - # annotations: | - # 'annotation-key': annotation-value - # ``` - # @type: string - annotations: null - - # Configurations for displaying metrics in the UI. - metrics: - # Enable displaying metrics in the UI. The default value of "-" - # will inherit from `global.metrics.enabled` value. - # @type: boolean - # @default: global.metrics.enabled - enabled: "-" - # Provider for metrics. See - # https://www.consul.io/docs/agent/options#ui_config_metrics_provider - # This value is only used if `ui.enabled` is set to true. - # @type: string - provider: "prometheus" - - # baseURL is the URL of the prometheus server, usually the service URL. - # This value is only used if `ui.enabled` is set to true. - # @type: string - baseURL: http://prometheus.lan - -# Configure the catalog sync process to sync K8S with Consul -# services. This can run bidirectional (default) or unidirectionally (Consul -# to K8S or K8S to Consul only). -# -# This process assumes that a Consul agent is available on the host IP. -# This is done automatically if clients are enabled. If clients are not -# enabled then set the node selection so that it chooses a node with a -# Consul agent. -syncCatalog: - # True if you want to enable the catalog sync. Set to "-" to inherit from - # global.enabled. - enabled: "-" - - # The name of the Docker image (including any tag) for consul-k8s-control-plane - # to run the sync program. - # @type: string - image: null - - # If true, all valid services in K8S are - # synced by default. If false, the service must be annotated - # (https://consul.io/docs/k8s/service-sync#sync-enable-disable) properly to sync. - # In either case an annotation can override the default. - default: true - - # Optional priorityClassName. - priorityClassName: "" - - # If true, will sync Kubernetes services to Consul. This can be disabled to - # have a one-way sync. - toConsul: true - - # If true, will sync Consul services to Kubernetes. This can be disabled to - # have a one-way sync. - toK8S: true - - # Service prefix to prepend to services before registering - # with Kubernetes. For example "consul-" will register all services - # prepended with "consul-". (Consul -> Kubernetes sync) - # @type: string - k8sPrefix: null - - # List of k8s namespaces to sync the k8s services from. - # If a k8s namespace is not included in this list or is listed in `k8sDenyNamespaces`, - # services in that k8s namespace will not be synced even if they are explicitly - # annotated. Use `["*"]` to automatically allow all k8s namespaces. - # - # For example, `["namespace1", "namespace2"]` will only allow services in the k8s - # namespaces `namespace1` and `namespace2` to be synced and registered - # with Consul. All other k8s namespaces will be ignored. - # - # To deny all namespaces, set this to `[]`. - # - # Note: `k8sDenyNamespaces` takes precedence over values defined here. - # @type: array - k8sAllowNamespaces: ["*"] - - # List of k8s namespaces that should not have their - # services synced. This list takes precedence over `k8sAllowNamespaces`. - # `*` is not supported because then nothing would be allowed to sync. - # - # For example, if `k8sAllowNamespaces` is `["*"]` and `k8sDenyNamespaces` is - # `["namespace1", "namespace2"]`, then all k8s namespaces besides `namespace1` - # and `namespace2` will be synced. - # @type: array - k8sDenyNamespaces: ["kube-system", "kube-public"] - - # [DEPRECATED] Use k8sAllowNamespaces and k8sDenyNamespaces instead. For - # backwards compatibility, if both this and the allow/deny lists are set, - # the allow/deny lists will be ignored. - # k8sSourceNamespace is the Kubernetes namespace to watch for service - # changes and sync to Consul. If this is not set then it will default - # to all namespaces. - # @type: string - k8sSourceNamespace: null - - # [Enterprise Only] These settings manage the catalog sync's interaction with - # Consul namespaces (requires consul-ent v1.7+). - # Also, `global.enableConsulNamespaces` must be true. - consulNamespaces: - # Name of the Consul namespace to register all - # k8s services into. If the Consul namespace does not already exist, - # it will be created. This will be ignored if `mirroringK8S` is true. - consulDestinationNamespace: "default" - - # If true, k8s services will be registered into a Consul namespace - # of the same name as their k8s namespace, optionally prefixed if - # `mirroringK8SPrefix` is set below. If the Consul namespace does not - # already exist, it will be created. Turning this on overrides the - # `consulDestinationNamespace` setting. - # `addK8SNamespaceSuffix` may no longer be needed if enabling this option. - mirroringK8S: false - - # If `mirroringK8S` is set to true, `mirroringK8SPrefix` allows each Consul namespace - # to be given a prefix. For example, if `mirroringK8SPrefix` is set to "k8s-", a - # service in the k8s `staging` namespace will be registered into the - # `k8s-staging` Consul namespace. - mirroringK8SPrefix: "" - - # Appends Kubernetes namespace suffix to - # each service name synced to Consul, separated by a dash. - # For example, for a service 'foo' in the default namespace, - # the sync process will create a Consul service named 'foo-default'. - # Set this flag to true to avoid registering services with the same name - # but in different namespaces as instances for the same Consul service. - # Namespace suffix is not added if 'annotationServiceName' is provided. - addK8SNamespaceSuffix: true - - # Service prefix which prepends itself - # to Kubernetes services registered within Consul - # For example, "k8s-" will register all services prepended with "k8s-". - # (Kubernetes -> Consul sync) - # consulPrefix is ignored when 'annotationServiceName' is provided. - # NOTE: Updating this property to a non-null value for an existing installation will result in deregistering - # of existing services in Consul and registering them with a new name. - # @type: string - consulPrefix: null - - # Optional tag that is applied to all of the Kubernetes services - # that are synced into Consul. If nothing is set, defaults to "k8s". - # (Kubernetes -> Consul sync) - # @type: string - k8sTag: null - - # Defines the Consul synthetic node that all services - # will be registered to. - # NOTE: Changing the node name and upgrading the Helm chart will leave - # all of the previously sync'd services registered with Consul and - # register them again under the new Consul node name. The out-of-date - # registrations will need to be explicitly removed. - consulNodeName: "k8s-sync" - - # Syncs services of the ClusterIP type, which may - # or may not be broadly accessible depending on your Kubernetes cluster. - # Set this to false to skip syncing ClusterIP services. - syncClusterIPServices: true - - # Configures the type of syncing that happens for NodePort - # services. The valid options are: ExternalOnly, InternalOnly, ExternalFirst. - # - # - ExternalOnly will only use a node's ExternalIP address for the sync - # - InternalOnly use's the node's InternalIP address - # - ExternalFirst will preferentially use the node's ExternalIP address, but - # if it doesn't exist, it will use the node's InternalIP address instead. - nodePortSyncType: ExternalFirst - - # Refers to a Kubernetes secret that you have created that contains - # an ACL token for your Consul cluster which allows the sync process the correct - # permissions. This is only needed if ACLs are enabled on the Consul cluster. - aclSyncToken: - # The name of the Kubernetes secret. - secretName: null - # The key of the Kubernetes secret. - secretKey: null - - # This value defines `nodeSelector` (https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector) - # labels for catalog sync pod assignment, formatted as a multi-line string. - # - # Example: - # - # ```yaml - # nodeSelector: | - # beta.kubernetes.io/arch: amd64 - # ``` - # - # @type: string - nodeSelector: null - - # Affinity Settings - # This should be a multi-line string matching the affinity object - # @type: string - affinity: null - - # Toleration Settings - # This should be a multi-line string matching the Toleration array - # in a PodSpec. - # @type: string - tolerations: null - - serviceAccount: - # This value defines additional annotations for the mesh gateways' service account. This should be formatted as a - # multi-line string. - # - # ```yaml - # annotations: | - # "sample/annotation1": "foo" - # "sample/annotation2": "bar" - # ``` - # - # @type: string - annotations: null - - # Resource settings for sync catalog pods. - # @recurse: false - # @type: map - resources: - requests: - memory: "50Mi" - cpu: "50m" - limits: - memory: "50Mi" - cpu: "50m" - - # Override global log verbosity level. One of "debug", "info", "warn", or "error". - # @type: string - logLevel: "" - - # Override the default interval to perform syncing operations creating Consul services. - # @type: string - consulWriteInterval: null - - # Extra labels to attach to the sync catalog pods. This should be a YAML map. - # - # Example: - # - # ```yaml - # extraLabels: - # labelKey: label-value - # anotherLabelKey: another-label-value - # ``` - # - # @type: map - extraLabels: null - -# Configures the automatic Connect sidecar injector. -connectInject: - # True if you want to enable connect injection. Set to "-" to inherit from - # global.enabled. - enabled: false - - # The number of deployment replicas. - replicas: 2 - - # Image for consul-k8s-control-plane that contains the injector. - # @type: string - image: null - - # If true, the injector will inject the - # Connect sidecar into all pods by default. Otherwise, pods must specify the - # injection annotation (https://consul.io/docs/k8s/connect#consul-hashicorp-com-connect-inject) - # to opt-in to Connect injection. If this is true, pods can use the same annotation - # to explicitly opt-out of injection. - default: false - - # Configures Transparent Proxy for Consul Service mesh services. - # Using this feature requires Consul 1.10.0-beta1+. - transparentProxy: - # If true, then all Consul Service mesh will run with transparent proxy enabled by default, - # i.e. we enforce that all traffic within the pod will go through the proxy. - # This value is overridable via the "consul.hashicorp.com/transparent-proxy" pod annotation. - defaultEnabled: true - - # If true, we will overwrite Kubernetes HTTP probes of the pod to point to the Envoy proxy instead. - # This setting is recommended because with traffic being enforced to go through the Envoy proxy, - # the probes on the pod will fail because kube-proxy doesn't have the right certificates - # to talk to Envoy. - # This value is also overridable via the "consul.hashicorp.com/transparent-proxy-overwrite-probes" annotation. - # Note: This value has no effect if transparent proxy is disabled on the pod. - defaultOverwriteProbes: true - - # Configures metrics for Consul Connect services. All values are overridable - # via annotations on a per-pod basis. - metrics: - # If true, the connect-injector will automatically - # add prometheus annotations to connect-injected pods. It will also - # add a listener on the Envoy sidecar to expose metrics. The exposed - # metrics will depend on whether metrics merging is enabled: - # - If metrics merging is enabled: - # the Consul sidecar will run a merged metrics server - # combining Envoy sidecar and Connect service metrics, - # i.e. if your service exposes its own Prometheus metrics. - # - If metrics merging is disabled: - # the listener will just expose Envoy sidecar metrics. - # This will inherit from `global.metrics.enabled`. - defaultEnabled: "-" - # Configures the Consul sidecar to run a merged metrics server - # to combine and serve both Envoy and Connect service metrics. - # This feature is available only in Consul v1.10.0 or greater. - defaultEnableMerging: false - # Configures the port at which the Consul sidecar will listen on to return - # combined metrics. This port only needs to be changed if it conflicts with - # the application's ports. - defaultMergedMetricsPort: 20100 - # Configures the port Prometheus will scrape metrics from, by configuring - # the Pod annotation `prometheus.io/port` and the corresponding listener in - # the Envoy sidecar. - # NOTE: This is *not* the port that your application exposes metrics on. - # That can be configured with the - # `consul.hashicorp.com/service-metrics-port` annotation. - defaultPrometheusScrapePort: 20200 - # Configures the path Prometheus will scrape metrics from, by configuring the pod - # annotation `prometheus.io/path` and the corresponding handler in the Envoy - # sidecar. - # NOTE: This is *not* the path that your application exposes metrics on. - # That can be configured with the - # `consul.hashicorp.com/service-metrics-path` annotation. - defaultPrometheusScrapePath: "/metrics" - - # Used to pass arguments to the injected envoy sidecar. - # Valid arguments to pass to envoy can be found here: https://www.envoyproxy.io/docs/envoy/latest/operations/cli - # e.g "--log-level debug --disable-hot-restart" - # @type: string - envoyExtraArgs: null - - # Optional priorityClassName. - priorityClassName: "" - - # The Docker image for Consul to use when performing Connect injection. - # Defaults to global.image. - # @type: string - imageConsul: null - - # Override global log verbosity level. One of "debug", "info", "warn", or "error". - # @type: string - logLevel: "" - - serviceAccount: - # This value defines additional annotations for the injector service account. This should be formatted as a - # multi-line string. - # - # ```yaml - # annotations: | - # "sample/annotation1": "foo" - # "sample/annotation2": "bar" - # ``` - # - # @type: string - annotations: null - - # Resource settings for connect inject pods. - # @recurse: false - # @type: map - resources: - requests: - memory: "50Mi" - cpu: "50m" - limits: - memory: "50Mi" - cpu: "50m" - - # Sets the failurePolicy for the mutating webhook. By default this will cause pods not part of the consul installation to fail scheduling while the webhook - # is offline. This prevents a pod from skipping mutation if the webhook were to be momentarily offline. - # Once the webhook is back online the pod will be scheduled. - # In some environments such as Kind this may have an undesirable effect as it may prevent volume provisioner pods from running - # which can lead to hangs. In these environments it is recommend to use "Ignore" instead. - # This setting can be safely disabled by setting to "Ignore". - failurePolicy: "Fail" - - # Selector for restricting the webhook to only specific namespaces. - # Use with `connectInject.default: true` to automatically inject all pods in namespaces that match the selector. This should be set to a multiline string. - # See https://kubernetes.io/docs/reference/access-authn-authz/extensible-admission-controllers/#matching-requests-namespaceselector - # for more details. - # - # Example: - # - # ```yaml - # namespaceSelector: | - # matchLabels: - # namespace-label: label-value - # ``` - # @type: string - namespaceSelector: null - - # List of k8s namespaces to allow Connect sidecar - # injection in. If a k8s namespace is not included or is listed in `k8sDenyNamespaces`, - # pods in that k8s namespace will not be injected even if they are explicitly - # annotated. Use `["*"]` to automatically allow all k8s namespaces. - # - # For example, `["namespace1", "namespace2"]` will only allow pods in the k8s - # namespaces `namespace1` and `namespace2` to have Connect sidecars injected - # and registered with Consul. All other k8s namespaces will be ignored. - # - # To deny all namespaces, set this to `[]`. - # - # Note: `k8sDenyNamespaces` takes precedence over values defined here and - # `namespaceSelector` takes precedence over both since it is applied first. - # `kube-system` and `kube-public` are never injected, even if included here. - # @type: array - k8sAllowNamespaces: ["*"] - - # List of k8s namespaces that should not allow Connect - # sidecar injection. This list takes precedence over `k8sAllowNamespaces`. - # `*` is not supported because then nothing would be allowed to be injected. - # - # For example, if `k8sAllowNamespaces` is `["*"]` and k8sDenyNamespaces is - # `["namespace1", "namespace2"]`, then all k8s namespaces besides "namespace1" - # and "namespace2" will be available for injection. - # - # Note: `namespaceSelector` takes precedence over this since it is applied first. - # `kube-system` and `kube-public` are never injected. - # @type: array - k8sDenyNamespaces: [] - - # [Enterprise Only] These settings manage the connect injector's interaction with - # Consul namespaces (requires consul-ent v1.7+). - # Also, `global.enableConsulNamespaces` must be true. - consulNamespaces: - # Name of the Consul namespace to register all - # k8s pods into. If the Consul namespace does not already exist, - # it will be created. This will be ignored if `mirroringK8S` is true. - consulDestinationNamespace: "default" - - # Causes k8s pods to be registered into a Consul namespace - # of the same name as their k8s namespace, optionally prefixed if - # `mirroringK8SPrefix` is set below. If the Consul namespace does not - # already exist, it will be created. Turning this on overrides the - # `consulDestinationNamespace` setting. - mirroringK8S: false - - # If `mirroringK8S` is set to true, `mirroringK8SPrefix` allows each Consul namespace - # to be given a prefix. For example, if `mirroringK8SPrefix` is set to "k8s-", a - # pod in the k8s `staging` namespace will be registered into the - # `k8s-staging` Consul namespace. - mirroringK8SPrefix: "" - - # Selector labels for connectInject pod assignment, formatted as a multi-line string. - # ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#nodeselector - # - # Example: - # - # ```yaml - # nodeSelector: | - # beta.kubernetes.io/arch: amd64 - # ``` - # @type: string - nodeSelector: null - - # Affinity Settings - # This should be a multi-line string matching the affinity object - # @type: string - affinity: null - - # Toleration Settings - # This should be a multi-line string matching the Toleration array - # in a PodSpec. - # @type: string - tolerations: null - - # Query that defines which Service Accounts - # can authenticate to Consul and receive an ACL token during Connect injection. - # The default setting, i.e. serviceaccount.name!=default, prevents the - # 'default' Service Account from logging in. - # If set to an empty string all service accounts can log in. - # This only has effect if ACLs are enabled. - # - # See https://www.consul.io/docs/acl/acl-auth-methods.html#binding-rules - # and https://www.consul.io/docs/acl/auth-methods/kubernetes.html#trusted-identity-attributes - # for more details. - # Requires Consul >= v1.5. - aclBindingRuleSelector: "serviceaccount.name!=default" - - # If you are not using global.acls.manageSystemACLs and instead manually setting up an - # auth method for Connect inject, set this to the name of your auth method. - overrideAuthMethodName: "" - - # Refers to a Kubernetes secret that you have created that contains - # an ACL token for your Consul cluster which allows the Connect injector the correct - # permissions. This is only needed if Consul namespaces [Enterprise Only] and ACLs - # are enabled on the Consul cluster and you are not setting - # `global.acls.manageSystemACLs` to `true`. - # This token needs to have `operator = "write"` privileges to be able to - # create Consul namespaces. - aclInjectToken: - # The name of the Kubernetes secret. - # @type: string - secretName: null - # The key of the Kubernetes secret. - # @type: string - secretKey: null - - sidecarProxy: - # Set default resources for sidecar proxy. If null, that resource won't - # be set. - # These settings can be overridden on a per-pod basis via these annotations: - # - # - `consul.hashicorp.com/sidecar-proxy-cpu-limit` - # - `consul.hashicorp.com/sidecar-proxy-cpu-request` - # - `consul.hashicorp.com/sidecar-proxy-memory-limit` - # - `consul.hashicorp.com/sidecar-proxy-memory-request` - # @type: map - resources: - requests: - # Recommended default: 100Mi - # @type: string - memory: null - # Recommended default: 100m - # @type: string - cpu: null - limits: - # Recommended default: 100Mi - # @type: string - memory: null - # Recommended default: 100m - # @type: string - cpu: null - - # Resource settings for the Connect injected init container. - # @recurse: false - # @type: map - initContainer: - resources: - requests: - memory: "25Mi" - cpu: "50m" - limits: - memory: "150Mi" - cpu: "50m" - -# Controller handles config entry custom resources. -# Requires consul >= 1.8.4. -# ServiceIntentions require consul 1.9+. -controller: - # Enables the controller for managing custom resources. - enabled: false - - # The number of deployment replicas. - replicas: 1 - - # Log verbosity level. One of "debug", "info", "warn", or "error". - # @type: string - logLevel: "" - - serviceAccount: - # This value defines additional annotations for the controller service account. This should be formatted as a - # multi-line string. - # - # ```yaml - # annotations: | - # "sample/annotation1": "foo" - # "sample/annotation2": "bar" - # ``` - # - # @type: string - annotations: null - - # Resource settings for controller pods. - # @recurse: false - # @type: map - resources: - limits: - cpu: 100m - memory: 50Mi - requests: - cpu: 100m - memory: 50Mi - - # Optional YAML string to specify a nodeSelector config. - # @type: string - nodeSelector: null - - # Optional YAML string to specify tolerations. - # @type: string - tolerations: null - - # Affinity Settings - # This should be a multi-line string matching the affinity object - # @type: string - affinity: null - - # Optional priorityClassName. - priorityClassName: "" - - # Refers to a Kubernetes secret that you have created that contains - # an ACL token for your Consul cluster which grants the controller process the correct - # permissions. This is only needed if you are managing ACLs yourself (i.e. not using - # `global.acls.manageSystemACLs`). - # - # If running Consul OSS, requires permissions: - # ```hcl - # operator = "write" - # service_prefix "" { - # policy = "write" - # intentions = "write" - # } - # ``` - # If running Consul Enterprise, talk to your account manager for assistance. - aclToken: - # The name of the Kubernetes secret. - # @type: string - secretName: null - # The key of the Kubernetes secret. - # @type: string - secretKey: null - -# Mesh Gateways enable Consul Connect to work across Consul datacenters. -meshGateway: - # If mesh gateways are enabled, a Deployment will be created that runs - # gateways and Consul Connect will be configured to use gateways. - # See https://www.consul.io/docs/connect/mesh_gateway.html - # Requirements: consul 1.6.0+ if using - # global.acls.manageSystemACLs. - enabled: false - - # Number of replicas for the Deployment. - replicas: 2 - - # What gets registered as WAN address for the gateway. - wanAddress: - # source configures where to retrieve the WAN address (and possibly port) - # for the mesh gateway from. - # Can be set to either: `Service`, `NodeIP`, `NodeName` or `Static`. - # - # - `Service` - Determine the address based on the service type. - # - # - If `service.type=LoadBalancer` use the external IP or hostname of - # the service. Use the port set by `service.port`. - # - # - If `service.type=NodePort` use the Node IP. The port will be set to - # `service.nodePort` so `service.nodePort` cannot be null. - # - # - If `service.type=ClusterIP` use the `ClusterIP`. The port will be set to - # `service.port`. - # - # - `service.type=ExternalName` is not supported. - # - # - `NodeIP` - The node IP as provided by the Kubernetes downward API. - # - # - `NodeName` - The name of the node as provided by the Kubernetes downward - # API. This is useful if the node names are DNS entries that - # are routable from other datacenters. - # - # - `Static` - Use the address hardcoded in `meshGateway.wanAddress.static`. - source: "Service" - - # Port that gets registered for WAN traffic. - # If source is set to "Service" then this setting will have no effect. - # See the documentation for source as to which port will be used in that - # case. - port: 443 - - # If source is set to "Static" then this value will be used as the WAN - # address of the mesh gateways. This is useful if you've configured a - # DNS entry to point to your mesh gateways. - static: "" - - # The service option configures the Service that fronts the Gateway Deployment. - service: - # Whether to create a Service or not. - enabled: true - - # Type of service, ex. LoadBalancer, ClusterIP. - type: LoadBalancer - - # Port that the service will be exposed on. - # The targetPort will be set to meshGateway.containerPort. - port: 443 - - # Optionally set the nodePort value of the service if using a NodePort service. - # If not set and using a NodePort service, Kubernetes will automatically assign - # a port. - # @type: integer - nodePort: null - - # Annotations to apply to the mesh gateway service. - # - # Example: - # - # ```yaml - # annotations: | - # 'annotation-key': annotation-value - # ``` - # @type: string - annotations: null - - # Optional YAML string that will be appended to the Service spec. - # @type: string - additionalSpec: null - - # If set to true, gateway Pods will run on the host network. - hostNetwork: false - - # dnsPolicy to use. - # @type: string - dnsPolicy: null - - # Consul service name for the mesh gateways. - # Cannot be set to anything other than "mesh-gateway" if - # global.acls.manageSystemACLs is true since the ACL token - # generated is only for the name 'mesh-gateway'. - consulServiceName: "mesh-gateway" - - # Port that the gateway will run on inside the container. - containerPort: 8443 - - # Optional hostPort for the gateway to be exposed on. - # This can be used with wanAddress.port and wanAddress.useNodeIP - # to expose the gateways directly from the node. - # If hostNetwork is true, this must be null or set to the same port as - # containerPort. - # NOTE: Cannot set to 8500 or 8502 because those are reserved for the Consul - # agent. - # @type: integer - hostPort: null - - serviceAccount: - # This value defines additional annotations for the mesh gateways' service account. This should be formatted as a - # multi-line string. - # - # ```yaml - # annotations: | - # "sample/annotation1": "foo" - # "sample/annotation2": "bar" - # ``` - # - # @type: string - annotations: null - - # Resource settings for mesh gateway pods. - # NOTE: The use of a YAML string is deprecated. Instead, set directly as a - # YAML map. - # @recurse: false - # @type: map - resources: - requests: - memory: "100Mi" - cpu: "100m" - limits: - memory: "100Mi" - cpu: "100m" - - # Resource settings for the `copy-consul-bin` init container. - # @recurse: false - # @type: map - initCopyConsulContainer: - resources: - requests: - memory: "25Mi" - cpu: "50m" - limits: - memory: "150Mi" - cpu: "50m" - - # Resource settings for the `service-init` init container. - # @recurse: false - # @type: map - initServiceInitContainer: - resources: - requests: - memory: "50Mi" - cpu: "50m" - limits: - memory: "50Mi" - cpu: "50m" - - # By default, we set an anti-affinity so that two gateway pods won't be - # on the same node. NOTE: Gateways require that Consul client agents are - # also running on the nodes alongside each gateway pod. - affinity: | - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchLabels: - app: {{ template "consul.name" . }} - release: "{{ .Release.Name }}" - component: mesh-gateway - topologyKey: kubernetes.io/hostname - - # Optional YAML string to specify tolerations. - # @type: string - tolerations: null - - # Optional YAML string to specify a nodeSelector config. - # @type: string - nodeSelector: null - - # Optional priorityClassName. - priorityClassName: "" - - # Annotations to apply to the mesh gateway deployment. - # - # Example: - # - # ```yaml - # annotations: | - # 'annotation-key': annotation-value - # ``` - # @type: string - annotations: null - -# Configuration options for ingress gateways. Default values for all -# ingress gateways are defined in `ingressGateways.defaults`. Any of -# these values may be overridden in `ingressGateways.gateways` for a -# specific gateway with the exception of annotations. Annotations will -# include both the default annotations and any additional ones defined -# for a specific gateway. -# Requirements: consul >= 1.8.0 -ingressGateways: - # Enable ingress gateway deployment. Requires `connectInject.enabled=true` - # and `client.enabled=true`. - enabled: false - - # Defaults sets default values for all gateway fields. With the exception - # of annotations, defining any of these values in the `gateways` list - # will override the default values provided here. Annotations will - # include both the default annotations and any additional ones defined - # for a specific gateway. - defaults: - # Number of replicas for each ingress gateway defined. - replicas: 2 - - # The service options configure the Service that fronts the gateway Deployment. - service: - # Type of service: LoadBalancer, ClusterIP or NodePort. If using NodePort service - # type, you must set the desired nodePorts in the `ports` setting below. - type: ClusterIP - - # Ports that will be exposed on the service and gateway container. Any - # ports defined as ingress listeners on the gateway's Consul configuration - # entry should be included here. The first port will be used as part of - # the Consul service registration for the gateway and be listed in its - # SRV record. If using a NodePort service type, you must specify the - # desired nodePort for each exposed port. - # @type: array - # @default: [{port: 8080, port: 8443}] - # @recurse: false - ports: - - port: 8080 - nodePort: null - - port: 8443 - nodePort: null - - # Annotations to apply to the ingress gateway service. Annotations defined - # here will be applied to all ingress gateway services in addition to any - # service annotations defined for a specific gateway in `ingressGateways.gateways`. - # - # Example: - # - # ```yaml - # annotations: | - # 'annotation-key': annotation-value - # ``` - # @type: string - annotations: null - - # Optional YAML string that will be appended to the Service spec. - # @type: string - additionalSpec: null - - serviceAccount: - # This value defines additional annotations for the ingress gateways' service account. This should be formatted - # as a multi-line string. - # - # ```yaml - # annotations: | - # "sample/annotation1": "foo" - # "sample/annotation2": "bar" - # ``` - # - # @type: string - annotations: null - - # Resource limits for all ingress gateway pods - # @recurse: false - # @type: map - resources: - requests: - memory: "100Mi" - cpu: "100m" - limits: - memory: "100Mi" - cpu: "100m" - - # Resource settings for the `copy-consul-bin` init container. - # @recurse: false - # @type: map - initCopyConsulContainer: - resources: - requests: - memory: "25Mi" - cpu: "50m" - limits: - memory: "150Mi" - cpu: "50m" - - # By default, we set an anti-affinity so that two of the same gateway pods - # won't be on the same node. NOTE: Gateways require that Consul client agents are - # also running on the nodes alongside each gateway pod. - affinity: | - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchLabels: - app: {{ template "consul.name" . }} - release: "{{ .Release.Name }}" - component: ingress-gateway - topologyKey: kubernetes.io/hostname - - # Optional YAML string to specify tolerations. - # @type: string - tolerations: null - - # Optional YAML string to specify a nodeSelector config. - # @type: string - nodeSelector: null - - # Optional priorityClassName. - priorityClassName: "" - - # Annotations to apply to the ingress gateway deployment. Annotations defined - # here will be applied to all ingress gateway deployments in addition to any - # annotations defined for a specific gateway in `ingressGateways.gateways`. - # - # Example: - # - # ```yaml - # annotations: | - # "annotation-key": 'annotation-value' - # ``` - # @type: string - annotations: null - - # [Enterprise Only] `consulNamespace` defines the Consul namespace to register - # the gateway into. Requires `global.enableConsulNamespaces` to be true and - # Consul Enterprise v1.7+ with a valid Consul Enterprise license. - # Note: The Consul namespace MUST exist before the gateway is deployed. - consulNamespace: "default" - - # Gateways is a list of gateway objects. The only required field for - # each is `name`, though they can also contain any of the fields in - # `defaults`. Values defined here override the defaults except in the - # case of annotations where both will be applied. - # @type: array - gateways: - - name: ingress-gateway - -# Configuration options for terminating gateways. Default values for all -# terminating gateways are defined in `terminatingGateways.defaults`. Any of -# these values may be overridden in `terminatingGateways.gateways` for a -# specific gateway with the exception of annotations. Annotations will -# include both the default annotations and any additional ones defined -# for a specific gateway. -# Requirements: consul >= 1.8.0 -terminatingGateways: - # Enable terminating gateway deployment. Requires `connectInject.enabled=true` - # and `client.enabled=true`. - enabled: false - - # Defaults sets default values for all gateway fields. With the exception - # of annotations, defining any of these values in the `gateways` list - # will override the default values provided here. Annotations will - # include both the default annotations and any additional ones defined - # for a specific gateway. - defaults: - # Number of replicas for each terminating gateway defined. - replicas: 2 - - # A list of extra volumes to mount. These will be exposed to Consul in the path `/consul/userconfig//`. - # - # Example: - # - # ```yaml - # extraVolumes: - # - type: secret - # name: my-secret - # items: # optional items array - # - key: key - # path: path # secret will now mount to /consul/userconfig/my-secret/path - # ``` - # @type: array - extraVolumes: [] - - # Resource limits for all terminating gateway pods - # @recurse: false - # @type: map - resources: - requests: - memory: "100Mi" - cpu: "100m" - limits: - memory: "100Mi" - cpu: "100m" - - # Resource settings for the `copy-consul-bin` init container. - # @recurse: false - # @type: map - initCopyConsulContainer: - resources: - requests: - memory: "25Mi" - cpu: "50m" - limits: - memory: "150Mi" - cpu: "50m" - - # By default, we set an anti-affinity so that two of the same gateway pods - # won't be on the same node. NOTE: Gateways require that Consul client agents are - # also running on the nodes alongside each gateway pod. - affinity: | - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchLabels: - app: {{ template "consul.name" . }} - release: "{{ .Release.Name }}" - component: terminating-gateway - topologyKey: kubernetes.io/hostname - - # Optional YAML string to specify tolerations. - # @type: string - tolerations: null - - # Optional YAML string to specify a nodeSelector config. - # @type: string - nodeSelector: null - - # Optional priorityClassName. - # @type: string - priorityClassName: "" - - # Annotations to apply to the terminating gateway deployment. Annotations defined - # here will be applied to all terminating gateway deployments in addition to any - # annotations defined for a specific gateway in `terminatingGateways.gateways`. - # - # Example: - # - # ```yaml - # annotations: | - # 'annotation-key': annotation-value - # ``` - # @type: string - annotations: null - - serviceAccount: - # This value defines additional annotations for the terminating gateways' service account. This should be - # formatted as a multi-line string. - # - # ```yaml - # annotations: | - # "sample/annotation1": "foo" - # "sample/annotation2": "bar" - # ``` - # - # @type: string - annotations: null - - # [Enterprise Only] `consulNamespace` defines the Consul namespace to register - # the gateway into. Requires `global.enableConsulNamespaces` to be true and - # Consul Enterprise v1.7+ with a valid Consul Enterprise license. - # Note: The Consul namespace MUST exist before the gateway is deployed. - consulNamespace: "default" - - # Gateways is a list of gateway objects. The only required field for - # each is `name`, though they can also contain any of the fields in - # `defaults`. Values defined here override the defaults except in the - # case of annotations where both will be applied. - # @type: array - gateways: - - name: terminating-gateway - -# Configuration settings for the webhook-cert-manager -# `webhook-cert-manager` ensures that cert bundles are up to date for the mutating webhook. -webhookCertManager: - - # Toleration Settings - # This should be a multi-line string matching the Toleration array - # in a PodSpec. - # @type: string - tolerations: null - -# Configures a demo Prometheus installation. -prometheus: - # When true, the Helm chart will install a demo Prometheus server instance - # alongside Consul. - enabled: false - -# Control whether a test Pod manifest is generated when running helm template. -# When using helm install, the test Pod is not submitted to the cluster so this -# is only useful when running helm template. -tests: - enabled: true - diff --git a/_sys/coredns-1.26-x.yaml b/_sys/coredns-1.26-x.yaml deleted file mode 100644 index 040a845..0000000 --- a/_sys/coredns-1.26-x.yaml +++ /dev/null @@ -1,122 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: coredns - namespace: kube-system - uid: 7bf78c83-68ac-4dee-95f6-52964e38e2d3 - resourceVersion: '441765420' - generation: 37 - creationTimestamp: '2021-01-20T14:55:14Z' - labels: - k8s-app: kube-dns - annotations: - deployment.kubernetes.io/revision: '34' -spec: - replicas: 2 - selector: - matchLabels: - k8s-app: kube-dns - template: - metadata: - creationTimestamp: null - labels: - k8s-app: kube-dns - spec: - volumes: - - name: config-volume - configMap: - name: coredns - items: - - key: Corefile - path: Corefile - defaultMode: 420 - containers: - - name: coredns - image: registry.k8s.io/coredns/coredns:v1.9.3 - args: - - '-conf' - - /etc/coredns/Corefile - ports: - - name: dns - containerPort: 53 - protocol: UDP - - name: dns-tcp - containerPort: 53 - protocol: TCP - - name: metrics - containerPort: 9153 - protocol: TCP - resources: - limits: - memory: 170Mi - requests: - cpu: 100m - memory: 70Mi - volumeMounts: - - name: config-volume - readOnly: true - mountPath: /etc/coredns - livenessProbe: - httpGet: - path: /health - port: 8080 - scheme: HTTP - initialDelaySeconds: 60 - timeoutSeconds: 5 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 5 - readinessProbe: - httpGet: - path: /ready - port: 8181 - scheme: HTTP - timeoutSeconds: 1 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 3 - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - imagePullPolicy: IfNotPresent - securityContext: - capabilities: - add: - - NET_BIND_SERVICE - drop: - - all - readOnlyRootFilesystem: true - allowPrivilegeEscalation: false - restartPolicy: Always - terminationGracePeriodSeconds: 30 - dnsPolicy: Default - nodeSelector: - kubernetes.io/os: linux - serviceAccountName: coredns - serviceAccount: coredns - securityContext: {} - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - weight: 100 - podAffinityTerm: - labelSelector: - matchExpressions: - - key: k8s-app - operator: In - values: - - kube-dns - topologyKey: kubernetes.io/hostname - schedulerName: default-scheduler - tolerations: - - key: CriticalAddonsOnly - operator: Exists - - key: node-role.kubernetes.io/control-plane - effect: NoSchedule - priorityClassName: system-cluster-critical - strategy: - type: RollingUpdate - rollingUpdate: - maxUnavailable: 1 - maxSurge: 25% - revisionHistoryLimit: 10 - progressDeadlineSeconds: 600 diff --git a/_sys/coredns-deployment.yaml b/_sys/coredns-deployment.yaml deleted file mode 100644 index e095dad..0000000 --- a/_sys/coredns-deployment.yaml +++ /dev/null @@ -1,202 +0,0 @@ -kind: ConfigMap -metadata: - name: coredns - namespace: kube-system -apiVersion: v1 -data: - Corefile: | - .:53 { - errors - health { - lameduck 5s - } - ready - kubernetes cluster.local in-addr.arpa ip6.arpa { - pods insecure - fallthrough in-addr.arpa ip6.arpa - ttl 30 - } - file /etc/coredns/lan.db lan - prometheus :9153 - forward . /etc/resolv.conf { - max_concurrent 1000 - } - cache 30 - loop - reload - loadbalance - } - lan.db: | - ;lan. zone file - $ORIGIN lan. - @ 600 IN SOA sns.dns.icann.org. noc.dns.icann.org. 2022032201 7200 600 1209600 600 - 3600 IN NS 172.23.255.252 - ns IN A 172.23.255.252 - salt IN A 192.168.10.2 - mqtt IN A 172.16.23.1 - www-proxy IN A 172.23.255.1 - git IN A 172.23.255.2 - postgresql IN A 172.23.255.4 - mariadb IN A 172.23.255.5 - redis IN A 172.23.255.6 - pihole IN A 172.23.255.253 - adm IN CNAME adm01.wks. - - prometheus IN CNAME www-proxy - alertmanager IN CNAME www-proxy - stats IN CNAME www-proxy - cr-ui IN CNAME www-proxy - apt IN CNAME www-proxy - apt-cache IN CNAME www-proxy - nodered IN CNAME www-proxy - foto IN CNAME www-proxy - musik IN CNAME www-proxy - hassio IN CNAME www-proxy - hassio-conf IN CNAME www-proxy - git-ui IN CNAME www-proxy - grav IN CNAME www-proxy - tekton IN CNAME www-proxy - nc IN CNAME www-proxy - dolibarr IN CNAME www-proxy - auth IN CNAME www-proxy - public.auth IN CNAME www-proxy - secure.auth IN CNAME www-proxy - docker-registry IN CNAME adm - cr IN CNAME adm - dr-mirror IN CNAME adm - log IN CNAME adm ---- -apiVersion: v1 -kind: Service -metadata: - name: dns-ext - namespace: kube-system -spec: - ports: - - name: dns-udp - protocol: UDP - port: 53 - targetPort: 53 - selector: - k8s-app: kube-dns - type: LoadBalancer - loadBalancerIP: 172.23.255.252 ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: coredns - labels: - k8s-app: kube-dns -spec: - progressDeadlineSeconds: 600 - replicas: 2 - revisionHistoryLimit: 10 - selector: - matchLabels: - k8s-app: kube-dns - strategy: - rollingUpdate: - maxSurge: 25% - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - labels: - k8s-app: kube-dns - spec: - containers: - - args: - - -conf - - /etc/coredns/Corefile - image: registry.k8s.io/coredns/coredns:v1.9.3 - imagePullPolicy: IfNotPresent - livenessProbe: - failureThreshold: 5 - httpGet: - path: /health - port: 8080 - scheme: HTTP - initialDelaySeconds: 60 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 5 - name: coredns - ports: - - containerPort: 53 - name: dns - protocol: UDP - - containerPort: 53 - name: dns-tcp - protocol: TCP - - containerPort: 9153 - name: metrics - protocol: TCP - livenessProbe: - httpGet: - path: /health - port: 8080 - scheme: HTTP - initialDelaySeconds: 60 - timeoutSeconds: 5 - periodSeconds: 10 - successThreshold: 1 - failureThreshold: 5 - readinessProbe: - failureThreshold: 3 - httpGet: - path: /ready - port: 8181 - scheme: HTTP - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 1 - resources: - limits: - memory: 170Mi - requests: - cpu: 100m - memory: 70Mi - securityContext: - allowPrivilegeEscalation: false - capabilities: - add: - - NET_BIND_SERVICE - drop: - - all - readOnlyRootFilesystem: true - allowPrivilegeEscalation: false - terminationMessagePath: /dev/termination-log - terminationMessagePolicy: File - volumeMounts: - - mountPath: /etc/coredns - name: config-volume - readOnly: true - dnsPolicy: Default - nodeSelector: - kubernetes.io/os: linux - priorityClassName: system-cluster-critical - restartPolicy: Always - schedulerName: default-scheduler - securityContext: {} - serviceAccount: coredns - serviceAccountName: coredns - terminationGracePeriodSeconds: 30 - tolerations: - - key: CriticalAddonsOnly - operator: Exists - - effect: NoSchedule - key: node-role.kubernetes.io/master - - effect: NoSchedule - key: node-role.kubernetes.io/control-plane - volumes: - - configMap: - defaultMode: 420 - items: - - key: Corefile - path: Corefile - - key: lan.db - path: lan.db - name: coredns - name: config-volume - \ No newline at end of file diff --git a/_sys/descheduler-cronjob.yaml b/_sys/descheduler-cronjob.yaml deleted file mode 100644 index 3109d81..0000000 --- a/_sys/descheduler-cronjob.yaml +++ /dev/null @@ -1,47 +0,0 @@ ---- -apiVersion: batch/v1 -kind: CronJob -metadata: - name: descheduler-cronjob - namespace: kube-system -spec: - schedule: "*/50 * * * *" - concurrencyPolicy: "Forbid" - jobTemplate: - spec: - template: - metadata: - name: descheduler-pod - spec: - priorityClassName: system-cluster-critical - containers: - - name: descheduler - image: k8s.gcr.io/descheduler/descheduler:v0.25.0 - volumeMounts: - - mountPath: /policy-dir - name: policy-volume - command: - - "/bin/descheduler" - args: - - "--policy-config-file" - - "/policy-dir/policy.yaml" - - "--v" - - "3" - resources: - requests: - cpu: "500m" - memory: "256Mi" - securityContext: - allowPrivilegeEscalation: false - capabilities: - drop: - - ALL - privileged: false - readOnlyRootFilesystem: true - runAsNonRoot: false - restartPolicy: "Never" - serviceAccountName: descheduler-sa - volumes: - - name: policy-volume - configMap: - name: descheduler-policy-configmap diff --git a/_sys/descheduler-policy-configmap.yaml b/_sys/descheduler-policy-configmap.yaml deleted file mode 100644 index 8f6b542..0000000 --- a/_sys/descheduler-policy-configmap.yaml +++ /dev/null @@ -1,34 +0,0 @@ -kind: ConfigMap -apiVersion: v1 -metadata: - name: descheduler-policy-configmap - namespace: kube-system -data: - policy.yaml: | - apiVersion: "descheduler/v1alpha1" - kind: "DeschedulerPolicy" - maxNoOfPodsToEvictPerNode: 1 - strategies: - "RemoveDuplicates": - enabled: true - "RemovePodsViolatingInterPodAntiAffinity": - enabled: true - "LowNodeUtilization": - enabled: true - params: - nodeResourceUtilizationThresholds: - thresholds: - "cpu": 20 - "memory": 40 - "pods": 20 - targetThresholds: - "cpu": 50 - "memory": 60 - "pods": 20 - #nodeFit: true - "RemovePodsViolatingTopologySpreadConstraint": - enabled: true - params: - includeSoftConstraints: false - - diff --git a/_sys/ingress-nginx-configmap.yaml b/_sys/ingress-nginx-configmap.yaml deleted file mode 100644 index 56897de..0000000 --- a/_sys/ingress-nginx-configmap.yaml +++ /dev/null @@ -1,10 +0,0 @@ -kind: ConfigMap -apiVersion: v1 -metadata: - name: nginx-config - #namespace: nginx-ingress - namespace: default -data: - proxy-connect-timeout: "10s" - proxy-read-timeout: "10s" - client-max-body-size: "0" diff --git a/_sys/kube-flannel.yml b/_sys/kube-flannel.yml deleted file mode 100644 index f7a061e..0000000 --- a/_sys/kube-flannel.yml +++ /dev/null @@ -1,205 +0,0 @@ ---- -kind: Namespace -apiVersion: v1 -metadata: - name: kube-flannel - labels: - pod-security.kubernetes.io/enforce: privileged ---- -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: flannel -rules: -- apiGroups: - - "" - resources: - - pods - verbs: - - get -- apiGroups: - - "" - resources: - - nodes - verbs: - - get - - list - - watch -- apiGroups: - - "" - resources: - - nodes/status - verbs: - - patch ---- -kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: flannel -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: flannel -subjects: -- kind: ServiceAccount - name: flannel - namespace: kube-flannel ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - name: flannel - namespace: kube-flannel ---- -kind: ConfigMap -apiVersion: v1 -metadata: - name: kube-flannel-cfg - namespace: kube-flannel - labels: - tier: node - app: flannel -data: - cni-conf.json: | - { - "name": "cbr0", - "cniVersion": "0.3.1", - "plugins": [ - { - "type": "flannel", - "delegate": { - "hairpinMode": true, - "isDefaultGateway": true - } - }, - { - "type": "portmap", - "capabilities": { - "portMappings": true - } - } - ] - } - net-conf.json: | - { - "Network": "172.23.0.0/16", - "Backend": { - "Type": "vxlan" - } - } ---- -apiVersion: apps/v1 -kind: DaemonSet -metadata: - name: kube-flannel-ds - namespace: kube-flannel - labels: - tier: node - app: flannel -spec: - selector: - matchLabels: - app: flannel - template: - metadata: - labels: - tier: node - app: flannel - spec: - affinity: - nodeAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - nodeSelectorTerms: - - matchExpressions: - - key: kubernetes.io/os - operator: In - values: - - linux - hostNetwork: true - priorityClassName: system-node-critical - tolerations: - - operator: Exists - effect: NoSchedule - serviceAccountName: flannel - initContainers: - - name: install-cni-plugin - #image: flannelcni/flannel-cni-plugin:v1.1.0 for ppc64le and mips64le (dockerhub limitations may apply) - image: docker.io/rancher/mirrored-flannelcni-flannel-cni-plugin:v1.1.0 - command: - - cp - args: - - -f - - /flannel - - /opt/cni/bin/flannel - volumeMounts: - - name: cni-plugin - mountPath: /opt/cni/bin - - name: install-cni - #image: flannelcni/flannel:v0.20.2 for ppc64le and mips64le (dockerhub limitations may apply) - image: docker.io/rancher/mirrored-flannelcni-flannel:v0.20.2 - command: - - cp - args: - - -f - - /etc/kube-flannel/cni-conf.json - - /etc/cni/net.d/10-flannel.conflist - volumeMounts: - - name: cni - mountPath: /etc/cni/net.d - - name: flannel-cfg - mountPath: /etc/kube-flannel/ - containers: - - name: kube-flannel - #image: flannelcni/flannel:v0.20.2 for ppc64le and mips64le (dockerhub limitations may apply) - image: docker.io/rancher/mirrored-flannelcni-flannel:v0.20.2 - command: - - /opt/bin/flanneld - args: - - --ip-masq - - --kube-subnet-mgr - resources: - requests: - cpu: "100m" - memory: "50Mi" - limits: - cpu: "100m" - memory: "50Mi" - securityContext: - privileged: false - capabilities: - add: ["NET_ADMIN", "NET_RAW"] - env: - - name: POD_NAME - valueFrom: - fieldRef: - fieldPath: metadata.name - - name: POD_NAMESPACE - valueFrom: - fieldRef: - fieldPath: metadata.namespace - - name: EVENT_QUEUE_DEPTH - value: "5000" - volumeMounts: - - name: run - mountPath: /run/flannel - - name: flannel-cfg - mountPath: /etc/kube-flannel/ - - name: xtables-lock - mountPath: /run/xtables.lock - volumes: - - name: run - hostPath: - path: /run/flannel - - name: cni-plugin - hostPath: - path: /opt/cni/bin - - name: cni - hostPath: - path: /etc/cni/net.d - - name: flannel-cfg - configMap: - name: kube-flannel-cfg - - name: xtables-lock - hostPath: - path: /run/xtables.lock - type: FileOrCreate diff --git a/_sys/loki-persistent-volume.yaml b/_sys/loki-persistent-volume.yaml deleted file mode 100644 index 7cdbebb..0000000 --- a/_sys/loki-persistent-volume.yaml +++ /dev/null @@ -1,21 +0,0 @@ ---- -apiVersion: v1 -kind: PersistentVolume -metadata: - name: loki-data -spec: - storageClassName: "nfs-ssd-ebin02" - nfs: - path: /data/raid1-ssd/k8s-data/loki-data - server: ebin02 - capacity: - storage: 10Gi - accessModes: - - ReadWriteOnce - volumeMode: Filesystem - persistentVolumeReclaimPolicy: Retain - claimRef: - kind: PersistentVolumeClaim - name: storage-loki-0 - namespace: monitoring - diff --git a/_sys/metallb-address-pool.yaml b/_sys/metallb-address-pool.yaml deleted file mode 100644 index ad99ef0..0000000 --- a/_sys/metallb-address-pool.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - namespace: metallb-system - name: config -data: - config: | - address-pools: - - name: default - protocol: layer2 - addresses: - - 172.23.255.1-172.23.255.254 diff --git a/_sys/metallb.yaml b/_sys/metallb.yaml deleted file mode 100644 index ad99ef0..0000000 --- a/_sys/metallb.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - namespace: metallb-system - name: config -data: - config: | - address-pools: - - name: default - protocol: layer2 - addresses: - - 172.23.255.1-172.23.255.254 diff --git a/_sys/minio-openwrt-secret.yaml b/_sys/minio-openwrt-secret.yaml deleted file mode 100644 index 57747a8..0000000 --- a/_sys/minio-openwrt-secret.yaml +++ /dev/null @@ -1,9 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - name: minio-openwrt -type: Opaque -data: - username: b3BlbndydAo= - password: ZUZWbmVnOEkwOE1zRTN0Q2VCRFB4c011OU0yVjJGdnkK - endpoint: aHR0cHM6Ly9taW5pby5saXZlLWluZnJhLnN2Yy5jbHVzdGVyLmxvY2FsOjk0NDMK \ No newline at end of file diff --git a/_sys/nfs-provisioners/class.yaml b/_sys/nfs-provisioners/class.yaml deleted file mode 100644 index 6c9cfd1..0000000 --- a/_sys/nfs-provisioners/class.yaml +++ /dev/null @@ -1,36 +0,0 @@ ---- -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - name: nfs-ssd -provisioner: nfs-ssd # or choose another name, must match deployment's env PROVISIONER_NAME' -parameters: - archiveOnDelete: "false" -reclaimPolicy: Retain ---- -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - name: nfs-ssd-ebin01 -provisioner: nfs-ssd-ebin01 # or choose another name, must match deployment's env PROVISIONER_NAME' -parameters: - archiveOnDelete: "false" -reclaimPolicy: Retain ---- -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - name: nfs-hdd-ebin01 -provisioner: nfs-hdd-ebin01 # or choose another name, must match deployment's env PROVISIONER_NAME' -parameters: - archiveOnDelete: "false" -reclaimPolicy: Retain ---- -apiVersion: storage.k8s.io/v1 -kind: StorageClass -metadata: - name: nfs-ssd-ebin02 -provisioner: nfs-ssd-ebin02 # or choose another name, must match deployment's env PROVISIONER_NAME' -parameters: - archiveOnDelete: "false" -reclaimPolicy: Retain diff --git a/_sys/nfs-provisioners/deployment_nfs-hdd-ebin01.yaml b/_sys/nfs-provisioners/deployment_nfs-hdd-ebin01.yaml deleted file mode 100644 index aea9f58..0000000 --- a/_sys/nfs-provisioners/deployment_nfs-hdd-ebin01.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: nfs-hdd-ebin01 - namespace: live-infra - labels: - app: nfs-hdd-ebin01 - service: nfs -spec: - replicas: 1 - strategy: - type: Recreate - selector: - matchLabels: - app: nfs-hdd-ebin01 - template: - metadata: - labels: - app: nfs-hdd-ebin01 - spec: - serviceAccountName: nfs-client-provisioner - containers: - - name: nfs-hdd-ebin01 - image: k8s.gcr.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2 - volumeMounts: - - name: nfs-client-root - mountPath: /persistentvolumes - env: - - name: PROVISIONER_NAME - value: nfs-hdd-ebin01 - - name: NFS_SERVER - value: ebin01 - - name: NFS_PATH - value: /data/k8s-data-hdd - affinity: - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: service - operator: In - values: - - nfs - topologyKey: kubernetes.io/hostname - volumes: - - name: nfs-client-root - nfs: - server: ebin01 - path: /data/k8s-data-hdd diff --git a/_sys/nfs-provisioners/deployment_nfs-ssd-ebin01.yaml b/_sys/nfs-provisioners/deployment_nfs-ssd-ebin01.yaml deleted file mode 100644 index ca1a487..0000000 --- a/_sys/nfs-provisioners/deployment_nfs-ssd-ebin01.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: nfs-ssd-ebin01 - namespace: live-infra - labels: - app: nfs-ssd-ebin01 - service: nfs -spec: - replicas: 1 - strategy: - type: Recreate - selector: - matchLabels: - app: nfs-ssd-ebin01 - template: - metadata: - labels: - app: nfs-ssd-ebin01 - spec: - serviceAccountName: nfs-client-provisioner - containers: - - name: nfs-ssd-ebin01 - image: k8s.gcr.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2 - volumeMounts: - - name: nfs-client-root - mountPath: /persistentvolumes - env: - - name: PROVISIONER_NAME - value: nfs-ssd-ebin01 - - name: NFS_SERVER - value: ebin01 - - name: NFS_PATH - value: /data/raid1-ssd/k8s-data - affinity: - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: service - operator: In - values: - - nfs - topologyKey: kubernetes.io/hostname - volumes: - - name: nfs-client-root - nfs: - server: ebin01 - path: /data/raid1-ssd/k8s-data diff --git a/_sys/nfs-provisioners/deployment_nfs-ssd-ebin02.yaml b/_sys/nfs-provisioners/deployment_nfs-ssd-ebin02.yaml deleted file mode 100644 index 9be109d..0000000 --- a/_sys/nfs-provisioners/deployment_nfs-ssd-ebin02.yaml +++ /dev/null @@ -1,49 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: nfs-ssd-ebin02 - namespace: live-infra - labels: - app: nfs-ssd-ebin02 - service: nfs -spec: - replicas: 1 - strategy: - type: Recreate - selector: - matchLabels: - app: nfs-ssd-ebin02 - template: - metadata: - labels: - app: nfs-ssd-ebin02 - spec: - serviceAccountName: nfs-client-provisioner - containers: - - name: nfs-ssd-ebin02 - image: k8s.gcr.io/sig-storage/nfs-subdir-external-provisioner:v4.0.2 - volumeMounts: - - name: nfs-client-root - mountPath: /persistentvolumes - env: - - name: PROVISIONER_NAME - value: nfs-ssd-ebin02 - - name: NFS_SERVER - value: ebin02 - - name: NFS_PATH - value: /data/raid1-ssd/k8s-data - affinity: - podAntiAffinity: - requiredDuringSchedulingIgnoredDuringExecution: - - labelSelector: - matchExpressions: - - key: service - operator: In - values: - - nfs - topologyKey: kubernetes.io/hostname - volumes: - - name: nfs-client-root - nfs: - server: ebin02 - path: /data/raid1-ssd/k8s-data diff --git a/_sys/nfs-provisioners/rbac.yaml b/_sys/nfs-provisioners/rbac.yaml deleted file mode 100644 index 96324f4..0000000 --- a/_sys/nfs-provisioners/rbac.yaml +++ /dev/null @@ -1,65 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: nfs-client-provisioner - # replace with namespace where provisioner is deployed - namespace: live-infra ---- -kind: ClusterRole -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: nfs-client-provisioner-runner -rules: - - apiGroups: [""] - resources: ["persistentvolumes"] - verbs: ["get", "list", "watch", "create", "delete"] - - apiGroups: [""] - resources: ["persistentvolumeclaims"] - verbs: ["get", "list", "watch", "update"] - - apiGroups: ["storage.k8s.io"] - resources: ["storageclasses"] - verbs: ["get", "list", "watch"] - - apiGroups: [""] - resources: ["events"] - verbs: ["create", "update", "patch"] ---- -kind: ClusterRoleBinding -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: run-nfs-client-provisioner -subjects: - - kind: ServiceAccount - name: nfs-client-provisioner - # replace with namespace where provisioner is deployed - namespace: live-infra -roleRef: - kind: ClusterRole - name: nfs-client-provisioner-runner - apiGroup: rbac.authorization.k8s.io ---- -kind: Role -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: leader-locking-nfs-client-provisioner - # replace with namespace where provisioner is deployed - namespace: live-infra -rules: - - apiGroups: [""] - resources: ["endpoints"] - verbs: ["get", "list", "watch", "create", "update", "patch"] ---- -kind: RoleBinding -apiVersion: rbac.authorization.k8s.io/v1 -metadata: - name: leader-locking-nfs-client-provisioner - # replace with namespace where provisioner is deployed - namespace: live-infra -subjects: - - kind: ServiceAccount - name: nfs-client-provisioner - # replace with namespace where provisioner is deployed - namespace: live-infra -roleRef: - kind: Role - name: leader-locking-nfs-client-provisioner - apiGroup: rbac.authorization.k8s.io diff --git a/_sys/setup/namespaces.yaml b/_sys/setup/namespaces.yaml deleted file mode 100644 index 65bba02..0000000 --- a/_sys/setup/namespaces.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: live-env ---- -apiVersion: v1 -kind: Namespace -metadata: - name: test-env ---- -apiVersion: v1 -kind: Namespace -metadata: - name: live-infra ---- -apiVersion: v1 -kind: Namespace -metadata: - name: test-infra \ No newline at end of file diff --git a/apps/argocd/README.md b/apps/argocd/README.md deleted file mode 100644 index e375560..0000000 --- a/apps/argocd/README.md +++ /dev/null @@ -1,7 +0,0 @@ -FROM: https://tanzu.vmware.com/developer/guides/ci-cd/argocd-gs/ - -# kubectl apply -f namespace.yaml -# -kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml- -# kubectl apply -n argocd -f install.yaml (needs changes for ARM builds) -# kubectl apply -n argocd -f ingress.yaml - diff --git a/apps/argocd/ingress.yaml b/apps/argocd/ingress.yaml deleted file mode 100644 index 7b18455..0000000 --- a/apps/argocd/ingress.yaml +++ /dev/null @@ -1,18 +0,0 @@ -#https://argoproj.github.io/argo-cd/operator-manual/ingress/#kubernetesingress-nginx -apiVersion: extensions/v1beta1 -kind: Ingress -metadata: - name: argocd-server - namespace: argocd - annotations: - kubernetes.io/ingress.class: nginx - nginx.ingress.kubernetes.io/force-ssl-redirect: "true" - nginx.ingress.kubernetes.io/ssl-passthrough: "true" -spec: - rules: - - host: argocd.lan - http: - paths: - - backend: - serviceName: argocd-server - servicePort: https \ No newline at end of file diff --git a/apps/argocd/install.yaml b/apps/argocd/install.yaml deleted file mode 100644 index 7441fb2..0000000 --- a/apps/argocd/install.yaml +++ /dev/null @@ -1,2726 +0,0 @@ -# This is an auto-generated file. DO NOT EDIT -apiVersion: apiextensions.k8s.io/v1beta1 -kind: CustomResourceDefinition -metadata: - labels: - app.kubernetes.io/name: applications.argoproj.io - app.kubernetes.io/part-of: argocd - name: applications.argoproj.io -spec: - additionalPrinterColumns: - - JSONPath: .status.sync.status - name: Sync Status - type: string - - JSONPath: .status.health.status - name: Health Status - type: string - - JSONPath: .status.sync.revision - name: Revision - priority: 10 - type: string - group: argoproj.io - names: - kind: Application - listKind: ApplicationList - plural: applications - shortNames: - - app - - apps - singular: application - scope: Namespaced - subresources: {} - validation: - openAPIV3Schema: - description: Application is a definition of Application resource. - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - operation: - description: Operation contains requested operation parameters. - properties: - info: - items: - properties: - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - initiatedBy: - description: OperationInitiator holds information about the operation initiator - properties: - automated: - description: Automated is set to true if operation was initiated automatically by the application controller. - type: boolean - username: - description: Name of a user who started operation. - type: string - type: object - retry: - description: Retry controls failed sync retry behavior - properties: - backoff: - description: Backoff is a backoff strategy - properties: - duration: - description: Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h") - type: string - factor: - description: Factor is a factor to multiply the base duration after each failed retry - format: int64 - type: integer - maxDuration: - description: MaxDuration is the maximum amount of time allowed for the backoff strategy - type: string - type: object - limit: - description: Limit is the maximum number of attempts when retrying a container - format: int64 - type: integer - type: object - sync: - description: SyncOperation contains sync operation details. - properties: - dryRun: - description: DryRun will perform a `kubectl apply --dry-run` without actually performing the sync - type: boolean - manifests: - description: Manifests is an optional field that overrides sync source with a local directory for development - items: - type: string - type: array - prune: - description: Prune deletes resources that are no longer tracked in git - type: boolean - resources: - description: Resources describes which resources to sync - items: - description: SyncOperationResource contains resources to sync. - properties: - group: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - required: - - kind - - name - type: object - type: array - revision: - description: Revision is the revision in which to sync the application to. If omitted, will use the revision specified in app spec. - type: string - source: - description: Source overrides the source definition set in the application. This is typically set in a Rollback operation and nil during a Sync operation - properties: - chart: - description: Chart is a Helm chart name - type: string - directory: - description: Directory holds path/directory specific options - properties: - exclude: - type: string - jsonnet: - description: ApplicationSourceJsonnet holds jsonnet specific options - properties: - extVars: - description: ExtVars is a list of Jsonnet External Variables - items: - description: JsonnetVar is a jsonnet variable - properties: - code: - type: boolean - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - libs: - description: Additional library search dirs - items: - type: string - type: array - tlas: - description: TLAS is a list of Jsonnet Top-level Arguments - items: - description: JsonnetVar is a jsonnet variable - properties: - code: - type: boolean - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - type: object - recurse: - type: boolean - type: object - helm: - description: Helm holds helm specific options - properties: - fileParameters: - description: FileParameters are file parameters to the helm template - items: - description: HelmFileParameter is a file parameter to a helm template - properties: - name: - description: Name is the name of the helm parameter - type: string - path: - description: Path is the path value for the helm parameter - type: string - type: object - type: array - parameters: - description: Parameters are parameters to the helm template - items: - description: HelmParameter is a parameter to a helm template - properties: - forceString: - description: ForceString determines whether to tell Helm to interpret booleans and numbers as strings - type: boolean - name: - description: Name is the name of the helm parameter - type: string - value: - description: Value is the value for the helm parameter - type: string - type: object - type: array - releaseName: - description: The Helm release name. If omitted it will use the application name - type: string - valueFiles: - description: ValuesFiles is a list of Helm value files to use when generating a template - items: - type: string - type: array - values: - description: Values is Helm values, typically defined as a block - type: string - version: - description: Version is the Helm version to use for templating with - type: string - type: object - ksonnet: - description: Ksonnet holds ksonnet specific options - properties: - environment: - description: Environment is a ksonnet application environment name - type: string - parameters: - description: Parameters are a list of ksonnet component parameter override values - items: - description: KsonnetParameter is a ksonnet component parameter - properties: - component: - type: string - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - type: object - kustomize: - description: Kustomize holds kustomize specific options - properties: - commonAnnotations: - additionalProperties: - type: string - description: CommonAnnotations adds additional kustomize commonAnnotations - type: object - commonLabels: - additionalProperties: - type: string - description: CommonLabels adds additional kustomize commonLabels - type: object - images: - description: Images are kustomize image overrides - items: - type: string - type: array - namePrefix: - description: NamePrefix is a prefix appended to resources for kustomize apps - type: string - nameSuffix: - description: NameSuffix is a suffix appended to resources for kustomize apps - type: string - version: - description: Version contains optional Kustomize version - type: string - type: object - path: - description: Path is a directory path within the Git repository - type: string - plugin: - description: ConfigManagementPlugin holds config management plugin specific options - properties: - env: - items: - properties: - name: - description: the name, usually uppercase - type: string - value: - description: the value - type: string - required: - - name - - value - type: object - type: array - name: - type: string - type: object - repoURL: - description: RepoURL is the repository URL of the application manifests - type: string - targetRevision: - description: TargetRevision defines the commit, tag, or branch in which to sync the application to. If omitted, will sync to HEAD - type: string - required: - - repoURL - type: object - syncOptions: - description: SyncOptions provide per-sync sync-options, e.g. Validate=false - items: - type: string - type: array - syncStrategy: - description: SyncStrategy describes how to perform the sync - properties: - apply: - description: Apply will perform a `kubectl apply` to perform the sync. - properties: - force: - description: Force indicates whether or not to supply the --force flag to `kubectl apply`. The --force flag deletes and re-create the resource, when PATCH encounters conflict and has retried for 5 times. - type: boolean - type: object - hook: - description: Hook will submit any referenced resources to perform the sync. This is the default strategy - properties: - force: - description: Force indicates whether or not to supply the --force flag to `kubectl apply`. The --force flag deletes and re-create the resource, when PATCH encounters conflict and has retried for 5 times. - type: boolean - type: object - type: object - type: object - type: object - spec: - description: ApplicationSpec represents desired application state. Contains link to repository with application definition and additional parameters link definition revision. - properties: - destination: - description: Destination overrides the kubernetes server and namespace defined in the environment ksonnet app.yaml - properties: - name: - description: Name of the destination cluster which can be used instead of server (url) field - type: string - namespace: - description: Namespace overrides the environment namespace value in the ksonnet app.yaml - type: string - server: - description: Server overrides the environment server value in the ksonnet app.yaml - type: string - type: object - ignoreDifferences: - description: IgnoreDifferences controls resources fields which should be ignored during comparison - items: - description: ResourceIgnoreDifferences contains resource filter and list of json paths which should be ignored during comparison with live state. - properties: - group: - type: string - jsonPointers: - items: - type: string - type: array - kind: - type: string - name: - type: string - namespace: - type: string - required: - - jsonPointers - - kind - type: object - type: array - info: - description: Infos contains a list of useful information (URLs, email addresses, and plain text) that relates to the application - items: - properties: - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - project: - description: Project is a application project name. Empty name means that application belongs to 'default' project. - type: string - revisionHistoryLimit: - description: This limits this number of items kept in the apps revision history. This should only be changed in exceptional circumstances. Setting to zero will store no history. This will reduce storage used. Increasing will increase the space used to store the history, so we do not recommend increasing it. Default is 10. - format: int64 - type: integer - source: - description: Source is a reference to the location ksonnet application definition - properties: - chart: - description: Chart is a Helm chart name - type: string - directory: - description: Directory holds path/directory specific options - properties: - exclude: - type: string - jsonnet: - description: ApplicationSourceJsonnet holds jsonnet specific options - properties: - extVars: - description: ExtVars is a list of Jsonnet External Variables - items: - description: JsonnetVar is a jsonnet variable - properties: - code: - type: boolean - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - libs: - description: Additional library search dirs - items: - type: string - type: array - tlas: - description: TLAS is a list of Jsonnet Top-level Arguments - items: - description: JsonnetVar is a jsonnet variable - properties: - code: - type: boolean - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - type: object - recurse: - type: boolean - type: object - helm: - description: Helm holds helm specific options - properties: - fileParameters: - description: FileParameters are file parameters to the helm template - items: - description: HelmFileParameter is a file parameter to a helm template - properties: - name: - description: Name is the name of the helm parameter - type: string - path: - description: Path is the path value for the helm parameter - type: string - type: object - type: array - parameters: - description: Parameters are parameters to the helm template - items: - description: HelmParameter is a parameter to a helm template - properties: - forceString: - description: ForceString determines whether to tell Helm to interpret booleans and numbers as strings - type: boolean - name: - description: Name is the name of the helm parameter - type: string - value: - description: Value is the value for the helm parameter - type: string - type: object - type: array - releaseName: - description: The Helm release name. If omitted it will use the application name - type: string - valueFiles: - description: ValuesFiles is a list of Helm value files to use when generating a template - items: - type: string - type: array - values: - description: Values is Helm values, typically defined as a block - type: string - version: - description: Version is the Helm version to use for templating with - type: string - type: object - ksonnet: - description: Ksonnet holds ksonnet specific options - properties: - environment: - description: Environment is a ksonnet application environment name - type: string - parameters: - description: Parameters are a list of ksonnet component parameter override values - items: - description: KsonnetParameter is a ksonnet component parameter - properties: - component: - type: string - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - type: object - kustomize: - description: Kustomize holds kustomize specific options - properties: - commonAnnotations: - additionalProperties: - type: string - description: CommonAnnotations adds additional kustomize commonAnnotations - type: object - commonLabels: - additionalProperties: - type: string - description: CommonLabels adds additional kustomize commonLabels - type: object - images: - description: Images are kustomize image overrides - items: - type: string - type: array - namePrefix: - description: NamePrefix is a prefix appended to resources for kustomize apps - type: string - nameSuffix: - description: NameSuffix is a suffix appended to resources for kustomize apps - type: string - version: - description: Version contains optional Kustomize version - type: string - type: object - path: - description: Path is a directory path within the Git repository - type: string - plugin: - description: ConfigManagementPlugin holds config management plugin specific options - properties: - env: - items: - properties: - name: - description: the name, usually uppercase - type: string - value: - description: the value - type: string - required: - - name - - value - type: object - type: array - name: - type: string - type: object - repoURL: - description: RepoURL is the repository URL of the application manifests - type: string - targetRevision: - description: TargetRevision defines the commit, tag, or branch in which to sync the application to. If omitted, will sync to HEAD - type: string - required: - - repoURL - type: object - syncPolicy: - description: SyncPolicy controls when a sync will be performed - properties: - automated: - description: Automated will keep an application synced to the target revision - properties: - allowEmpty: - description: 'AllowEmpty allows apps have zero live resources (default: false)' - type: boolean - prune: - description: 'Prune will prune resources automatically as part of automated sync (default: false)' - type: boolean - selfHeal: - description: 'SelfHeal enables auto-syncing if (default: false)' - type: boolean - type: object - retry: - description: Retry controls failed sync retry behavior - properties: - backoff: - description: Backoff is a backoff strategy - properties: - duration: - description: Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h") - type: string - factor: - description: Factor is a factor to multiply the base duration after each failed retry - format: int64 - type: integer - maxDuration: - description: MaxDuration is the maximum amount of time allowed for the backoff strategy - type: string - type: object - limit: - description: Limit is the maximum number of attempts when retrying a container - format: int64 - type: integer - type: object - syncOptions: - description: Options allow you to specify whole app sync-options - items: - type: string - type: array - type: object - required: - - destination - - project - - source - type: object - status: - description: ApplicationStatus contains information about application sync, health status - properties: - conditions: - items: - description: ApplicationCondition contains details about current application condition - properties: - lastTransitionTime: - description: LastTransitionTime is the time the condition was first observed. - format: date-time - type: string - message: - description: Message contains human-readable message indicating details about condition - type: string - type: - description: Type is an application condition type - type: string - required: - - message - - type - type: object - type: array - health: - properties: - message: - type: string - status: - description: Represents resource health status - type: string - type: object - history: - description: RevisionHistories is a array of history, oldest first and newest last - items: - description: RevisionHistory contains information relevant to an application deployment - properties: - deployStartedAt: - description: DeployStartedAt holds the time the deployment started - format: date-time - type: string - deployedAt: - description: DeployedAt holds the time the deployment completed - format: date-time - type: string - id: - description: ID is an auto incrementing identifier of the RevisionHistory - format: int64 - type: integer - revision: - description: Revision holds the revision of the sync - type: string - source: - description: ApplicationSource contains information about github repository, path within repository and target application environment. - properties: - chart: - description: Chart is a Helm chart name - type: string - directory: - description: Directory holds path/directory specific options - properties: - exclude: - type: string - jsonnet: - description: ApplicationSourceJsonnet holds jsonnet specific options - properties: - extVars: - description: ExtVars is a list of Jsonnet External Variables - items: - description: JsonnetVar is a jsonnet variable - properties: - code: - type: boolean - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - libs: - description: Additional library search dirs - items: - type: string - type: array - tlas: - description: TLAS is a list of Jsonnet Top-level Arguments - items: - description: JsonnetVar is a jsonnet variable - properties: - code: - type: boolean - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - type: object - recurse: - type: boolean - type: object - helm: - description: Helm holds helm specific options - properties: - fileParameters: - description: FileParameters are file parameters to the helm template - items: - description: HelmFileParameter is a file parameter to a helm template - properties: - name: - description: Name is the name of the helm parameter - type: string - path: - description: Path is the path value for the helm parameter - type: string - type: object - type: array - parameters: - description: Parameters are parameters to the helm template - items: - description: HelmParameter is a parameter to a helm template - properties: - forceString: - description: ForceString determines whether to tell Helm to interpret booleans and numbers as strings - type: boolean - name: - description: Name is the name of the helm parameter - type: string - value: - description: Value is the value for the helm parameter - type: string - type: object - type: array - releaseName: - description: The Helm release name. If omitted it will use the application name - type: string - valueFiles: - description: ValuesFiles is a list of Helm value files to use when generating a template - items: - type: string - type: array - values: - description: Values is Helm values, typically defined as a block - type: string - version: - description: Version is the Helm version to use for templating with - type: string - type: object - ksonnet: - description: Ksonnet holds ksonnet specific options - properties: - environment: - description: Environment is a ksonnet application environment name - type: string - parameters: - description: Parameters are a list of ksonnet component parameter override values - items: - description: KsonnetParameter is a ksonnet component parameter - properties: - component: - type: string - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - type: object - kustomize: - description: Kustomize holds kustomize specific options - properties: - commonAnnotations: - additionalProperties: - type: string - description: CommonAnnotations adds additional kustomize commonAnnotations - type: object - commonLabels: - additionalProperties: - type: string - description: CommonLabels adds additional kustomize commonLabels - type: object - images: - description: Images are kustomize image overrides - items: - type: string - type: array - namePrefix: - description: NamePrefix is a prefix appended to resources for kustomize apps - type: string - nameSuffix: - description: NameSuffix is a suffix appended to resources for kustomize apps - type: string - version: - description: Version contains optional Kustomize version - type: string - type: object - path: - description: Path is a directory path within the Git repository - type: string - plugin: - description: ConfigManagementPlugin holds config management plugin specific options - properties: - env: - items: - properties: - name: - description: the name, usually uppercase - type: string - value: - description: the value - type: string - required: - - name - - value - type: object - type: array - name: - type: string - type: object - repoURL: - description: RepoURL is the repository URL of the application manifests - type: string - targetRevision: - description: TargetRevision defines the commit, tag, or branch in which to sync the application to. If omitted, will sync to HEAD - type: string - required: - - repoURL - type: object - required: - - deployedAt - - id - - revision - type: object - type: array - observedAt: - description: 'ObservedAt indicates when the application state was updated without querying latest git state Deprecated: controller no longer updates ObservedAt field' - format: date-time - type: string - operationState: - description: OperationState contains information about state of currently performing operation on application. - properties: - finishedAt: - description: FinishedAt contains time of operation completion - format: date-time - type: string - message: - description: Message hold any pertinent messages when attempting to perform operation (typically errors). - type: string - operation: - description: Operation is the original requested operation - properties: - info: - items: - properties: - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - initiatedBy: - description: OperationInitiator holds information about the operation initiator - properties: - automated: - description: Automated is set to true if operation was initiated automatically by the application controller. - type: boolean - username: - description: Name of a user who started operation. - type: string - type: object - retry: - description: Retry controls failed sync retry behavior - properties: - backoff: - description: Backoff is a backoff strategy - properties: - duration: - description: Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h") - type: string - factor: - description: Factor is a factor to multiply the base duration after each failed retry - format: int64 - type: integer - maxDuration: - description: MaxDuration is the maximum amount of time allowed for the backoff strategy - type: string - type: object - limit: - description: Limit is the maximum number of attempts when retrying a container - format: int64 - type: integer - type: object - sync: - description: SyncOperation contains sync operation details. - properties: - dryRun: - description: DryRun will perform a `kubectl apply --dry-run` without actually performing the sync - type: boolean - manifests: - description: Manifests is an optional field that overrides sync source with a local directory for development - items: - type: string - type: array - prune: - description: Prune deletes resources that are no longer tracked in git - type: boolean - resources: - description: Resources describes which resources to sync - items: - description: SyncOperationResource contains resources to sync. - properties: - group: - type: string - kind: - type: string - name: - type: string - namespace: - type: string - required: - - kind - - name - type: object - type: array - revision: - description: Revision is the revision in which to sync the application to. If omitted, will use the revision specified in app spec. - type: string - source: - description: Source overrides the source definition set in the application. This is typically set in a Rollback operation and nil during a Sync operation - properties: - chart: - description: Chart is a Helm chart name - type: string - directory: - description: Directory holds path/directory specific options - properties: - exclude: - type: string - jsonnet: - description: ApplicationSourceJsonnet holds jsonnet specific options - properties: - extVars: - description: ExtVars is a list of Jsonnet External Variables - items: - description: JsonnetVar is a jsonnet variable - properties: - code: - type: boolean - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - libs: - description: Additional library search dirs - items: - type: string - type: array - tlas: - description: TLAS is a list of Jsonnet Top-level Arguments - items: - description: JsonnetVar is a jsonnet variable - properties: - code: - type: boolean - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - type: object - recurse: - type: boolean - type: object - helm: - description: Helm holds helm specific options - properties: - fileParameters: - description: FileParameters are file parameters to the helm template - items: - description: HelmFileParameter is a file parameter to a helm template - properties: - name: - description: Name is the name of the helm parameter - type: string - path: - description: Path is the path value for the helm parameter - type: string - type: object - type: array - parameters: - description: Parameters are parameters to the helm template - items: - description: HelmParameter is a parameter to a helm template - properties: - forceString: - description: ForceString determines whether to tell Helm to interpret booleans and numbers as strings - type: boolean - name: - description: Name is the name of the helm parameter - type: string - value: - description: Value is the value for the helm parameter - type: string - type: object - type: array - releaseName: - description: The Helm release name. If omitted it will use the application name - type: string - valueFiles: - description: ValuesFiles is a list of Helm value files to use when generating a template - items: - type: string - type: array - values: - description: Values is Helm values, typically defined as a block - type: string - version: - description: Version is the Helm version to use for templating with - type: string - type: object - ksonnet: - description: Ksonnet holds ksonnet specific options - properties: - environment: - description: Environment is a ksonnet application environment name - type: string - parameters: - description: Parameters are a list of ksonnet component parameter override values - items: - description: KsonnetParameter is a ksonnet component parameter - properties: - component: - type: string - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - type: object - kustomize: - description: Kustomize holds kustomize specific options - properties: - commonAnnotations: - additionalProperties: - type: string - description: CommonAnnotations adds additional kustomize commonAnnotations - type: object - commonLabels: - additionalProperties: - type: string - description: CommonLabels adds additional kustomize commonLabels - type: object - images: - description: Images are kustomize image overrides - items: - type: string - type: array - namePrefix: - description: NamePrefix is a prefix appended to resources for kustomize apps - type: string - nameSuffix: - description: NameSuffix is a suffix appended to resources for kustomize apps - type: string - version: - description: Version contains optional Kustomize version - type: string - type: object - path: - description: Path is a directory path within the Git repository - type: string - plugin: - description: ConfigManagementPlugin holds config management plugin specific options - properties: - env: - items: - properties: - name: - description: the name, usually uppercase - type: string - value: - description: the value - type: string - required: - - name - - value - type: object - type: array - name: - type: string - type: object - repoURL: - description: RepoURL is the repository URL of the application manifests - type: string - targetRevision: - description: TargetRevision defines the commit, tag, or branch in which to sync the application to. If omitted, will sync to HEAD - type: string - required: - - repoURL - type: object - syncOptions: - description: SyncOptions provide per-sync sync-options, e.g. Validate=false - items: - type: string - type: array - syncStrategy: - description: SyncStrategy describes how to perform the sync - properties: - apply: - description: Apply will perform a `kubectl apply` to perform the sync. - properties: - force: - description: Force indicates whether or not to supply the --force flag to `kubectl apply`. The --force flag deletes and re-create the resource, when PATCH encounters conflict and has retried for 5 times. - type: boolean - type: object - hook: - description: Hook will submit any referenced resources to perform the sync. This is the default strategy - properties: - force: - description: Force indicates whether or not to supply the --force flag to `kubectl apply`. The --force flag deletes and re-create the resource, when PATCH encounters conflict and has retried for 5 times. - type: boolean - type: object - type: object - type: object - type: object - phase: - description: Phase is the current phase of the operation - type: string - retryCount: - description: RetryCount contains time of operation retries - format: int64 - type: integer - startedAt: - description: StartedAt contains time of operation start - format: date-time - type: string - syncResult: - description: SyncResult is the result of a Sync operation - properties: - resources: - description: Resources holds the sync result of each individual resource - items: - description: ResourceResult holds the operation result details of a specific resource - properties: - group: - type: string - hookPhase: - description: 'the state of any operation associated with this resource OR hook note: can contain values for non-hook resources' - type: string - hookType: - description: the type of the hook, empty for non-hook resources - type: string - kind: - type: string - message: - description: message for the last sync OR operation - type: string - name: - type: string - namespace: - type: string - status: - description: the final result of the sync, this is be empty if the resources is yet to be applied/pruned and is always zero-value for hooks - type: string - syncPhase: - description: indicates the particular phase of the sync that this is for - type: string - version: - type: string - required: - - group - - kind - - name - - namespace - - version - type: object - type: array - revision: - description: Revision holds the revision of the sync - type: string - source: - description: Source records the application source information of the sync, used for comparing auto-sync - properties: - chart: - description: Chart is a Helm chart name - type: string - directory: - description: Directory holds path/directory specific options - properties: - exclude: - type: string - jsonnet: - description: ApplicationSourceJsonnet holds jsonnet specific options - properties: - extVars: - description: ExtVars is a list of Jsonnet External Variables - items: - description: JsonnetVar is a jsonnet variable - properties: - code: - type: boolean - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - libs: - description: Additional library search dirs - items: - type: string - type: array - tlas: - description: TLAS is a list of Jsonnet Top-level Arguments - items: - description: JsonnetVar is a jsonnet variable - properties: - code: - type: boolean - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - type: object - recurse: - type: boolean - type: object - helm: - description: Helm holds helm specific options - properties: - fileParameters: - description: FileParameters are file parameters to the helm template - items: - description: HelmFileParameter is a file parameter to a helm template - properties: - name: - description: Name is the name of the helm parameter - type: string - path: - description: Path is the path value for the helm parameter - type: string - type: object - type: array - parameters: - description: Parameters are parameters to the helm template - items: - description: HelmParameter is a parameter to a helm template - properties: - forceString: - description: ForceString determines whether to tell Helm to interpret booleans and numbers as strings - type: boolean - name: - description: Name is the name of the helm parameter - type: string - value: - description: Value is the value for the helm parameter - type: string - type: object - type: array - releaseName: - description: The Helm release name. If omitted it will use the application name - type: string - valueFiles: - description: ValuesFiles is a list of Helm value files to use when generating a template - items: - type: string - type: array - values: - description: Values is Helm values, typically defined as a block - type: string - version: - description: Version is the Helm version to use for templating with - type: string - type: object - ksonnet: - description: Ksonnet holds ksonnet specific options - properties: - environment: - description: Environment is a ksonnet application environment name - type: string - parameters: - description: Parameters are a list of ksonnet component parameter override values - items: - description: KsonnetParameter is a ksonnet component parameter - properties: - component: - type: string - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - type: object - kustomize: - description: Kustomize holds kustomize specific options - properties: - commonAnnotations: - additionalProperties: - type: string - description: CommonAnnotations adds additional kustomize commonAnnotations - type: object - commonLabels: - additionalProperties: - type: string - description: CommonLabels adds additional kustomize commonLabels - type: object - images: - description: Images are kustomize image overrides - items: - type: string - type: array - namePrefix: - description: NamePrefix is a prefix appended to resources for kustomize apps - type: string - nameSuffix: - description: NameSuffix is a suffix appended to resources for kustomize apps - type: string - version: - description: Version contains optional Kustomize version - type: string - type: object - path: - description: Path is a directory path within the Git repository - type: string - plugin: - description: ConfigManagementPlugin holds config management plugin specific options - properties: - env: - items: - properties: - name: - description: the name, usually uppercase - type: string - value: - description: the value - type: string - required: - - name - - value - type: object - type: array - name: - type: string - type: object - repoURL: - description: RepoURL is the repository URL of the application manifests - type: string - targetRevision: - description: TargetRevision defines the commit, tag, or branch in which to sync the application to. If omitted, will sync to HEAD - type: string - required: - - repoURL - type: object - required: - - revision - type: object - required: - - operation - - phase - - startedAt - type: object - reconciledAt: - description: ReconciledAt indicates when the application state was reconciled using the latest git version - format: date-time - type: string - resources: - items: - description: ResourceStatus holds the current sync and health status of a resource - properties: - group: - type: string - health: - properties: - message: - type: string - status: - description: Represents resource health status - type: string - type: object - hook: - type: boolean - kind: - type: string - name: - type: string - namespace: - type: string - requiresPruning: - type: boolean - status: - description: SyncStatusCode is a type which represents possible comparison results - type: string - version: - type: string - type: object - type: array - sourceType: - type: string - summary: - properties: - externalURLs: - description: ExternalURLs holds all external URLs of application child resources. - items: - type: string - type: array - images: - description: Images holds all images of application child resources. - items: - type: string - type: array - type: object - sync: - description: SyncStatus is a comparison result of application spec and deployed application. - properties: - comparedTo: - description: ComparedTo contains application source and target which was used for resources comparison - properties: - destination: - description: ApplicationDestination contains deployment destination information - properties: - name: - description: Name of the destination cluster which can be used instead of server (url) field - type: string - namespace: - description: Namespace overrides the environment namespace value in the ksonnet app.yaml - type: string - server: - description: Server overrides the environment server value in the ksonnet app.yaml - type: string - type: object - source: - description: ApplicationSource contains information about github repository, path within repository and target application environment. - properties: - chart: - description: Chart is a Helm chart name - type: string - directory: - description: Directory holds path/directory specific options - properties: - exclude: - type: string - jsonnet: - description: ApplicationSourceJsonnet holds jsonnet specific options - properties: - extVars: - description: ExtVars is a list of Jsonnet External Variables - items: - description: JsonnetVar is a jsonnet variable - properties: - code: - type: boolean - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - libs: - description: Additional library search dirs - items: - type: string - type: array - tlas: - description: TLAS is a list of Jsonnet Top-level Arguments - items: - description: JsonnetVar is a jsonnet variable - properties: - code: - type: boolean - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - type: object - recurse: - type: boolean - type: object - helm: - description: Helm holds helm specific options - properties: - fileParameters: - description: FileParameters are file parameters to the helm template - items: - description: HelmFileParameter is a file parameter to a helm template - properties: - name: - description: Name is the name of the helm parameter - type: string - path: - description: Path is the path value for the helm parameter - type: string - type: object - type: array - parameters: - description: Parameters are parameters to the helm template - items: - description: HelmParameter is a parameter to a helm template - properties: - forceString: - description: ForceString determines whether to tell Helm to interpret booleans and numbers as strings - type: boolean - name: - description: Name is the name of the helm parameter - type: string - value: - description: Value is the value for the helm parameter - type: string - type: object - type: array - releaseName: - description: The Helm release name. If omitted it will use the application name - type: string - valueFiles: - description: ValuesFiles is a list of Helm value files to use when generating a template - items: - type: string - type: array - values: - description: Values is Helm values, typically defined as a block - type: string - version: - description: Version is the Helm version to use for templating with - type: string - type: object - ksonnet: - description: Ksonnet holds ksonnet specific options - properties: - environment: - description: Environment is a ksonnet application environment name - type: string - parameters: - description: Parameters are a list of ksonnet component parameter override values - items: - description: KsonnetParameter is a ksonnet component parameter - properties: - component: - type: string - name: - type: string - value: - type: string - required: - - name - - value - type: object - type: array - type: object - kustomize: - description: Kustomize holds kustomize specific options - properties: - commonAnnotations: - additionalProperties: - type: string - description: CommonAnnotations adds additional kustomize commonAnnotations - type: object - commonLabels: - additionalProperties: - type: string - description: CommonLabels adds additional kustomize commonLabels - type: object - images: - description: Images are kustomize image overrides - items: - type: string - type: array - namePrefix: - description: NamePrefix is a prefix appended to resources for kustomize apps - type: string - nameSuffix: - description: NameSuffix is a suffix appended to resources for kustomize apps - type: string - version: - description: Version contains optional Kustomize version - type: string - type: object - path: - description: Path is a directory path within the Git repository - type: string - plugin: - description: ConfigManagementPlugin holds config management plugin specific options - properties: - env: - items: - properties: - name: - description: the name, usually uppercase - type: string - value: - description: the value - type: string - required: - - name - - value - type: object - type: array - name: - type: string - type: object - repoURL: - description: RepoURL is the repository URL of the application manifests - type: string - targetRevision: - description: TargetRevision defines the commit, tag, or branch in which to sync the application to. If omitted, will sync to HEAD - type: string - required: - - repoURL - type: object - required: - - destination - - source - type: object - revision: - type: string - status: - description: SyncStatusCode is a type which represents possible comparison results - type: string - required: - - status - type: object - type: object - required: - - metadata - - spec - type: object - version: v1alpha1 - versions: - - name: v1alpha1 - served: true - storage: true ---- -apiVersion: apiextensions.k8s.io/v1beta1 -kind: CustomResourceDefinition -metadata: - labels: - app.kubernetes.io/name: appprojects.argoproj.io - app.kubernetes.io/part-of: argocd - name: appprojects.argoproj.io -spec: - group: argoproj.io - names: - kind: AppProject - listKind: AppProjectList - plural: appprojects - shortNames: - - appproj - - appprojs - singular: appproject - scope: Namespaced - validation: - openAPIV3Schema: - description: 'AppProject provides a logical grouping of applications, providing controls for: * where the apps may deploy to (cluster whitelist) * what may be deployed (repository whitelist, resource whitelist/blacklist) * who can access these applications (roles, OIDC group claims bindings) * and what they can do (RBAC policies) * automation access to these roles (JWT tokens)' - properties: - apiVersion: - description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' - type: string - kind: - description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' - type: string - metadata: - type: object - spec: - description: AppProjectSpec is the specification of an AppProject - properties: - clusterResourceBlacklist: - description: ClusterResourceBlacklist contains list of blacklisted cluster level resources - items: - description: GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types - properties: - group: - type: string - kind: - type: string - required: - - group - - kind - type: object - type: array - clusterResourceWhitelist: - description: ClusterResourceWhitelist contains list of whitelisted cluster level resources - items: - description: GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types - properties: - group: - type: string - kind: - type: string - required: - - group - - kind - type: object - type: array - description: - description: Description contains optional project description - type: string - destinations: - description: Destinations contains list of destinations available for deployment - items: - description: ApplicationDestination contains deployment destination information - properties: - name: - description: Name of the destination cluster which can be used instead of server (url) field - type: string - namespace: - description: Namespace overrides the environment namespace value in the ksonnet app.yaml - type: string - server: - description: Server overrides the environment server value in the ksonnet app.yaml - type: string - type: object - type: array - namespaceResourceBlacklist: - description: NamespaceResourceBlacklist contains list of blacklisted namespace level resources - items: - description: GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types - properties: - group: - type: string - kind: - type: string - required: - - group - - kind - type: object - type: array - namespaceResourceWhitelist: - description: NamespaceResourceWhitelist contains list of whitelisted namespace level resources - items: - description: GroupKind specifies a Group and a Kind, but does not force a version. This is useful for identifying concepts during lookup stages without having partially valid types - properties: - group: - type: string - kind: - type: string - required: - - group - - kind - type: object - type: array - orphanedResources: - description: OrphanedResources specifies if controller should monitor orphaned resources of apps in this project - properties: - ignore: - items: - properties: - group: - type: string - kind: - type: string - name: - type: string - type: object - type: array - warn: - description: Warn indicates if warning condition should be created for apps which have orphaned resources - type: boolean - type: object - roles: - description: Roles are user defined RBAC roles associated with this project - items: - description: ProjectRole represents a role that has access to a project - properties: - description: - description: Description is a description of the role - type: string - groups: - description: Groups are a list of OIDC group claims bound to this role - items: - type: string - type: array - jwtTokens: - description: JWTTokens are a list of generated JWT tokens bound to this role - items: - description: JWTToken holds the issuedAt and expiresAt values of a token - properties: - exp: - format: int64 - type: integer - iat: - format: int64 - type: integer - id: - type: string - required: - - iat - type: object - type: array - name: - description: Name is a name for this role - type: string - policies: - description: Policies Stores a list of casbin formated strings that define access policies for the role in the project - items: - type: string - type: array - required: - - name - type: object - type: array - signatureKeys: - description: List of PGP key IDs that commits to be synced to must be signed with - items: - description: SignatureKey is the specification of a key required to verify commit signatures with - properties: - keyID: - description: The ID of the key in hexadecimal notation - type: string - required: - - keyID - type: object - type: array - sourceRepos: - description: SourceRepos contains list of repository URLs which can be used for deployment - items: - type: string - type: array - syncWindows: - description: SyncWindows controls when syncs can be run for apps in this project - items: - description: SyncWindow contains the kind, time, duration and attributes that are used to assign the syncWindows to apps - properties: - applications: - description: Applications contains a list of applications that the window will apply to - items: - type: string - type: array - clusters: - description: Clusters contains a list of clusters that the window will apply to - items: - type: string - type: array - duration: - description: Duration is the amount of time the sync window will be open - type: string - kind: - description: Kind defines if the window allows or blocks syncs - type: string - manualSync: - description: ManualSync enables manual syncs when they would otherwise be blocked - type: boolean - namespaces: - description: Namespaces contains a list of namespaces that the window will apply to - items: - type: string - type: array - schedule: - description: Schedule is the time the window will begin, specified in cron format - type: string - type: object - type: array - type: object - required: - - metadata - - spec - type: object - version: v1alpha1 - versions: - - name: v1alpha1 - served: true - storage: true ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/component: application-controller - app.kubernetes.io/name: argocd-application-controller - app.kubernetes.io/part-of: argocd - name: argocd-application-controller ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/component: dex-server - app.kubernetes.io/name: argocd-dex-server - app.kubernetes.io/part-of: argocd - name: argocd-dex-server ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/component: redis - app.kubernetes.io/name: argocd-redis - app.kubernetes.io/part-of: argocd - name: argocd-redis ---- -apiVersion: v1 -kind: ServiceAccount -metadata: - labels: - app.kubernetes.io/component: server - app.kubernetes.io/name: argocd-server - app.kubernetes.io/part-of: argocd - name: argocd-server ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - labels: - app.kubernetes.io/component: application-controller - app.kubernetes.io/name: argocd-application-controller - app.kubernetes.io/part-of: argocd - name: argocd-application-controller -rules: -- apiGroups: - - "" - resources: - - secrets - - configmaps - verbs: - - get - - list - - watch -- apiGroups: - - argoproj.io - resources: - - applications - - appprojects - verbs: - - create - - get - - list - - watch - - update - - patch - - delete -- apiGroups: - - "" - resources: - - events - verbs: - - create - - list ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - labels: - app.kubernetes.io/component: dex-server - app.kubernetes.io/name: argocd-dex-server - app.kubernetes.io/part-of: argocd - name: argocd-dex-server -rules: -- apiGroups: - - "" - resources: - - secrets - - configmaps - verbs: - - get - - list - - watch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - labels: - app.kubernetes.io/component: redis - app.kubernetes.io/name: argocd-redis - app.kubernetes.io/part-of: argocd - name: argocd-redis -rules: -- apiGroups: - - security.openshift.io - resourceNames: - - nonroot - resources: - - securitycontextconstraints - verbs: - - use ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - labels: - app.kubernetes.io/component: server - app.kubernetes.io/name: argocd-server - app.kubernetes.io/part-of: argocd - name: argocd-server -rules: -- apiGroups: - - "" - resources: - - secrets - - configmaps - verbs: - - create - - get - - list - - watch - - update - - patch - - delete -- apiGroups: - - argoproj.io - resources: - - applications - - appprojects - verbs: - - create - - get - - list - - watch - - update - - delete - - patch -- apiGroups: - - "" - resources: - - events - verbs: - - create - - list ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - labels: - app.kubernetes.io/component: application-controller - app.kubernetes.io/name: argocd-application-controller - app.kubernetes.io/part-of: argocd - name: argocd-application-controller -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - '*' -- nonResourceURLs: - - '*' - verbs: - - '*' ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - labels: - app.kubernetes.io/component: server - app.kubernetes.io/name: argocd-server - app.kubernetes.io/part-of: argocd - name: argocd-server -rules: -- apiGroups: - - '*' - resources: - - '*' - verbs: - - delete - - get - - patch -- apiGroups: - - "" - resources: - - events - verbs: - - list -- apiGroups: - - "" - resources: - - pods - - pods/log - verbs: - - get ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - app.kubernetes.io/component: application-controller - app.kubernetes.io/name: argocd-application-controller - app.kubernetes.io/part-of: argocd - name: argocd-application-controller -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: argocd-application-controller -subjects: -- kind: ServiceAccount - name: argocd-application-controller ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - app.kubernetes.io/component: dex-server - app.kubernetes.io/name: argocd-dex-server - app.kubernetes.io/part-of: argocd - name: argocd-dex-server -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: argocd-dex-server -subjects: -- kind: ServiceAccount - name: argocd-dex-server ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - app.kubernetes.io/component: redis - app.kubernetes.io/name: argocd-redis - app.kubernetes.io/part-of: argocd - name: argocd-redis -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: argocd-redis -subjects: -- kind: ServiceAccount - name: argocd-redis ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - labels: - app.kubernetes.io/component: server - app.kubernetes.io/name: argocd-server - app.kubernetes.io/part-of: argocd - name: argocd-server -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: argocd-server -subjects: -- kind: ServiceAccount - name: argocd-server ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - labels: - app.kubernetes.io/component: application-controller - app.kubernetes.io/name: argocd-application-controller - app.kubernetes.io/part-of: argocd - name: argocd-application-controller -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: argocd-application-controller -subjects: -- kind: ServiceAccount - name: argocd-application-controller - namespace: argocd ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - labels: - app.kubernetes.io/component: server - app.kubernetes.io/name: argocd-server - app.kubernetes.io/part-of: argocd - name: argocd-server -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: argocd-server -subjects: -- kind: ServiceAccount - name: argocd-server - namespace: argocd ---- -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app.kubernetes.io/name: argocd-cm - app.kubernetes.io/part-of: argocd - name: argocd-cm ---- -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app.kubernetes.io/name: argocd-gpg-keys-cm - app.kubernetes.io/part-of: argocd - name: argocd-gpg-keys-cm ---- -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app.kubernetes.io/name: argocd-rbac-cm - app.kubernetes.io/part-of: argocd - name: argocd-rbac-cm ---- -apiVersion: v1 -data: - ssh_known_hosts: | - bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAubiN81eDcafrgMeLzaFPsw2kNvEcqTKl/VqLat/MaB33pZy0y3rJZtnqwR2qOOvbwKZYKiEO1O6VqNEBxKvJJelCq0dTXWT5pbO2gDXC6h6QDXCaHo6pOHGPUy+YBaGQRGuSusMEASYiWunYN0vCAI8QaXnWMXNMdFP3jHAJH0eDsoiGnLPBlBp4TNm6rYI74nMzgz3B9IikW4WVK+dc8KZJZWYjAuORU3jc1c/NPskD2ASinf8v3xnfXeukU0sJ5N6m5E8VLjObPEO+mN2t/FZTMZLiFqPWc/ALSqnMnnhwrNi2rbfg/rd/IpL8Le3pSBne8+seeFVBoGqzHM9yXw== - github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ== - gitlab.com ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBFSMqzJeV9rUzU4kWitGjeR4PWSa29SPqJ1fVkhtj3Hw9xjLVXVYrU9QlYWrOLXBpQ6KWjbjTDTdDkoohFzgbEY= - gitlab.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAfuCHKVTjquxvt6CM6tdG4SLp1Btn/nOeHHE5UOzRdf - gitlab.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCsj2bNKTBSpIYDEGk9KxsGh3mySTRgMtXL583qmBpzeQ+jqCMRgBqB98u3z++J1sKlXHWfM9dyhSevkMwSbhoR8XIq/U0tCNyokEi/ueaBMCvbcTHhO7FcwzY92WK4Yt0aGROY5qX2UKSeOvuP4D6TPqKF1onrSzH9bx9XUf2lEdWT/ia1NEKjunUqu1xOB/StKDHMoX4/OKyIzuS0q/T1zOATthvasJFoPrAjkohTyaDUz2LN5JoH839hViyEG82yB+MjcFV5MU3N1l1QL3cVUCh93xSaua1N85qivl+siMkPGbO5xR/En4iEY6K2XPASUEMaieWVNTRCtJ4S8H+9 - ssh.dev.azure.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Hr1oTWqNqOlzGJOfGJ4NakVyIzf1rXYd4d7wo6jBlkLvCA4odBlL0mDUyZ0/QUfTTqeu+tm22gOsv+VrVTMk6vwRU75gY/y9ut5Mb3bR5BV58dKXyq9A9UeB5Cakehn5Zgm6x1mKoVyf+FFn26iYqXJRgzIZZcZ5V6hrE0Qg39kZm4az48o0AUbf6Sp4SLdvnuMa2sVNwHBboS7EJkm57XQPVU3/QpyNLHbWDdzwtrlS+ez30S3AdYhLKEOxAG8weOnyrtLJAUen9mTkol8oII1edf7mWWbWVf0nBmly21+nZcmCTISQBtdcyPaEno7fFQMDD26/s0lfKob4Kw8H - vs-ssh.visualstudio.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7Hr1oTWqNqOlzGJOfGJ4NakVyIzf1rXYd4d7wo6jBlkLvCA4odBlL0mDUyZ0/QUfTTqeu+tm22gOsv+VrVTMk6vwRU75gY/y9ut5Mb3bR5BV58dKXyq9A9UeB5Cakehn5Zgm6x1mKoVyf+FFn26iYqXJRgzIZZcZ5V6hrE0Qg39kZm4az48o0AUbf6Sp4SLdvnuMa2sVNwHBboS7EJkm57XQPVU3/QpyNLHbWDdzwtrlS+ez30S3AdYhLKEOxAG8weOnyrtLJAUen9mTkol8oII1edf7mWWbWVf0nBmly21+nZcmCTISQBtdcyPaEno7fFQMDD26/s0lfKob4Kw8H -kind: ConfigMap -metadata: - labels: - app.kubernetes.io/name: argocd-ssh-known-hosts-cm - app.kubernetes.io/part-of: argocd - name: argocd-ssh-known-hosts-cm ---- -apiVersion: v1 -data: null -kind: ConfigMap -metadata: - labels: - app.kubernetes.io/name: argocd-tls-certs-cm - app.kubernetes.io/part-of: argocd - name: argocd-tls-certs-cm ---- -apiVersion: v1 -kind: Secret -metadata: - labels: - app.kubernetes.io/name: argocd-secret - app.kubernetes.io/part-of: argocd - name: argocd-secret -type: Opaque ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: dex-server - app.kubernetes.io/name: argocd-dex-server - app.kubernetes.io/part-of: argocd - name: argocd-dex-server -spec: - ports: - - name: http - port: 5556 - protocol: TCP - targetPort: 5556 - - name: grpc - port: 5557 - protocol: TCP - targetPort: 5557 - - name: metrics - port: 5558 - protocol: TCP - targetPort: 5558 - selector: - app.kubernetes.io/name: argocd-dex-server ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: metrics - app.kubernetes.io/name: argocd-metrics - app.kubernetes.io/part-of: argocd - name: argocd-metrics -spec: - ports: - - name: metrics - port: 8082 - protocol: TCP - targetPort: 8082 - selector: - app.kubernetes.io/name: argocd-application-controller ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: redis - app.kubernetes.io/name: argocd-redis - app.kubernetes.io/part-of: argocd - name: argocd-redis -spec: - ports: - - name: tcp-redis - port: 6379 - targetPort: 6379 - selector: - app.kubernetes.io/name: argocd-redis ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: repo-server - app.kubernetes.io/name: argocd-repo-server - app.kubernetes.io/part-of: argocd - name: argocd-repo-server -spec: - ports: - - name: server - port: 8081 - protocol: TCP - targetPort: 8081 - - name: metrics - port: 8084 - protocol: TCP - targetPort: 8084 - selector: - app.kubernetes.io/name: argocd-repo-server ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: server - app.kubernetes.io/name: argocd-server - app.kubernetes.io/part-of: argocd - name: argocd-server -spec: - ports: - - name: http - port: 80 - protocol: TCP - targetPort: 8080 - - name: https - port: 443 - protocol: TCP - targetPort: 8080 - selector: - app.kubernetes.io/name: argocd-server ---- -apiVersion: v1 -kind: Service -metadata: - labels: - app.kubernetes.io/component: server - app.kubernetes.io/name: argocd-server-metrics - app.kubernetes.io/part-of: argocd - name: argocd-server-metrics -spec: - ports: - - name: metrics - port: 8083 - protocol: TCP - targetPort: 8083 - selector: - app.kubernetes.io/name: argocd-server ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: dex-server - app.kubernetes.io/name: argocd-dex-server - app.kubernetes.io/part-of: argocd - name: argocd-dex-server -spec: - selector: - matchLabels: - app.kubernetes.io/name: argocd-dex-server - template: - metadata: - labels: - app.kubernetes.io/name: argocd-dex-server - spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/part-of: argocd - topologyKey: kubernetes.io/hostname - weight: 5 - containers: - - command: - - /shared/argocd-util - - rundex - image: ghcr.io/dexidp/dex:v2.27.0 - imagePullPolicy: Always - name: dex - ports: - - containerPort: 5556 - - containerPort: 5557 - - containerPort: 5558 - volumeMounts: - - mountPath: /shared - name: static-files - initContainers: - - command: - - cp - - -n - - /usr/local/bin/argocd-util - - /shared - image: alinbalutoiu/argocd:v1.8.4 - imagePullPolicy: Always - name: copyutil - volumeMounts: - - mountPath: /shared - name: static-files - serviceAccountName: argocd-dex-server - volumes: - - emptyDir: {} - name: static-files ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: redis - app.kubernetes.io/name: argocd-redis - app.kubernetes.io/part-of: argocd - name: argocd-redis -spec: - selector: - matchLabels: - app.kubernetes.io/name: argocd-redis - template: - metadata: - labels: - app.kubernetes.io/name: argocd-redis - spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/name: argocd-redis - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/part-of: argocd - topologyKey: kubernetes.io/hostname - weight: 5 - containers: - - args: - - --save - - "" - - --appendonly - - "no" - image: redis:5.0.10-alpine - imagePullPolicy: Always - name: redis - ports: - - containerPort: 6379 - securityContext: - fsGroup: 1000 - runAsGroup: 1000 - runAsNonRoot: true - runAsUser: 1000 - serviceAccountName: argocd-redis ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: repo-server - app.kubernetes.io/name: argocd-repo-server - app.kubernetes.io/part-of: argocd - name: argocd-repo-server -spec: - selector: - matchLabels: - app.kubernetes.io/name: argocd-repo-server - template: - metadata: - labels: - app.kubernetes.io/name: argocd-repo-server - spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/name: argocd-repo-server - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/part-of: argocd - topologyKey: kubernetes.io/hostname - weight: 5 - automountServiceAccountToken: false - containers: - - command: - - uid_entrypoint.sh - - argocd-repo-server - - --redis - - argocd-redis:6379 - image: alinbalutoiu/argocd:v1.8.4 - imagePullPolicy: Always - livenessProbe: - failureThreshold: 3 - httpGet: - path: /healthz?full=true - port: 8084 - initialDelaySeconds: 30 - periodSeconds: 5 - name: argocd-repo-server - ports: - - containerPort: 8081 - - containerPort: 8084 - readinessProbe: - httpGet: - path: /healthz - port: 8084 - initialDelaySeconds: 5 - periodSeconds: 10 - volumeMounts: - - mountPath: /app/config/ssh - name: ssh-known-hosts - - mountPath: /app/config/tls - name: tls-certs - - mountPath: /app/config/gpg/source - name: gpg-keys - - mountPath: /app/config/gpg/keys - name: gpg-keyring - volumes: - - configMap: - name: argocd-ssh-known-hosts-cm - name: ssh-known-hosts - - configMap: - name: argocd-tls-certs-cm - name: tls-certs - - configMap: - name: argocd-gpg-keys-cm - name: gpg-keys - - emptyDir: {} - name: gpg-keyring ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - labels: - app.kubernetes.io/component: server - app.kubernetes.io/name: argocd-server - app.kubernetes.io/part-of: argocd - name: argocd-server -spec: - selector: - matchLabels: - app.kubernetes.io/name: argocd-server - template: - metadata: - labels: - app.kubernetes.io/name: argocd-server - spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/name: argocd-server - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/part-of: argocd - topologyKey: kubernetes.io/hostname - weight: 5 - containers: - - command: - - argocd-server - - --staticassets - - /shared/app - image: alinbalutoiu/argocd:v1.8.4 - imagePullPolicy: Always - livenessProbe: - httpGet: - path: /healthz?full=true - port: 8080 - initialDelaySeconds: 3 - periodSeconds: 30 - name: argocd-server - ports: - - containerPort: 8080 - - containerPort: 8083 - readinessProbe: - httpGet: - path: /healthz - port: 8080 - initialDelaySeconds: 3 - periodSeconds: 30 - volumeMounts: - - mountPath: /app/config/ssh - name: ssh-known-hosts - - mountPath: /app/config/tls - name: tls-certs - serviceAccountName: argocd-server - volumes: - - emptyDir: {} - name: static-files - - configMap: - name: argocd-ssh-known-hosts-cm - name: ssh-known-hosts - - configMap: - name: argocd-tls-certs-cm - name: tls-certs ---- -apiVersion: apps/v1 -kind: StatefulSet -metadata: - labels: - app.kubernetes.io/component: application-controller - app.kubernetes.io/name: argocd-application-controller - app.kubernetes.io/part-of: argocd - name: argocd-application-controller -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/name: argocd-application-controller - serviceName: argocd-application-controller - template: - metadata: - labels: - app.kubernetes.io/name: argocd-application-controller - spec: - affinity: - podAntiAffinity: - preferredDuringSchedulingIgnoredDuringExecution: - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/name: argocd-application-controller - topologyKey: kubernetes.io/hostname - weight: 100 - - podAffinityTerm: - labelSelector: - matchLabels: - app.kubernetes.io/part-of: argocd - topologyKey: kubernetes.io/hostname - weight: 5 - containers: - - command: - - argocd-application-controller - - --status-processors - - "20" - - --operation-processors - - "10" - image: alinbalutoiu/argocd:v1.8.4 - imagePullPolicy: Always - livenessProbe: - httpGet: - path: /healthz - port: 8082 - initialDelaySeconds: 5 - periodSeconds: 10 - name: argocd-application-controller - ports: - - containerPort: 8082 - readinessProbe: - httpGet: - path: /healthz - port: 8082 - initialDelaySeconds: 5 - periodSeconds: 10 - serviceAccountName: argocd-application-controller diff --git a/apps/argocd/namespace.yaml b/apps/argocd/namespace.yaml deleted file mode 100644 index 96e84ab..0000000 --- a/apps/argocd/namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: argocd \ No newline at end of file diff --git a/apps/nginx-test-deployment.yaml b/apps/nginx-test-deployment.yaml deleted file mode 100644 index f686552..0000000 --- a/apps/nginx-test-deployment.yaml +++ /dev/null @@ -1,42 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: nginx-deployment -spec: - replicas: 1 - selector: - matchLabels: - run: nginx-deployment - template: - metadata: - labels: - run: nginx-deployment - spec: - containers: - - image: nginx - name: nginx-webserver - ---- -apiVersion: v1 -kind: Service -metadata: - name: nginx-service -spec: - type: NodePort - selector: - run: nginx-deployment - ports: - - port: 80 ---- -apiVersion: networking.k8s.io/v1beta1 -kind: Ingress -metadata: - name: nginx-test -spec: - rules: - - host: nginx-test.lan - http: - paths: - - backend: - serviceName: nginx-service - servicePort: 80 \ No newline at end of file diff --git a/apps/tekton/README.md b/apps/tekton/README.md deleted file mode 100644 index 75cf2d6..0000000 --- a/apps/tekton/README.md +++ /dev/null @@ -1,6 +0,0 @@ -Install: - -# Pipelines: @kubectl apply --filename https://storage.googleapis.com/tekton-releases/pipeline/latest/release.yaml@ -# Triggers: @kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/release.yaml@ - @kubectl apply --filename https://storage.googleapis.com/tekton-releases/triggers/latest/interceptors.yaml@ #https://github.com/tektoncd/triggers/blob/master/docs/install.md -# Dashboard: @kubectl apply --filename https://storage.googleapis.com/tekton-releases/dashboard/latest/tekton-dashboard-release.yaml@ diff --git a/apps/tekton/confgmap-config-registry-conf.yaml b/apps/tekton/confgmap-config-registry-conf.yaml deleted file mode 100644 index 758936d..0000000 --- a/apps/tekton/confgmap-config-registry-conf.yaml +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 2020 Tekton Authors LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -apiVersion: v1 -kind: ConfigMap -metadata: - name: config-registry-cert - namespace: tekton-pipelines - labels: - app.kubernetes.io/instance: default - app.kubernetes.io/part-of: tekton-pipelines -data: - # Registry's self-signed certificate - # TODO: somehow automate this with salt - cert: | - -----BEGIN CERTIFICATE----- - MIIFujCCA6KgAwIBAgIEYsvT+zANBgkqhkiG9w0BAQsFADBFMQswCQYDVQQGEwJE - RTEPMA0GA1UECAwGQmVybGluMQ8wDQYDVQQHDAZCZXJsaW4xFDASBgNVBAMMC3R1 - bW9yLmNoYW9zMB4XDTIxMDIxMjE4MzAzM1oXDTIyMDIxMjE4MzAzM1owLzELMAkG - A1UEBhMCREUxDzANBgNVBAgMBkJlcmxpbjEPMA0GA1UEBwwGQmVybGluMIICIjAN - BgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAog4t352wKHS4pflQK4NlWH6yv1FK - MnqNJiNnIgkWrNABTu9ES3cmUwdEhf+Um7MJYvQivOZFIH65wBBmOxfnYWB+NPwn - XAi/o3BcePIdbwEGs0cxgIEKbmL9fY0SCXq0pXRu8Y7WAhqdTNp6/HY2fTMx7ghX - RNQPoeNlcfAZgpsJlZdkSzMYoFpGIW+Tvj3INNuIuHo1pagckWW/hGUIqY0NuUV9 - Aj8LOHhHB+vKtjbq5DMVAob4kKOPJFmq/1D6fmRh3W1YAGikowVv3V45jAmnkcBj - Z8BIEiOnBy1AyW9o8Tc5000MAGNrm9IGpRfBBTptSAApZmK1V6zKreqCiCpgOBbh - 6U1Bf1L39u8aLVRxeyzQbxqBM1VTbjKxygFSIR/7rVd9BEhx6VA95EG+EdPLpKDp - mymElCcVgv2ZhKBRxtne4CAQD5ng2SoEqLdjvZdC44QNapnj+6jlaNvKRJ1q63kq - B5Y4shJxYOc6QDQp2+Eh2d7qQNiTE3FJC/aeXDNQ+dqeV7chU+PbcbMQoxnIN6ou - Zc2IdtNL87+Apgh6vqZX9pELBXUN1Nu3NI88T8tw1CdqfFfh4Z2EEBBCsPD0yZPV - UrHZsAMiHh5prRkwsBVzDBIaLYd6glf/w9W8sWxe5wceDNhxD8VAfq/ZXeuE1Pme - cTVYsBNj8idC9tECAwEAAaOBxzCBxDAMBgNVHRMBAf8EAjAAMAsGA1UdDwQEAwIF - 4DAdBgNVHQ4EFgQUa7ADNR68XrDsLtLtngmdJQ9UtOswcAYDVR0jBGkwZ4AU9l9v - D1+dukLLV/uDnP3eB4i6ZyihSaRHMEUxCzAJBgNVBAYTAkRFMQ8wDQYDVQQIDAZC - ZXJsaW4xDzANBgNVBAcMBkJlcmxpbjEUMBIGA1UEAwwLdHVtb3IuY2hhb3OCBBKa - C88wFgYDVR0RBA8wDYILdHVtb3IuY2hhb3MwDQYJKoZIhvcNAQELBQADggIBAKK3 - S8qKrsarBflGrDI4diG+QOcMG3/y6juARp3vxQf3fDqC6HZCl+kWAp+Cq3Sp/hU7 - GKM7qraWpvGxgmDyaevAirLdFlYQBgcIl9frPI8yfLWbZHWvx3PFXNqg2Ckm98xX - vSUacPTPp/tKFBquJ5+j+/YS2U4qWWNIYYtDEI+3lswfoeh0CIEPSxDk0wHDAyfZ - Vh30ZuZhsf3F63xMggw/RpEHeTTCr0YGOAmzpb7jItcbP/EER1qTQ4T+3ExuC40C - EdOAeL377O2rr7zjcmJWk8B5FaQ8K8UdE/iQGM7tP5ieMNTVACe21KFpqIIXaIka - HqRTyvRmJGUrVf1NeXE16yKirIqAjEV/B/4S244wxYcwqweZObbI0PnbnEMn3PMF - TV+e1CUmVOKyGIxfHH7j/VKQfmH/W0jOlGWI7OkbdU5GckoX4Knjrv2MmT9i2ENy - 6dID3BJVm6hK2SjJLc7SxbPXMG3I6BrlA5/3LaXzl+2fWAk5OA1jnGZz0P4XcdOO - iAulB4I3PdmNRdSYAXVRdo5OLoq/7iBcqSrCXRw1IbgJm0VlS2AI6hGEXDQvjQwP - 38ijZUV/ch2lGyUZOfQymI7Ylh+Airn8ctqyMS8FeZBAyny4/t7xrhWuGO1awUzp - 4p/sEjg6kqp3oLai5yhaz9S+y7Ao5XmGDdzfalWH - -----END CERTIFICATE----- - diff --git a/apps/tekton/tekton-dashboard-ingress.yaml b/apps/tekton/tekton-dashboard-ingress.yaml deleted file mode 100644 index 686ef24..0000000 --- a/apps/tekton/tekton-dashboard-ingress.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: tekton-dashboard - namespace: tekton-pipelines - annotations: - kubernetes.io/ingress.class: nginx -spec: - rules: - - host: tekton.lan - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: tekton-dashboard - port: - number: 9097 diff --git a/apps/tekton/tektoncd-workspaces.yaml b/apps/tekton/tektoncd-workspaces.yaml deleted file mode 100644 index e38ae4d..0000000 --- a/apps/tekton/tektoncd-workspaces.yaml +++ /dev/null @@ -1,12 +0,0 @@ ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: tektoncd-workspaces -spec: - storageClassName: nfs-ssd - accessModes: - - ReadWriteMany - resources: - requests: - storage: 40Gi diff --git a/cluster-monitoring-local/README.md b/cluster-monitoring-local/README.md deleted file mode 100644 index 673ef5f..0000000 --- a/cluster-monitoring-local/README.md +++ /dev/null @@ -1,5 +0,0 @@ -from :https://github.com/coreos/prometheus-operator/blob/master/Documentation/additional-scrape-config.md -# create new secret: -kubectl create secret generic additional-scrape-configs --from-file=prometheus-additional.yaml --dry-run -oyaml > additional-scrape-configs.yaml -# add "namespace: monitoring" -# apply diff --git a/cluster-monitoring-local/additional-scrape-configs.yaml b/cluster-monitoring-local/additional-scrape-configs.yaml deleted file mode 100644 index ecdaf11..0000000 --- a/cluster-monitoring-local/additional-scrape-configs.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: v1 -data: - prometheus-additional.yaml: LSBqb2JfbmFtZTogZ2l0ZWEKICBzdGF0aWNfY29uZmlnczoKICAtIHRhcmdldHM6CiAgICAtIGdpdC11aS5sYW4KLSBqb2JfbmFtZTogbXlzcWxkCiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOgogICAgLSBtYXJpYWRiLmxhbjo5MTA0Ci0gam9iX25hbWU6IG1xdHQubW9zcXVpdHRvCiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOgogICAgLSBtcXR0Lmxhbjo5MjM0CiAgICAtIG1xdHQuY2hhb3M6OTIzNAotIGpvYl9uYW1lOiBoYXByb3h5CiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOgogICAgLSBhZG0wMS53a3M6OTEwMQogICAgLSBkcnVja2kud2tzOjkxMDEKICAgIC0gYXV0bzAyLmNoYW9zOjkxMDEKLSBqb2JfbmFtZToga2xpcHBlcgogIHN0YXRpY19jb25maWdzOgogIC0gdGFyZ2V0czoKICAgIC0gZHJ1Y2tpLndrczozOTAzCi0gam9iX25hbWU6IG9jdG9wcmludAogIG1ldHJpY3NfcGF0aDogL3BsdWdpbi9wcm9tZXRoZXVzX2V4cG9ydGVyL21ldHJpY3MKICBwYXJhbXM6CiAgICBhcGlrZXk6CiAgICAtIDMwRThCMDFCRkQ2NzRFNUJCRDQ0NkQwOEM0NzMwREY0CiAgc3RhdGljX2NvbmZpZ3M6CiAgLSB0YXJnZXRzOgogICAgLSBkcnVja2kud2tzOjgwCi0gam9iX25hbWU6IGhhc3NpbwogIG1ldHJpY3NfcGF0aDogL2FwaS9wcm9tZXRoZXVzCiAgYmVhcmVyX3Rva2VuOiAnZXlKMGVYQWlPaUpLVjFRaUxDSmhiR2NpT2lKSVV6STFOaUo5LmV5SnBjM01pT2lKaE16Qm1ZalUxWmpjeVpHRTBZemMyWW1VMk5tWTBOamxqTlRBeU1qZGpaQ0lzSW1saGRDSTZNVFl4TWpnNE16STVOeXdpWlhod0lqb3hPVEk0TWpRek1qazNmUS4xSUNzSGxpVVhSMENHNEg4dlFSWUo1alZxRndtcUtTQjBmU2NTaXRDLVE0JwogIHN0YXRpY19jb25maWdzOgogICAgLSB0YXJnZXRzOgogICAgICAtIGhhc3Npby5sYW46ODAKLSBqb2JfbmFtZTogaGFzc2lvX3Jpbmc4NgogIG1ldHJpY3NfcGF0aDogL2FwaS9wcm9tZXRoZXVzCiAgYmVhcmVyX3Rva2VuOiAnZXlKMGVYQWlPaUpLVjFRaUxDSmhiR2NpT2lKSVV6STFOaUo5LmV5SnBjM01pT2lJME9HRmpaVEppTm1RM09UZzBNamMzWVdGbU1tTm1abVUxWXpjNE5URTBOQ0lzSW1saGRDSTZNVFl4TWpFNU1qazBNQ3dpWlhod0lqb3hPVEkzTlRVeU9UUXdmUS5CYklBWG05UnEwamI2b3VxZ1ZITmQ2S2VlejNOUDN5aC03d3lmdW9COFlrJwogIHN0YXRpY19jb25maWdzOgogICAgLSB0YXJnZXRzOgogICAgICAtIGF1dG8uY2hhb3M6ODAKLSBqb2JfbmFtZTogcG9zdGdyZXMKICBzdGF0aWNfY29uZmlnczoKICAgIC0gdGFyZ2V0czoKICAgICAgLSBwb3N0Z3Jlcy5saXZlLWVudi5zdmMuY2x1c3Rlci5sb2NhbDo5MTg3Ci0gam9iX25hbWU6IG5vZGUKICBzdGF0aWNfY29uZmlnczoKICAtIHRhcmdldHM6CiAgICAtIGFkbTAxLndrczo5MTAwCiAgICAtIGR1bW9udC13a3Mud2tzOjkxMDAKICAgIC0gZHJ1Y2tpLndrczo5MTAwCiAgICAtIGViaW4wMS53a3M6OTEwMAogICAgLSBlYmluMDIud2tzOjkxMDAKICAgIC0gb3NtYy53a3M6OTEwMAogICAgLSByaW90MDEud2tzOjkxMDAKICAgIC0gdHJ1aGUuY2hhb3M6OTEwMAogICAgLSBhdXRvMDIuY2hhb3M6OTEwMAogICAgLSBkdW1vbnQuY2hhb3M6OTEwMAogICAgLSB0dW1vcjAxLmNoYW9zOjkxMDAKICAgIC0gd29obnouY2hhb3M6OTEwMAogICAgLSB5b3JpLmNoYW9zOjkxMDAK -kind: Secret -metadata: - creationTimestamp: null - name: additional-scrape-configs diff --git a/cluster-monitoring-local/metallb-system-role.yaml b/cluster-monitoring-local/metallb-system-role.yaml deleted file mode 100644 index 87c2c01..0000000 --- a/cluster-monitoring-local/metallb-system-role.yaml +++ /dev/null @@ -1,30 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: Role -metadata: - name: prometheus-k8s - namespace: metallb-system -rules: -- apiGroups: - - "" - resources: - - services - - endpoints - - pods - verbs: - - get - - list - - watch ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: RoleBinding -metadata: - name: prometheus-k8s - namespace: metallb-system -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: Role - name: prometheus-k8s -subjects: -- kind: ServiceAccount - name: prometheus-k8s - namespace: monitoring diff --git a/cluster-monitoring-local/prometheus-additional.yaml b/cluster-monitoring-local/prometheus-additional.yaml deleted file mode 100644 index c28edb9..0000000 --- a/cluster-monitoring-local/prometheus-additional.yaml +++ /dev/null @@ -1,63 +0,0 @@ -- job_name: gitea - static_configs: - - targets: - - git-ui.lan -- job_name: mysqld - static_configs: - - targets: - - mariadb.lan:9104 -- job_name: mqtt.mosquitto - static_configs: - - targets: - - mqtt.lan:9234 - - mqtt.chaos:9234 -- job_name: haproxy - static_configs: - - targets: - - adm01.wks:9101 - - drucki.wks:9101 - - auto02.chaos:9101 -- job_name: klipper - static_configs: - - targets: - - drucki.wks:3903 -- job_name: octoprint - metrics_path: /plugin/prometheus_exporter/metrics - params: - apikey: - - 30E8B01BFD674E5BBD446D08C4730DF4 - static_configs: - - targets: - - drucki.wks:80 -- job_name: hassio - metrics_path: /api/prometheus - bearer_token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhMzBmYjU1ZjcyZGE0Yzc2YmU2NmY0NjljNTAyMjdjZCIsImlhdCI6MTYxMjg4MzI5NywiZXhwIjoxOTI4MjQzMjk3fQ.1ICsHliUXR0CG4H8vQRYJ5jVqFwmqKSB0fScSitC-Q4' - static_configs: - - targets: - - hassio.lan:80 -- job_name: hassio_ring86 - metrics_path: /api/prometheus - bearer_token: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI0OGFjZTJiNmQ3OTg0Mjc3YWFmMmNmZmU1Yzc4NTE0NCIsImlhdCI6MTYxMjE5Mjk0MCwiZXhwIjoxOTI3NTUyOTQwfQ.BbIAXm9Rq0jb6ouqgVHNd6Keez3NP3yh-7wyfuoB8Yk' - static_configs: - - targets: - - auto.chaos:80 -- job_name: postgres - static_configs: - - targets: - - postgres.live-env.svc.cluster.local:9187 -- job_name: node - static_configs: - - targets: - - adm01.wks:9100 - - dumont-wks.wks:9100 - - drucki.wks:9100 - - ebin01.wks:9100 - - ebin02.wks:9100 - - osmc.wks:9100 - - riot01.wks:9100 - - truhe.chaos:9100 - - auto02.chaos:9100 - - dumont.chaos:9100 - - tumor01.chaos:9100 - - wohnz.chaos:9100 - - yori.chaos:9100 diff --git a/cluster-monitoring-local/prometheus-pvc.yaml b/cluster-monitoring-local/prometheus-pvc.yaml deleted file mode 100644 index 80abc2c..0000000 --- a/cluster-monitoring-local/prometheus-pvc.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: prometheus-k8s-db-prometheus-k8s-0 - namespace: monitoring - annotations: - volume.beta.kubernetes.io/storage-class: "managed-nfs-storage" -spec: - storageClassName: fast - accessModes: - - ReadWriteOnce - resources: - requests: - storage: 20Gi diff --git a/cluster-monitoring-local/pvs.yaml b/cluster-monitoring-local/pvs.yaml deleted file mode 100644 index 38b6343..0000000 --- a/cluster-monitoring-local/pvs.yaml +++ /dev/null @@ -1,41 +0,0 @@ -apiVersion: v1 -kind: PersistentVolume -metadata: - name: prometheus-db - annotations: - pv.kubernetes.io/pirvisioned-by: nfs-ssd -spec: - storageClassName: "nfs-ssd" - nfs: - path: /data/raid1-ssd/k8s-data/prometheus-db - server: ebin01 - capacity: - storage: 40Gi - accessModes: - - ReadWriteOnce - volumeMode: Filesystem - persistentVolumeReclaimPolicy: Retain - claimRef: - kind: PersistentVolumeClaim - name: prometheus-k8s-db-prometheus-k8s-0 - namespace: monitoring ---- -apiVersion: v1 -kind: PersistentVolume -metadata: - name: grafana-conf -spec: - storageClassName: "nfs-ssd" - nfs: - path: /data/raid1-ssd/k8s-data/grafana-conf - server: ebin01 - capacity: - storage: 40Mi - accessModes: - - ReadWriteOnce - volumeMode: Filesystem - persistentVolumeReclaimPolicy: Retain - claimRef: - kind: PersistentVolumeClaim - name: grafana-conf - namespace: monitoring diff --git a/external-dns/values.yaml b/external-dns/values.yaml deleted file mode 100644 index b1a57f1..0000000 --- a/external-dns/values.yaml +++ /dev/null @@ -1,215 +0,0 @@ -# Default values for coredns. -# This is a YAML-formatted file. -# Declare variables to be passed into your templates. - -image: - repository: coredns/coredns - tag: "1.6.9" - pullPolicy: IfNotPresent - -replicaCount: 1 - -resources: - limits: - cpu: 100m - memory: 128Mi - requests: - cpu: 100m - memory: 128Mi - -serviceType: "ClusterIP" - -prometheus: - monitor: - enabled: false - additionalLabels: {} - namespace: "" - -service: -# clusterIP: "" -# loadBalancerIP: "" -# externalTrafficPolicy: "" - annotations: - prometheus.io/scrape: "true" - prometheus.io/port: "9153" - -serviceAccount: - create: false - # The name of the ServiceAccount to use - # If not set and create is true, a name is generated using the fullname template - name: - -rbac: - # If true, create & use RBAC resources - create: true - # If true, create and use PodSecurityPolicy - pspEnable: false - # The name of the ServiceAccount to use. - # If not set and create is true, a name is generated using the fullname template - # name: - -# isClusterService specifies whether chart should be deployed as cluster-service or normal k8s app. -isClusterService: false - -# Optional priority class to be used for the coredns pods. Used for autoscaler if autoscaler.priorityClassName not set. -priorityClassName: "" - -# Default zone is what Kubernetes recommends: -# https://kubernetes.io/docs/tasks/administer-cluster/dns-custom-nameservers/#coredns-configmap-options -servers: -- zones: - - zone: . - port: 53 - plugins: - - name: errors - # Serves a /health endpoint on :8080, required for livenessProbe - - name: health - configBlock: |- - lameduck 5s - # Serves a /ready endpoint on :8181, required for readinessProbe - - name: ready - # Required to query kubernetes API for data - - name: kubernetes - parameters: cluster.local in-addr.arpa ip6.arpa - configBlock: |- - pods insecure - fallthrough in-addr.arpa ip6.arpa - ttl 30 - # Serves a /metrics endpoint on :9153, required for serviceMonitor - - name: prometheus - parameters: 0.0.0.0:9153 - - name: forward - parameters: . /etc/resolv.conf - - name: cache - parameters: 30 - - name: loop - - name: reload - - name: loadbalance - -# Complete example with all the options: -# - zones: # the `zones` block can be left out entirely, defaults to "." -# - zone: hello.world. # optional, defaults to "." -# scheme: tls:// # optional, defaults to "" (which equals "dns://" in CoreDNS) -# - zone: foo.bar. -# scheme: dns:// -# use_tcp: true # set this parameter to optionally expose the port on tcp as well as udp for the DNS protocol -# # Note that this will not work if you are also exposing tls or grpc on the same server -# port: 12345 # optional, defaults to "" (which equals 53 in CoreDNS) -# plugins: # the plugins to use for this server block -# - name: kubernetes # name of plugin, if used multiple times ensure that the plugin supports it! -# parameters: foo bar # list of parameters after the plugin -# configBlock: |- # if the plugin supports extra block style config, supply it here -# hello world -# foo bar - -# expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#affinity-v1-core -# for example: -# affinity: -# nodeAffinity: -# requiredDuringSchedulingIgnoredDuringExecution: -# nodeSelectorTerms: -# - matchExpressions: -# - key: foo.bar.com/role -# operator: In -# values: -# - master -affinity: {} - -# Node labels for pod assignment -# Ref: https://kubernetes.io/docs/user-guide/node-selection/ -nodeSelector: {} - -# expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#toleration-v1-core -# for example: -# tolerations: -# - key: foo.bar.com/role -# operator: Equal -# value: master -# effect: NoSchedule -tolerations: [] - -# https://kubernetes.io/docs/tasks/run-application/configure-pdb/#specifying-a-poddisruptionbudget -podDisruptionBudget: {} - -# configure custom zone files as per https://coredns.io/2017/05/08/custom-dns-entries-for-kubernetes/ -zoneFiles: [] -# - filename: example.db -# domain: example.com -# contents: | -# example.com. IN SOA sns.dns.icann.com. noc.dns.icann.com. 2015082541 7200 3600 1209600 3600 -# example.com. IN NS b.iana-servers.net. -# example.com. IN NS a.iana-servers.net. -# example.com. IN A 192.168.99.102 -# *.example.com. IN A 192.168.99.102 - -# optional array of extra volumes to create -extraVolumes: [] -# - name: some-volume-name -# emptyDir: {} -# optional array of mount points for extraVolumes -extraVolumeMounts: [] -# - name: some-volume-name -# mountPath: /etc/wherever - -# optional array of secrets to mount inside coredns container -# possible usecase: need for secure connection with etcd backend -extraSecrets: [] -# - name: etcd-client-certs -# mountPath: /etc/coredns/tls/etcd -# - name: some-fancy-secret -# mountPath: /etc/wherever - -# Custom labels to apply to Deployment, Pod, Service, ServiceMonitor. Including autoscaler if enabled. -customLabels: {} - -## Configue a cluster-proportional-autoscaler for coredns -# See https://github.com/kubernetes-incubator/cluster-proportional-autoscaler -autoscaler: - # Enabled the cluster-proportional-autoscaler - enabled: false - - # Number of cores in the cluster per coredns replica - coresPerReplica: 256 - # Number of nodes in the cluster per coredns replica - nodesPerReplica: 16 - # Min size of replicaCount - min: 0 - # Max size of replicaCount (default of 0 is no max) - max: 0 - # Whether to include unschedulable nodes in the nodes/cores calculations - this requires version 1.8.0+ of the autoscaler - includeUnschedulableNodes: false - # If true does not allow single points of failure to form - preventSinglePointFailure: true - - image: - repository: k8s.gcr.io/cluster-proportional-autoscaler-amd64 - tag: "1.8.0" - pullPolicy: IfNotPresent - - # Optional priority class to be used for the autoscaler pods. priorityClassName used if not set. - priorityClassName: "" - - # expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#affinity-v1-core - affinity: {} - - # Node labels for pod assignment - # Ref: https://kubernetes.io/docs/user-guide/node-selection/ - nodeSelector: {} - - # expects input structure as per specification https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.11/#toleration-v1-core - tolerations: [] - - # resources for autoscaler pod - resources: - requests: - cpu: "20m" - memory: "10Mi" - limits: - cpu: "20m" - memory: "10Mi" - - # Options for autoscaler configmap - configmap: - ## Annotations for the coredns-autoscaler configmap - # i.e. strategy.spinnaker.io/versioned: "false" to ensure configmap isn't renamed - annotations: {}