diff --git a/assets/external-secrets/external-secrets-0.9.19.tgz b/assets/external-secrets/external-secrets-0.9.19.tgz new file mode 100644 index 000000000..38fa0957a Binary files /dev/null and b/assets/external-secrets/external-secrets-0.9.19.tgz differ diff --git a/assets/gopaddle/gopaddle-5.tgz b/assets/gopaddle/gopaddle-5.tgz new file mode 100644 index 000000000..3a624b975 Binary files /dev/null and b/assets/gopaddle/gopaddle-5.tgz differ diff --git a/assets/speedscale/speedscale-operator-2.2.0.tgz b/assets/speedscale/speedscale-operator-2.2.0.tgz new file mode 100644 index 000000000..ddeb85485 Binary files /dev/null and b/assets/speedscale/speedscale-operator-2.2.0.tgz differ diff --git a/charts/external-secrets/external-secrets/Chart.yaml b/charts/external-secrets/external-secrets/Chart.yaml index ea935a283..fbb4ec161 100644 --- a/charts/external-secrets/external-secrets/Chart.yaml +++ b/charts/external-secrets/external-secrets/Chart.yaml @@ -4,7 +4,7 @@ annotations: catalog.cattle.io/kube-version: '>= 1.19.0-0' catalog.cattle.io/release-name: external-secrets apiVersion: v2 -appVersion: v0.9.18 +appVersion: v0.9.19 description: External secret management for Kubernetes home: https://github.com/external-secrets/external-secrets icon: https://raw.githubusercontent.com/external-secrets/external-secrets/main/assets/eso-logo-large.png @@ -17,4 +17,4 @@ maintainers: name: mcavoyk name: external-secrets type: application -version: 0.9.18 +version: 0.9.19 diff --git a/charts/external-secrets/external-secrets/README.md b/charts/external-secrets/external-secrets/README.md index 29917cdea..1701aa0de 100644 --- a/charts/external-secrets/external-secrets/README.md +++ b/charts/external-secrets/external-secrets/README.md @@ -4,7 +4,7 @@ [//]: # (README.md generated by gotmpl. DO NOT EDIT.) -![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![Version: 0.9.18](https://img.shields.io/badge/Version-0.9.18-informational?style=flat-square) +![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![Version: 0.9.19](https://img.shields.io/badge/Version-0.9.19-informational?style=flat-square) External secret management for Kubernetes diff --git a/charts/external-secrets/external-secrets/templates/crds/externalsecret.yaml b/charts/external-secrets/external-secrets/templates/crds/externalsecret.yaml index abc90cbdc..12102b0d5 100644 --- a/charts/external-secrets/external-secrets/templates/crds/externalsecret.yaml +++ b/charts/external-secrets/external-secrets/templates/crds/externalsecret.yaml @@ -250,10 +250,15 @@ spec: description: Binding represents a servicebinding.io Provisioned Service reference to the secret properties: name: + default: "" description: |- Name of the referent. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. TODO: Add other useful fields. apiVersion, kind, uid? + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. type: string type: object x-kubernetes-map-type: atomic @@ -756,10 +761,15 @@ spec: description: Binding represents a servicebinding.io Provisioned Service reference to the secret properties: name: + default: "" description: |- Name of the referent. - More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + This field is effectively required, but due to backwards compatibility is + allowed to be empty. Instances of this type with an empty value here are + almost certainly wrong. TODO: Add other useful fields. apiVersion, kind, uid? + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + TODO: Drop `kubebuilder:default` when controller-gen doesn't need it https://github.com/kubernetes-sigs/kubebuilder/issues/3896. type: string type: object x-kubernetes-map-type: atomic diff --git a/charts/gopaddle/gopaddle/.DS_Store b/charts/gopaddle/gopaddle/.DS_Store deleted file mode 100644 index aa7c5f1e3..000000000 Binary files a/charts/gopaddle/gopaddle/.DS_Store and /dev/null differ diff --git a/charts/gopaddle/gopaddle/Chart.yaml b/charts/gopaddle/gopaddle/Chart.yaml index dcf7572f2..06e2941c9 100644 --- a/charts/gopaddle/gopaddle/Chart.yaml +++ b/charts/gopaddle/gopaddle/Chart.yaml @@ -1,35 +1,19 @@ annotations: - artifacthub.io/changes: |- - - kind: added - description: Docker Compose based installer for Docker Desktop extension - - kind: changed - description: Docker Image size optimization for faster installation - - kind: added - description: Gitlab person access token support added - - kind: changed - description: EKS cluster create - UX improvements for Master role ARN, Node role ARN & ALB role catalog.cattle.io/certified: partner catalog.cattle.io/display-name: gopaddle catalog.cattle.io/kube-version: '>=1.21-0' catalog.cattle.io/namespace: gopaddle catalog.cattle.io/release-name: gopaddle apiVersion: v2 -appVersion: 4.2.9 -dependencies: -- condition: global.installer.chart.gp-core - name: gp-core - repository: file://./charts/gp-core -- condition: global.installer.chart.rabbitmq - name: gp-rabbitmq - repository: file://./charts/gp-rabbitmq -description: Simple low-code platform for Kubernetes developers and operators +appVersion: "5" +description: Kubernetes IDE with AI Co-pilot home: https://gopaddle.io icon: https://gopaddle-marketing.s3.ap-southeast-2.amazonaws.com/gopaddle.png keywords: - low-code -- Internal Developer Platform -- PaaS -- Community Edition +- IDE +- Co-pilot +- GenAI kubeVersion: '>=1.21-0' name: gopaddle -version: 4.2.9 +version: "5" diff --git a/charts/gopaddle/gopaddle/README.md b/charts/gopaddle/gopaddle/README.md deleted file mode 100644 index 7a7f588dd..000000000 --- a/charts/gopaddle/gopaddle/README.md +++ /dev/null @@ -1,176 +0,0 @@ -gopaddle - -# [gopaddle](https://gopaddle.io/) - -## Simplest DevSecOps platform for Kubernetes developers and operators. - -gopaddle is a simple low-code Internal Developer Platform (IDP) for Kubernetes developers and operators. Using gopaddle, developers can generate everything they need to set up Kubernetes infrastructure on multiple cloud environments and deployment applications with ease. From Dockerfiles to Kubernetes YAML files, Helm Charts, and pipeline code, gopaddle will help containerize and get the applications running in minutes. Developers can also efficiently manage existing applications on the Kubernetes cluster by monitoring the application performance and setting alerts and notificications. -
- -## gopaddle Lite -gopaddle Lite is a life-time free community edition of gopaddle that can be installed in a single node/single user mode on a Kubernetes cluster. gopaddle lite comes with many capabilities that helps developers to built a self-service portal for a small scale Kubernetes deployment at zero cost. gopaddle Lite is available on a variety of marketplaces like microk8s add-on, SUSE Rancher Prime, ArtifactHub and many more. - -[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/gopaddle-lite)](https://artifacthub.io/packages/search?repo=gopaddle-lite) -[![Slack Channel](https://img.shields.io/badge/Slack-Join-purple)](https://gopaddleio.slack.com/join/shared_invite/zt-1l73p8wfo-vYk1XcbLAZMo9wcV_AChvg#/shared-invite/email/expanded-email-form) -[![Twitter](https://img.shields.io/twitter/follow/gopaddleio?style=social)](https://twitter.com/gopaddleio) -[![YouTube Channel](https://img.shields.io/badge/YouTube-Subscribe-red)](https://www.youtube.com/channel/UCtbfM3vjjJJBAka8DCzKKYg) -

- -## Installation - -### Minimum System Requirements -gopaddle installation requires a minimum of `8GB RAM` and `4 vCPUs` - -### Firewall Ports -The following incoming firewall ports need to be opened - `30003`, `30004`, `30006`, `32000` and any port that is needed for nodeport based application deployment. - -### Step to install using Helm Charts - -Add the helm repo - -```sh -helm repo add gopaddle https://gopaddle-io.github.io/gopaddle-lite/ -helm repo update -``` -Install the chart - -```sh -helm install gp-lite gopaddle/gopaddle --namespace gp-lite-4-2 --create-namespace -``` - -### Validating the installation -gopaddle installation can be validated by waiting for the gopaddle services to move to `ready` state. - -```sh -root@localhost:~# kubectl wait --for=condition=ready pod -l released-by=gopaddle -n gp-lite-4-2 --timeout=15m -pod/webhook-7c49ddfb78-ssvcz condition met -pod/mongodb-0 condition met -pod/esearch-0 condition met -pod/deploymentmanager-65897c7b9c-qlgk8 condition met -pod/appworker-8546598fd-7svzv condition met -pod/influxdb-0 condition met -pod/costmanager-6496dfd6c4-npqj8 condition met -pod/rabbitmq-0 condition met -pod/gpcore-85c7c6f65b-5vfmh condition met -``` - -One the installation is complete, gopaddle dashboard can be accessed at http://[NodeIP]:30003/ - -NodeIP can be obtained by executing the command below: - -```sh -root@localhost:~# kubectl get nodes -o wide -``` - -## microk8s addon for gopaddle lite - -The microk8s addon for gopaddle community (lite) edition uses this helm -repository for helm-based installation of gopaddle-lite. - -For documentation specific to microk8s addon for gopaddle community (lite) -edition, see: -https://help.gopaddle.io/en/articles/6654354-install-gopaddle-lite-microk8s-addon-on-ubuntu - -## gopaddle lite on SUSE Rancher Prime -gopaddle Lite can be easily installed by choosing the gopaddle chart from the Rancher Prime marketplace place. -For documentation specific to installing gopaddle community (lite) edition on Rancher Prime, see: - -https://help.gopaddle.io/en/articles/6977654-install-gopaddle-lite-on-suse-rancher-prime - -## Getting started with gopaddle - -Once the gopaddle lite dashboard is available, developers can open the gopaddle dashboard in the browser, review the evaluation agreement and subscribe to the lite edition. - -gp-evaluation-agreement - - -### Containerize and Deploy - -Once the subscription is complete, developers can login to the gopaddle console, using their email ID and the initial password. - -In the main dashboard, the **Containerize and Deploy** Quickstart wizard helps to onboard a Source Code project from GitHub using the GitHub personal access token, build and push the generated container image to the Docker Registry. Once the build completes, gopaddle generates the necessary YAML files and deploys the docker image to the local microk8s cluster. - -gp-quickstart-wizards - -#### Pre-requisites - -[Docker Access Token with Read & Write Permissions](https://www.docker.com/blog/docker-hub-new-personal-access-tokens/) - -[GitHub Person Access Token for containerizing Private Repositories](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token) - -In the final step of the Containerize and Deploy Quickstart wizard, enable the option to **Disable TLS verification**. - -containerize-deploy-quickstart - -All the artificats generated during the process can be edited and re-deployed at a later stage. - -## Features -## 1\. DevOps Dashboard - -The main dashboard gives a bird's eye view of the clusters, volumes, applications, events and projects imported and managed by gopaddle. - -![DevOps Dashboard]() - -## 2\. Builds & Vulnerabilities - -The builds and vulnerabilities dashboard captures the status of the Docker builds and the severity of the vulnerabilities identified in the builds. - -![Builds & Vulnerabilities]() - -## 3\. Quick start wizards - -gopaddle offers 3 type of quick start wizards - - -**1\. Provision Clusters** \- Onboard GKE or AWS cloud accounts with fine grained access controls and provision multi-cloud Kubernetes cluster. Available only in SaaS & Enterprise Editions. - -**2\. Dockerize & Deploy** \- Automatically generate Dockerfiles and Kubernetes YAML files by analyzing the source code in GitHub or GitLab accounts and deploy them on to Kubernetes clusters. - -**3\.Generate Pipeline code** \- Generate Jenkins or GitHub Actions or Azure DevOps pipeline Code for an application deployed through gopaddle. - -![Quickstart Wizards]() - -## 4\. Marketplace - -Subscribe to a gopaddle marketplace application, and visualize the helm chart in the design studio. These templates can be launched on a Kubernetes cluster using simple UI based wizards. - -![Marketplace]() - -## 5\. Cluster Management - -Clusters can be centrally managed. gopaddle automatically installs a few addons on these clusters - like Prometheus and Grafana for an out-of-the-box monitoring and alerting capabilties. - -![Cluster Management]() - -## 6\. Designer Studio - -Design Studio provides a visual representation of the Kubernetes resources and helps to quickly design and compose Kubernetes resources without having to learn YAML. - -![Designer Studio]() - -## 7\. Application Management - -Centrally monitor the existing Kubernetes deployments. - -![Application Management]() - -## 8\. Alerts & Notifications - -Set alerts and notifications for the applications and clusters managed by gopaddle. gopaddle supports any type of incoming webhooks, slack, AWS SNS, Jenkins Jobs and PagerDuty as notification channel. - -![Alerts & Notifications]() - -## 9\. Developer Tools - Container Terminal - -Easily troubleshoot issues in deployments using inbuilt developer tools like Container terminal without having to use Kubectl commands. - -![Container Terminal]() - -## 10\. Developer Tools - Container Logs - -Easily troubleshoot issues in deployments using inbuilt developer tools like Container logs without having to use Kubectl commands. - -![Container Logs]() - -## Help - -For help related to gopaddle community (lite) edition, visit the gopaddle Help Center at: https://help.gopaddle.io diff --git a/charts/gopaddle/gopaddle/charts/gp-core/Chart.yaml b/charts/gopaddle/gopaddle/charts/gp-core/Chart.yaml deleted file mode 100644 index c95ec3a7d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/Chart.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: v2 -appVersion: 4.2.9 -description: A Helm chart for Kubernetes -name: gp-core -type: application -version: 4.2.9 diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/error_config.json deleted file mode 100644 index 33b763b13..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/error_config.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "all":{ - "ACTIVITY_NOTFOUND":"Resource '%s' does not exist", - "SOMETHING_WRONG": "Internal Error", - "INPUT_PAYLOAD_ERROR":"Input payload have error: %s", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "MARSHAL_ERROR":"Error in marshaling '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED": "Given %s is not supported", - "NOUNREAD_MSG":"unRead Messages are not there to update", - "INVALID_A_FMT":"Requesting Activity is in invalid format '%s'", - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requesting invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requesting invalid size '%d' Page should be less than '%d'" - }, - "gpctl":{ - "GPCTL_NOTFOUNT":"resource '%s' does not exist" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/internal_api.json deleted file mode 100644 index 9d08c5a46..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/internal_api.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "allAPI":{ - "readUserByID":"api/%s/user?organizationID=%s", - "readRuleByID":"api-internal/%s/v1/%s/rule/%s", - "triggerNotificationByID":"api-internal/%s/v1/%s/notification/%s", - "readBilling":"api/%s/v1/billing" - }, - "acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s&project=%s", - "port":"8005" - }, - "aclProject":{ - "url":"http://%s:%s/api-in/%s/v1/acl?project=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api-in/%s/v1/subusers/%s", - "port":"8005" - }, - "project":{ - "url":"http://%s:%s/api-internal/%s/v1/projectlist", - "port":"8005" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/log_app_force_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/log_app_force_config.json deleted file mode 100644 index e3bb7483d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/log_app_force_config.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "formatters": { - "appForce": { - "format": "%(asctime)s %(levelname)s (%(filename)s:%(lineno)d) %(message)s", - "datefmt": "%Y-%m-%d %H:%M:%S" - } - }, - "handlers": { - "appForce": { - "class": "RotatingFileHandler", - "filepath": "./appForce.log", - "mode": "O_APPEND", - "bufferSize": 0, - "bufferFlushTime": 30000, - "inputChanSize": 1, - "maxBytes": 104857600, - "backupCount": 9, - "formatter": "appForce" - } - }, - "loggers": { - "appForce": { - "level": "DEBUG", - "handlers": [ - "appForce" - ] - } - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/log_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/log_config.json deleted file mode 100644 index 55ae94775..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/log_config.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "formatters": { - "deploymentmanager": { - "format": "%(asctime)s %(levelname)s (%(filename)s:%(lineno)d) %(message)s", - "datefmt": "%Y-%m-%d %H:%M:%S" - } - }, - "handlers": { - "deploymentmanager": { - "class": "RotatingFileHandler", - "filepath": "./deploymentmanager.log", - "mode": "O_APPEND", - "bufferSize": 0, - "bufferFlushTime": 30000, - "inputChanSize": 1, - "maxBytes": 104857600, - "backupCount": 9, - "formatter": "deploymentmanager" - } - }, - "loggers": { - "debug": { - "level": "DEBUG", - "handlers": [ - "deploymentmanager" - ] - }, - "info": { - "level": "INFO", - "handlers": [ - "deploymentmanager" - ] - }, - "warn": { - "level": "WARN", - "handlers": [ - "deploymentmanager" - ] - }, - "error": { - "level": "ERROR", - "handlers": [ - "deploymentmanager" - ] - }, - "fatal": { - "level": "FATAL", - "handlers": [ - "deploymentmanager" - ] - } - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/profiles-kube.json deleted file mode 100644 index 81db49c58..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/profiles-kube.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "mongodb":{ - "db-name":"activity", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - }, - "rabbitmq":{ - "mq-protocol":"amqp", - "mq-user":"admin", - "mq-password":"cGFzc3dvcmQ", - "mq-ip":"rabbitmq", - "mq-port":"5672", - "mq-activity-host": "/activity", - "mq-activity-queue": "activity-worker-queue", - "mq-exchange-name":"activity", - "mq-exchange-type":"fanout", - "mq-activity-queue-containerLimit":"activity-containerLimit", - "mq-activity-queue-serviceLimit":"activity-serviceLimit" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/service_directory-kube.json deleted file mode 100644 index a147cad4b..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/activitymanager/activitymanager/service_directory-kube.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "core.ep": { - "host": "gpcore", - "port": "8759" - }, - "configmanager.ep": { - "host": "configmanager", - "port": "8001" - }, - "deploymentmanager.ep": { - "host": "deploymentmanager", - "port": "8003" - }, - "user.ep": { - "host": "usermanager", - "port": "8005" - }, - "alertmanager.ep":{ - "host": "alertmanager", - "port": "8012" - }, - "nodechecker.ep":{ - "host": "nodechecker", - "port": "8020" - }, - "usermanager.ep": { - "host": "usermanager", - "port": "8005" - }, - "costmanager.ep":{ - "host":"costmanager", - "port":"8011" - }, - "notification.ep":{ - "host":"activitymanager", - "port":"8009" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/alertmanager/alertmanager/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/alertmanager/alertmanager/error_config.json deleted file mode 100644 index d1a421be5..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/alertmanager/alertmanager/error_config.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "SOMETHING_WRONG": "Internal Error", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "INPUT_PAYLOAD_ERROR":"Input payload have error: %s", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "MARSHAL_ERROR":"Error in marshaling '%s'", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED": "Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type", - "QUERY_PARAMETER_VALUE_MISMATCH":"Query Parameter '%s' value '%s' mismatch" - }, - "notification":{ - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "INVALID_NOTIFICATIONID_FMT": " '%s' NotificationID format is invalid", - "NOTIF_NOTFOUND": " '%s' notificationID is not found", - "INVALID_PAGERDUTY_SERVICE": "'%s' Invalid Service: '%s'", - "NOTIF_ALREADY_EXIST":"Requested notification '%s' already exists" - }, - "rule":{ - "INVALID_EVENT_STATE":"Resource State '%s' is invalid", - "RULE_NOTFOUND":"%s ruleID is not found", - "INVALID_RULEID_FMT":"Rule ID format is invalid", - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "RULE_ALREADY_EXIST":"Given rule name '%s' already used" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/alertmanager/alertmanager/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/alertmanager/alertmanager/internal_api.json deleted file mode 100644 index 70de38170..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/alertmanager/alertmanager/internal_api.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "allAPI":{ - "readUserByID":"api/%s/user?organizationID=%s", - "readNotificationByID":"api/%s/v1/%s/notification/%s", - "updateAppDependencyRef":"api-internal/%s/v1/%s/application", - "updateServiceRules":"api-updateRule/%s/v1/%s/release/%s/distribution/%s/container", - "updateNotificationDependencyRef":"api-in/%s/v1/%s/notification/%s", - "updateCluster":"api-internal/%s/v1/%s/cluster" - }, -"acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s&project=%s", - "port":"8005" - }, - "aclProject":{ - "url":"http://%s:%s/api-in/%s/v1/acl?project=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api-in/%s/v1/subusers/%s", - "port":"8005" - }, - "project":{ - "url":"http://%s:%s/api-internal/%s/v1/projectlist", - "port":"8005" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/alertmanager/alertmanager/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/alertmanager/alertmanager/profiles-kube.json deleted file mode 100644 index 54f82a94a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/alertmanager/alertmanager/profiles-kube.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "mongodb":{ - "db-name":"alertmanager", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "alerturl":{ - "msgurl":"NODE_IP" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - }, - "gopaddleDefaultMessage":{ - "smsTestingDefaultMessage":"Notification SMS" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/alertmanager/alertmanager/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/alertmanager/alertmanager/service_directory-kube.json deleted file mode 100644 index 2b2df221d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/alertmanager/alertmanager/service_directory-kube.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "alertmanager.ep": { - "host": "configmanager", - "port": "8001" - }, - "notification.ep": { - "host":"alertmanager", - "port":"8012" - }, - "deploymentManager.ep": { - "host": "deploymentmanager", - "port": "8003" - }, - "builder.ep": { - "host": "gpcore", - "port": "8759" - }, - "nodechecker.ep": { - "host":"nodechecker", - "port":"8020" - }, - "configmanager.ep": { - "host":"configmanager", - "port":"8001" - }, - "clustermanager.ep": { - "host": "clustermanager", - "port": "8013" - }, - "usermanager.ep":{ - "host":"usermanager", - "port":"8005" - }, - "gpcore.ep":{ - "host":"gpcore", - "port":"8759" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/error_config.json deleted file mode 100644 index e37f7a099..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/error_config.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED": "Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type", - "SOMETHING_WRONG": "Internal Error", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "MARSHAL_ERROR":"Error in marshaling '%s'" - }, - "All":{ - "SOMETHING_WRONG": "Internal Error", - "PARSE_ERROR":"Failed to parse the request payload : %s", - "DIR_ERROR":"Failed to create a directory: %s", - "FILE_CREAT_ERROR":"Failed to create a file: %s", - "FILE_TAR_ERROR":"Failed to tar the file: %s", - "FILE_OPEN_ERROR":"Failed to open the file: %s", - "FILE_GZIP_ERROR":"Failed to gzip the file: %s" - }, - "notification":{ - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "NFC_NOTFOUND":"Requested notificaiton channel '%s' is not found", - "NFC_ALREADY_EXIST":"Requested notificaiton channel '%s' is already exist", - "INVALID_NOTIFICATIONID_FMT":"Requested notification id '%s' is invalid formate" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/internal_api.json deleted file mode 100644 index f0974dc44..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/internal_api.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "allAPI":{ - "readUserByID":"api/%s/user?organizationID=%s" - }, - "acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s&project=%s", - "port":"8005" - }, - "aclProject":{ - "url":"http://%s:%s/api-in/%s/v1/acl?project=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api-in/%s/v1/subusers/%s", - "port":"8005" - }, - "project":{ - "url":"http://%s:%s/api-internal/%s/v1/projectlist", - "port":"8005" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/profiles-kube.json deleted file mode 100644 index a3d722ab0..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/profiles-kube.json +++ /dev/null @@ -1,77 +0,0 @@ -{ - "mongodb":{ - "db-name":"appscanner", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - }, - "endpoints":{ - "google_endpoints":{ - "refresh_token":"https://www.googleapis.com/oauth2/v3/token", - "cluster_details":"https://console.developers.google.com/kubernetes/clusters/details" - }, - "github":{ - "endpoints":{ - "host":"https://github.com", - "host_api":"https://api.github.com" - }, - "saas_suffix":{ - "access_token":"/login/oauth/access_token", - "user_data":"/user", - "create_repo":"/user/repos", - "getrepo":"/repos/:username/:reponame", - "getcommit":"/repos/:username/:reponame/commits", - "push_content":"/repos/:username/:reponame/contents/:path", - "tags":"/repos/:username/:reponame/tags", - "branches":"/repos/:username/:reponame/branches", - "listing_repos":"/user/repos", - "pull_tarball":"/repos/:username/:reponame/tarball", - "webhook":"/repos/:username/:reponame/hooks", - "webhook_get":"/repos/:username/:reponame/hooks/:hookID", - "Remove_Git_Webhook":"/repos/:username/:reponame/hooks/:hookID", - "Gettree":"/repos/:username/:reponame/git/trees/:tree_sha" - }, - "onprem_suffix":{ - "access_token":"/login/oauth/access_token", - "user_data":"/api/v3/user", - "tags":"/api/v3/repos/:username/:reponame/tags", - "getrepo":"/api/v3/repos/:username/:reponame", - "getcommit":"/api/v3/repos/:username/:reponame/commits", - "branches":"/api/v3/repos/:username/:reponame/branches", - "listing_repos":"/api/v3/user/repos", - "pull_tarball":"/api/v3/repos/:username/:reponame/tarball", - "webhook":"/api/v3/repos/:username/:reponame/hooks", - "webhook_get":"/api/v3/repos/:username/:reponame/hooks/:hookID", - "Remove_Git_Webhook":"/api/v3/repos/:username/:reponame/hooks/:hookID" - }, - "urlvalidation":[ - "https://:hostname/.*/(.*)\\.git", - "git@:hostname:.*/(.*)\\.git", - "https://:hostname/(.*)/.*\\.git", - "git@:hostname:(.*)/.*\\.git" - ] - }, - "github_endpoints":{ - "access_token":"https://github.com/login/oauth/access_token", - "user_data":"https://api.github.com/user", - "create_repo":"https://api.github.com/user/repos", - "push_content":"https://api.github.com/repos/:username/:reponame/contents/:path", - "listing_tags":"https://api.github.com/repos/:username/:reponame/tags", - "listing_branches":"https://api.github.com/repos/:username/:reponame/branches", - "listing_repos":"https://api.github.com/user/repos", - "pull_tarball":"https://api.github.com/repos/:username/:reponame/tarball", - "webhook":"https://api.github.com/repos/:username/:reponame/hooks", - "webhook_get":"https://api.github.com/repos/:username/:reponame/hooks/:hookID", - "Remove_Git_Webhook":"https://api.github.com/repos/:username/:reponame/hooks/:hookID" - } - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/service_directory-kube.json deleted file mode 100644 index 28017b069..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/service_directory-kube.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "configmanager.ep": { - "host": "configmanager", - "port": "8001" - }, - "codebase.ep": { - "host": "gpcore", - "port": "8759" - }, - "usermanager.ep":{ - "host":"usermanager", - "port":"8005" - }, - "deploymentmanager.ep": { - "host": "deploymentmanager", - "port": "8003" - }, - "release.ep": { - "host": "gpcore", - "port": "8759" - }, - "clustermanager.ep": { - "host": "clustermanager", - "port": "8013" - }, - "cloudaccount.ep":{ - "host":"cloudmanager", - "port":"8018" - }, - "domainmanager.ep":{ - "host":"domainmanager", - "port":"8004" - }, - "notification.ep":{ - "host":"activitymanager", - "port":"8009" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/versionMatrix.json b/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/versionMatrix.json deleted file mode 100644 index 18c8787e9..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appscanner/appscanner/versionMatrix.json +++ /dev/null @@ -1,1785 +0,0 @@ -{ - "supportedVersions": [ - "v1.6", - "v1.7", - "v1.8", - "v1.9", - "v1.10", - "v1.11", - "v1.12", - "v1.13", - "v1.14", - "v1.15", - "v1.16", - "v1.17", - "v1.18", - "v1.19", - "v1.20", - "v1.21", - "v1.22", - "v1.23", - "v1.24", - "v1.25", - "v1.26", - "v1.27" - ], - "v1.6": { - "deployment": [ - "apps/v1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.7": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.8": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.9": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.10": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.11": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.12": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.13": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.14": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.15": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.16": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.17": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.18": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.19": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.20": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.21": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.22": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.23": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.24": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.25": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.26": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.27": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/Chart.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/Chart.yaml deleted file mode 100644 index 7f931438d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/Chart.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: v2 -name: HELM_CHART -description: DESCRIPTION - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.0 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -appVersion: APP_VERSION \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/clusterrole.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/clusterrole.yaml deleted file mode 100644 index 4f75f6d47..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/clusterrole.yaml +++ /dev/null @@ -1,72 +0,0 @@ -{{- if eq (include "gen.clusterrole" .) "true" -}} -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: gopaddle:nginx-ingress-clusterrole -rules: - - apiGroups: - - "" - resources: - - configmaps - - endpoints - - nodes - - pods - - secrets - verbs: - - list - - watch - - apiGroups: - - "" - resources: - - nodes - verbs: - - get - - apiGroups: - - "" - resources: - - services - verbs: - - get - - list - - watch - - apiGroups: - - extensions - - networking.k8s.io - resources: - - ingresses - - ingressclasses - verbs: - - get - - list - - watch - - apiGroups: - - "" - resources: - - events - verbs: - - create - - patch - - apiGroups: - - extensions - - networking.k8s.io - resources: - - ingresses/status - - ingressclasses - verbs: - - update - - apiGroups: - - "" - resourceNames: - - ingress-controller-leader - resources: - - configmaps - verbs: - - get - - update - - apiGroups: - - "" - resources: - - configmaps - verbs: - - create -{{- end }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/error_config.json deleted file mode 100644 index 147c38262..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/error_config.json +++ /dev/null @@ -1,246 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "RESOURCE_NOT_FOUND_WITHOUT_NAME":"Resource does not exit", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED": "Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type", - "SERVICE_NOT_FOUND":"Template need Atleast one Service", - "DR_NOTFOUND":"Requested Dependency Reference '%s' is not found", - "CLUSTER_WIDE_DT_SERVICE_RESTRICTION":"Cluster Wide Deployment will have only one service", - "DEPENDENCY_EXIST_RESOURCE":"This Resource has dependency: '%s'", - "SOMETHING_WRONG": "Internal Error", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "MARSHAL_ERROR":"Error in marshaling '%s'", - "SCHEDULE_JOB":"Failed on scheduling job: '%s'", - "RESPONSE_FORMATTING":"Failed on formatting response: '%s'" - }, - "daemonset": { - "NAMING_CONVENTION":"'%s' violates the naming convention for daemonset. Allowed names should match (^[a-z][a-z0-9-]*[a-z0-9]$)", - "DAEMONSET_NOT_FOUND": "Requested Daemonset '%s' is not found", - "SERVICE_NOT_FOUND": "Requested Service '%s' is not found", - "ALREADY_EXIST":"Given Daemonset name '%s' is already in use", - "EMPTY_NODES": "Requested cluster %s does not have healthy nodes to deploy the template", - "MISSING_NODES": "Failed to fetch nodes for the cluster '%s' to validate deployment process", - "DEPLOYMENT_TEMPLATE_NOT_FOUND": "Requested Deployment Template '%s' is not found", - "INVALID_ACCESS_TYPE": "Given access type '%s' is invalid", - "PORT_VALIDATION": "Requested port '%s' is already in use", - "ALTERNATIVE_PORT_MISSING": "Alternative port for '%s' under service '%s' is not provided in the request", - "EMPTY_ALTERNATIVE_PORT": "Request does not contain an alternative port for '%s' to expose", - "UNSUPPORTED_UPDATE_TYPE": "Requested service '%s' does not support update operation", - "VERSION_NOT_FOUND": "Requested version '%s' is not available under the service '%s'", - "VOLUME_ALREADY_USED": "Warning : Volume '%s' is already used by service '%s'. Data stored in the disk will be erased permanently", - "VOLUME_ALREADY_INUSE": "Volume '%s' is currently in use by service '%s'. Please select a different volume", - "VOLUME_NOT_AVAILABLE": "Volume '%s' is not available. Please select a different volume" - }, - "deploymentTemplate":{ - "DT_NOTFOUND":"Requesting DeploymentTemplate '%s' is not found", - "INVALID_PAYLOAD":"Given Payload is invalid: ", - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "INVALID_DEPLOYMENTTEMPLATEID_FMT":"Requested deploymentTemplate id is invalid format '%s'", - "DEPLOYMENTTEMPLATE_NOTFOUND":"Requested Deployment Template '%s' is not found", - "DEPLOYMENTTEMPLATE_ALREADY_EXIST":"Requested Deployment Template '%s' already exist", - "DEPLOYMENTTEMPLATEHIST_NOTFOUND":"Requested Deployment Template '%s' is not found", - "SERVICEGROUPNAME_ALREADY_EXIST":"Given ServiceGroup name '%s' already used", - "SERVICEGROUP_MIN_COUNT_DELETION_":"Service Group Deletion action can't be performed, Deployment Template need atleast only one Service Group", - "UPDATETYPE_MISSING":"UpdateType field missing", - "FIELD_MISSING":"Required Field Missing '%s'", - "SERVICEGROUPS_ARRAY_MISSING":"Service Groups []Object '%s' is missing", - "SERVICE_OBJECT_MISSING":"Service object '%s' is missing", - "SERVICEGROUP_NAME_NOT_FOUND":"Requested Deployment Template Service Group '%s' is not found", - "SERVICE_NAME_NOT_FOUND":"Requesting Deployment Template Service ID '%s' not found in Service Group '%s'", - "SERVICE_NAME_CANNOTBE_DUPLICATE":"In Service Group '%s' Encountered duplication values of service name '%s'", - "SERVICEGROUP_PORTS_CANNOTBE_DUPLICATE":"In Service Group '%s' Encountered duplication values of port '%d'", - "SERVICE_MIN_COUNT_DELETION_":"Service Deletion action can't be performed, Service Group need atleast only one Service ", - "BUILD_OBJECT_MISSING":"Build object missing in service '%s'", - "PORT_MISMATCH":"Port Mismatching '%d'", - "DUPLICATE_SERVICE_PORT":"Ports can't be same in ServieGroup, Service Port '%d' already used in one of services in '%s'", - "MOUNT_PATH_MISMATCH":"Mount Path Mismatch between actual service '%s' and value in ServiceGroup '%s'", - "STORAGENAME_NOTFOUND":"Storage Name '%s' not found in StorageGroups", - "ACTUAL_SERVICE_NOT_HAVING_CONFIG":"You can't update Confgis in ServiceGroup '%s' because Actual Service '%s' does't contain any configs", - "ACTUAL_SERVICE_HAVING_CONFIG":"You can't delete Confgis in ServiceGroup '%s' because Actual Service '%s' contains configs", - "CYCLIC_DEPENDENCY":"Cyclic Dependency between ServiceGroup '%s' and '%s'", - "SG_VERSION_DRAFT":"Can't commit serviceGroup '%s' version as '%s'" - - }, - "serviceGroup":{ - "BUILD_OBJECT_MISSING":"Build object missing in service '%s'", - "SERVICEGROUP_NOTFOUND":"Requested Service Group '%s' is not found", - "SERVICEGROUP_ALREADY_EXIST":"Requested Service Group '%s' already exist", - "SERVICEGROUP_OBJECT_MISSING":"Service Group object '%s' is missing", - "SERVICE_OBJECT_MISSING":"Service object '%s' is missing", - "SERVICE_ARRAY_MISSING":"Service []Object '%s' is missing", - "SERVICEGROUPEHIST_NOTFOUND":"Requested ServiceGroup history '%s' with version '%s' is not found", - "SERVICEGROUP_PORTS_CANNOTBE_DUPLICATE":"In Service Group '%s' Encountered duplication values of port '%d'", - "UPDATETYPE_MISSING":"UpdateType field missing", - "STATELESSSCALINGPOLICY":": stateless for this ServiceGroupType ScalingPolicy is required", - "STATEFULSCALINGPOLICY":": stateful for this ServiceGroupType ScalingPolicy will not come", - "SCALINGRESTRICT":" can't attach ScalingPolicy for this serviceGroup '%s' because StorageGroup has PersistentVolume", - "PODDEPLOYMENTPOLICY":"pod for this ServiceGroupType deploymentPolicy will not come", - "INVALID_SERVICEGROUPID_FMT":"Requested serviceGroup id is invalid format '%s'", - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "MOUNT_PATH_MISMATCH":"Mount Path Mismatch between actual service '%s' and value in ServiceGroup '%s'", - "STORAGENAME_NOTFOUND":"Storage Name '%s' not found in StorageGroups", - "SERVICE_NAME_CANNOTBE_DUPLICATE":"In Service Group '%s' Encountered duplication values of service name '%s'", - "PORT_MISMATCH":"Port Mismatching '%d'", - "BUILD_IN_FAILED":"Build is in failed state", - "SERVICE_VERSION_DRAFT":"Can't commit service '%s' version as '%s'", - "SERVICE_CONFIG_VERSION":"Can't commit service '%s' config '%s' version as '%s'", - "PODAFFINITY_EXPRESSION":"Invalid Value for labelExpression operator: %s", - "PODAFFINITY_TOPOLOGYKEY":"Invalid topologyKey : %s", - "STORAGENAME_UNIQUE":"volumeLabel must contain unique values", - "SECURITYCONTEXT_NOT_ALLOWED":"securityContext runAsNonRoot is '%s' but the given runAsUser is '%s' root value" - }, - "All":{ - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "INVALID_ID":"Requested resource id '%s' is invalid format", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type" - }, - "App":{ - "APP_NOTFOUND":"Requested application '%s' is not found", - "APP_ALREADY_EXIST":"Requested application '%s' is already exist", - "NOT_IMPLEMENT":"This module has not been implemented", - "PAGESIZE_LESSONE":"Page or Size can not be less than one { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d'; Size should be less than '%d'", - "INVALID_CONFIGID_FMT":"Requesting config id is invalid formate '%s'", - "DONOT_MOD_FIELD":"You could not modify the field '%s' value after creation", - "CP_SETUP_FAILED":"Gopaddle setup failed with '%s'", - "ACTIVITY_NOTFOUND":"Requested application's activity '%s' is not found", - "INGRESS_NODEPORT_MISSING":"'accessInfo.httpNodePort' and 'accsessInfo.httpsNodePort' can not be nil if access info is nodeIPIngress", - - "//Volume configuration":"", - "VOLUME_MISSING":"Volume info is missing to the service group '%s'", - "HOSTVOL_MISSING":"Host volume is missing to the storage name '%s' in service group '%s'", - "PV_MISSING":"Persistent volume is missing to the storage name '%s' in service group '%s'", - "SVOLUME_MISSING":"Static volume is missing to the storage name '%s' in service group '%s'", - "USED_SVOLUME": "Volume '%s' is unavailable status '%s'. Please select a different volume", - "DUP_SVOLUME": "The Given request contains duplicate static volume informations '%s'", - "SC_MISSING": "Storage class is missing to the storage name '%s' in the service group '%s'", - "INVALID_SCALING":"Autosclaing Max replica '%d' is less than Deployment policy Replica '%d' in service group '%s'", - "REPLICA_IN_STATIC":"Replicas should be only one if the service group '%s' contains the static volume", - "REPLICA_IN_DYNAMIC":"Replicas should be only one if the service group '%s' contains the dynamic volume and also no stateful type", - "SCALING_IN_VOLUME":"Scaling relicas should be only one if the service group '%s' contains the persistence volume", - - "//NFS Provisioner":"", - - "DEPLOYMENTTEMPLATE_READ_ERROR":"There is a problem in reading deployment template", - "STORAGECLASS_READ_ERROR":"There is a problem in reading storage class", - "PROVISIONER_READ_ERROR":"There is a problem in reading provisioner", - - "//Port configuration":"", - "PORT_MISSING":"Port info is missing to the service group '%s'", - "EX_PORT_MISSING":"Expose port '%d' is null in the service group '%s.%s'", - "BOTH_PORT_OPTION":"The port '%d' can not be used both alternative port and ingress, in the service group '%s.%s'", - "INVALID_INGRESS_PATH":"We detected invalid path '%s' for port '%d', in the service group '%s.%s'", - "INVALID_PORT":"We detected invalid port '%d', in the service group '%s.%s'", - "INGRESS_PATH_MISSING":"Ingress path info '%s' is missing to the service group '%s.%s'", - "INGRESS_LBIP_MISSING":"LoadBalancerIp is missing for nginx ingress", - "INGRESS_ELB_MISSING":"ELB id is missing for nginx ingress", - - "//Update":"", - "TOOMANY_SG":"Update will run a Service Group at single time", - "INVALID_SG":"We detected invalid service group info in update call '%s'", - "TOOMANY_UPDATECALL":"Too many update request on the same application '%s'", - "APP_INAVALID_STATUS":"The application which is in '%s' state '%s' could not be updated", - "NON_SUPPORT_SGTYPE":"Non stateless service group '%s' will not support any update", - "REVISION_NULL":"The revision number can not be empty if update type is rollback in the service group '%s'", - "ALREADY_ROLLEDBACK_REVISION":"The given revision '%d' already rolledback in the service group '%s'", - "EXPIRED_REVISION":"The given revision '%d' is already expired in the service group '%s'", - "UPDATE_DESC_NULL":"The parameter 'serviceGroups[0].description' can not be empty", - "UPDATE_SCALING_NULL":"The parameter 'serviceGroups[0].ScalingPolicy' can not be empty", - "UPDATE_SERVICE_ID_NULL":"The parameter '%s' can not be empty", - "UPDATE_SERVICE_IMAGE_NULL":"The parametet '%s' can not be empty", - "UPDATE_PODAFFINITY_EXPRESSIONS":"Invalid Value for labelExpression operator: %s", - "UPDATE_NODEAFFINITY_EXPRESSIONS":"Invalid Value for nodeExpression operator: %s", - - "//READ":"", - "INVALID_READTYPE":"We detected that invalid value '%s' for query field read-type", - "MISSING_READQUERY_FIELDS":"The query field '%s' can not be null if the read-type is '%s'", - "MISSING_READTYPE":"The query filed 'read-type' is missing", - - "MISSING_RESOURCEQUERY_FIELDS":"The query field '%s' can not be null if the resource-type is '%s'", - "INVALID_RESOURCETYPE":"We detected that invalid value '%s' for query field resource-type", - "MISSING_RESOURCETYPE":"The query filed 'resource-type' is missing", - - "//DEPENDENCY": "", - "DEPENDENCY_UPDATE_ERROR": "Couldnt update application dependency", - - "DEPLOYMENT_VERSION_ERROR":"Couldnt find the difference in deploymentTemplate", - - "BUILD_ID_MISSING":"The build version missing for a container '%s' in the serviceGroup '%s'.", - "RESPONSE_FORMATTING":"Failed on formatting application Response: '%s'", - "GETTING_RESPONSE":"failed on getting %s information %s", - - "SERVICE_GROUP_ALREADY_EXIST":"Requested service '%s' is already exist in this application '%s'", - - "//CONTAINER_ADD":"", - "STORAGENAME_NOT_FOUND":"StorageName '%s' not found in the serviceGroup '%s'", - "SERVICE_ALREADY_EXIST":"Requested container '%s' is already exist on the service '%s'", - "SERVICEGROUP_NOTFOUND":"Requested service '%s' is not found in application '%s'", - "SERVICE_NOTFOUND":"Requested container '%s' is not found in service '%s'", - "SERVICE_REQUIRED":"Container type '%s' is required in the service '%s'", - "BUILD_NOTFOUND":"Requested container '%s' build is not found for distribution '%s' in release '%s'", - "IMAGE_NOTFOUND":"Requested container '%s' image is not found for distribution '%s' in release '%s'", - - "POD_NOTSUPPORTED_UPDATED":"Requested update is not supported for pod. supported Update is buildUpdate and network", - "MICROK8S_DEFAULT_SC_NOTFOUND":"Failed default Storeageclass not equal to '%s' in microk8s", - "K3S_DEFAULT_SC_NOTFOUND":"Failed default Storeageclass not equal to '%s' in k3s", - "//SERVICEGROUP":"", - "SG_NOTFOUND":"Requested servicegroup '%s' is not found", - "ALB_DEPLOYMENT_NOT_FOUND":"Requested alb deployment not found in the cluster '%s'", - "ALB_POD_NOT_FOUND":"Requested alb pod not found in the cluster '%s'", - "ALB_POD_NOT_READY":"Requested alb pod not ready in the cluster '%s'", - "DOMAIN_ARN_NOT_FOUND":"Requested domain '%s' not contain the certificateARN", - "DOMAIN_ARN_NOT_FOUND_REGION": "Request domain '%s' not contain the certificateARN for region '%s' and cloudaccount '%s'" - - - - }, - "Metrics":{ - "MISSING_METRICSQUERY_FIELDS":"The query field '%s' can not be null if the metrics-type is '%s'", - "METRICS_NOTFOUND":"Requested projectID '%s' is not found" - - }, - "Topup":{ - "TOPUP_NOTFOUND":"Requested accountID '%s' is not found" - }, - "allocationPolicy":{ - "AP_NOTFOUND":"Requested Allocation Policy '%s' is not found", - "AP_ALREADY_EXIST":"Requested Allocation Policy '%s' already exists", - "INVALID_AP_FMT":"Requested service id is invalid format '%s'", - "PAGESIZE_NEGAVE":"Page or Size can not be a negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "CPU_LIMIT":"CPU value in millicore should be between '%d' and '%d'", - "MEMORY_M_LIMIT":"Memory values in MegaBytes should be between '%d' and '%d'", - "MEMORY_G_LIMIT":"Memory values in GigaBytes should be between '%d' and '%d'", - "MEMORY_SUFFIX":"Memory suffix should be one of 'M' or 'G'", - "CPU_SUFFIX":"CPU suffix should be 'm'", - "INVALID_QUANTITY":"Value of '%s' contains invalid character '%s'", - "MEMORY_QUANTITY":"Memory limit '%s' should be greater than Request '%s'", - "CPU_QUANTITY":"CPU limit '%s' should be greater than Request '%s'" - } - -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/helper.tpl b/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/helper.tpl deleted file mode 100644 index 9cf14fd52..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/helper.tpl +++ /dev/null @@ -1,11 +0,0 @@ -{{/* -Check ClusterRole Exist -*/}} -{{- define "gen.clusterrole" -}} -{{- $clusterrole := lookup "v1" "ClusterRole" "" "gopaddle:nginx-ingress-clusterrole" -}} -{{- if $clusterrole -}} - {{- printf "%s" true -}} -{{- else -}} - {{- printf "%s" false -}} -{{- end -}} -{{- end -}} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/internal_api.json deleted file mode 100644 index a1cea3848..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/internal_api.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "allAPI":{ - "readUserByID":"api/%s/user?organizationID=%s", - "readDomainByID":"api/%s/domain/%s?organizationID=%s", - "readConfigByName":"api/%s/config/%s?organizationID=%s", - "readServiceByName":"api/%s/service?organizationID=%s&operation=ReadByName&svcName=%s", - "readServiceGroupByID":"api/%s/v1/serviceGroup/%s", - "readServiceGroupByVersion":"api/%s/v1/%s/serviceGroup/%s/version/%s", - "readServiceGroupByTags":"api/%s/v1/%s/serviceGroup/%s/version?%s", - "updateServiceGroupDependencyRef":"api-internal/%s/v1/%s/serviceGroup/%s/version/%s", - "readBuildVersionByBuildID":"api/%s/v1/%s/build/%s", - "readBuildVersionByTags":"api/%s/v1/%s/build?%s", - "readIngressByID":"api/%s/ingress/%s?organizationID=%s", - "readProfileByID":"api/%s/profile/%s?organizationID=%s", - "readAllocationPolicyByID":"api/%s/v1/%s/allocationPolicy/%s", - "readVolumeClaimPolicyByID":"api/%s/%s/volumeClaimPolicy/%s?organizationID=%s", - "readVolumeByID":"api/%s/volume/%s?organizationID=%s", - "readKubeByID":"api/%s/kube/%s?organizationID=%s", - "readBuildByVersion":"api/%s/build/%s?organizationID=%s&operation=forDeployment", - "readRegistryByID":"api/%s/registry/%s?organizationID=%s&operation=accessToken&provider=%s", - "Updated":"updated", - "readScalingPolicyByID":"api/%s/v1/%s/scalingPolicy/%s", - "readDeploymentPolicyByID":"api/%s/v1/%s/deploymentPolicy/%s", - "readNetworkPolicyByID":"api/%s/v1/%s/networkpolicy/%s", - "readServiceByID":"api/%s/v1/%s/service/%s", - "updateScalingPolicyDependencyRef":"api-internal/%s/v1/%s/scalingPolicy/%s", - "updateDeploymentPolicyDependencyRef":"api-internal/%s/v1/%s/deploymentPolicy/%s", - "updateNetworkPolicyDependencyRef":"api-internal/%s/v1/%s/networkpolicy/%s", - "updateVolumeClaimPolicyDependencyRef":"api-internal/%s/%s/volumeClaimPolicy/%s", - "updateServiceDependencyRef":"api-internal/%s/v1/%s/service/%s/%s", - "updateAllocationPolicyDependencyRef":"api-internal/%s/v1/%s/allocationPolicy/%s", - "readServiceVersionByID":"api/%s/v1/%s/service/%s/version/%s", - "readServiceVersionByTags":"api/%s/v1/%s/service/%s/version?%s", - "readConfigVersionByID":"api/%s/v1/%s/config/%s/version/%s" - }, - "acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s&project=%s", - "port":"8005" - }, - "aclProject":{ - "url":"http://%s:%s/api-in/%s/v1/acl?project=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api-in/%s/v1/subusers/%s", - "port":"8005" - }, - "project":{ - "url":"http://%s:%s/api-internal/%s/v1/projectlist", - "port":"8005" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/profiles-kube.json deleted file mode 100644 index 0f3bb1891..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/profiles-kube.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "group":{ - "workerInterval":10 - }, - "mongodb":{ - "db-name":"deploymentmanager", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - }, - "rabbitmq":{ - "mq-protocol":"amqp", - "mq-user":"admin", - "mq-password":"cGFzc3dvcmQ", - "mq-ip":"rabbitmq", - "mq-port":"5672", - "mq-apps-host":"/apps", - "mq-apps-queue":"apps-worker-queue" - }, - "esearch":{ - "es-user":"elastic", - "es-password":"cGFzc3dvcmQ", - "es-endpoints":[ - "http://esearch:9200" - ] - }, - "gopaddleTools":{ - "prometheus":{ - "gatewayEndpoint":"NODE_IP", - "gatewayAPI":"/api/%s/v1/application/datacollector/datapoint", - "influxDBs":{ - "influxDB-1":{ - "dbEndpoint":"http://influxdb:8086", - "dbUser":"admin", - "dbPassword":"cGFzc3dvcmQ", - "maxUserCount":"100", - "isEnabled":true - } - } - }, - "eventHandler":{ - "gatewayEndpoint":"NODE_IP", - "gatewayAPI":"/api/%s/v1/application/datacollector/eventhandler" - } - }, - "deploymentTemplateIconDirectory":{ - "iconDirectory":"/iconPath/%s/deploymentTemplate/", - "iconAPI":"/v1/deploymentTemplate/icon/%s" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/service_directory-kube.json deleted file mode 100644 index cf0d16f3e..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/service_directory-kube.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "builder.ep":{ - "host":"gpcore", - "port":"8759" - }, - "core.ep": { - "host": "gpcore", - "port": "8759" - }, - "configmanager.ep":{ - "host":"configmanager", - "port":"8001" - }, - "clustermanager.ep": { - "host": "clustermanager", - "port": "8013" - }, - "domainmanager.ep":{ - "host":"domainmanager", - "port":"8004" - }, - "deploymentmanager.ep":{ - "host":"deploymentmanager", - "port":"8003" - }, - "platform.ep": { - "host": "cloudmanager", - "port": "8018" - }, - "registry.ep": { - "host": "cloudmanager", - "port": "8018" - }, - "policy.ep":{ - "host":"configmanager", - "port":"8001" - }, - "user.ep":{ - "host":"usermanager", - "port":"8005" - }, - "notification.ep":{ - "host":"activitymanager", - "port":"8009" - }, - "deploymenttmpl.ep":{ - "host":"deploymentmanager", - "port":"8003" - }, - "servicegroup.ep":{ - "host": "deploymentmanager", - "port": "8003" - }, - "service.ep":{ - "host":"configmanager", - "port":"8001" - }, - "serviceGroup.ep":{ - "host": "deploymentmanager", - "port": "8003" - }, - "config.ep":{ - "host":"configmanager", - "port":"8001" - }, - "gateway.ep":{ - "host":"gateway", - "port":"8006" - }, - "nodechecker.ep":{ - "host":"nodechecker", - "port":"8020" - }, - "billing.ep":{ - "host":"costmanager", - "port":"8011" - }, - "usermanager.ep":{ - "host": "usermanager", - "port": "8005" - }, - "alertmanager.ep":{ - "host": "alertmanager", - "port": "8012" - }, - "release.ep":{ - "host": "gpcore", - "port": "8759" - }, - "cloudaccount.ep":{ - "host":"cloudmanager", - "port":"8018" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/validation.json b/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/validation.json deleted file mode 100644 index c66fc22d3..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/validation.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "application": { - "expectedFields": [ - "name", - "clusterID", - "deploymentTemplateID", - "accessType" - ] - }, - "daemonset": { - "expectedFields": [ - "name", - "clusterID", - "deploymentTemplateID" - ] - }, - "deploymentTemplate": { - "expectedFields": [ - "name", - "services" - ], - "expectedFields_service": [ - "id" - ] - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/versionMatrix.json b/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/versionMatrix.json deleted file mode 100644 index 74aff57bc..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/appworker/appworker/versionMatrix.json +++ /dev/null @@ -1,1792 +0,0 @@ -{ - "supportedVersions": [ - "v1.6", - "v1.7", - "v1.8", - "v1.9", - "v1.10", - "v1.11", - "v1.12", - "v1.13", - "v1.14", - "v1.15", - "v1.16", - "v1.17", - "v1.18", - "v1.19", - "v1.20", - "v1.21", - "v1.22", - "v1.23", - "v1.24", - "v1.25", - "v1.26", - "v1.27" - ], - "v1.6": { - "deployment": [ - "apps/v1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.7": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.8": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.9": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.10": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.11": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.12": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.13": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.14": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.15": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.16": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.17": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.18": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.19": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.20": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.21": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.22": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.23": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.24": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.25": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.26": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.27": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/cloudmanager/cloudmanager/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/cloudmanager/cloudmanager/error_config.json deleted file mode 100644 index b5ff489df..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/cloudmanager/cloudmanager/error_config.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "SOMETHING_WRONG": "Internal Error", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "INPUT_PAYLOAD_ERROR":"Input payload have error: %s", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "MARSHAL_ERROR":"Error in marshaling '%s'", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED": "Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type", - "PAGESIZE_LESSONE":"Page or Size can not be less than one { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d'; Size should be less than '%d'", - "INVALID_ID":"Requested resource id '%s' is invalid format" - }, - "cloudAuth":{ - "MANAGED_TYPE":"User cannot delete Managed cloudAuth", - "KEY_EXISTS":"clientID already exist in the user", - "NAME_EXISTS":"Name already exist in the user" - }, - "cloud":{ - "MANAGED_TYPE":"User cannot delete Managed cloudAccount", - "KEY_EXISTS":"AccessKey already exist in the user", - "NAME_EXISTS":"Name already exist in the user", - "GOOGLE_KEY_EXISTS":"serviceAccount already exist in the user", - "CLOUD_ACCOUNT_NOTFOUND":"Requested CloudAccount'%s' is not found" - }, - "registry":{ - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "REG_NOTFOUND":"Requested registry channel '%s' is not found", - "REG_ALREADY_EXIST":"Requested registry channel '%s' is already exist", - "INVALID_REGISTRY_FMT":"Requested registry id '%s' is invalid formate" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/cloudmanager/cloudmanager/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/cloudmanager/cloudmanager/internal_api.json deleted file mode 100644 index e1a27e135..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/cloudmanager/cloudmanager/internal_api.json +++ /dev/null @@ -1,18 +0,0 @@ -{ -"acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s&project=%s", - "port":"8005" - }, - "aclProject":{ - "url":"http://%s:%s/api-in/%s/v1/acl?project=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api-in/%s/v1/subusers/%s", - "port":"8005" - }, - "project":{ - "url":"http://%s:%s/api-internal/%s/v1/projectlist", - "port":"8005" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/cloudmanager/cloudmanager/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/cloudmanager/cloudmanager/profiles-kube.json deleted file mode 100644 index 694cf7f69..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/cloudmanager/cloudmanager/profiles-kube.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "mongodb":{ - "db-name":"cloudmanager", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - }, - "cloudapis":{ - "getACR":"https://management.azure.com/subscriptions/:subscriptionID/resourceGroups/:resourceGroupName/providers/Microsoft.ContainerRegistry/registries/:registryName?api-version=2019-05-01", - "getACRCreds":"https://management.azure.com/subscriptions/:subscriptionID/resourceGroups/:resourceGroupName/providers/Microsoft.ContainerRegistry/registries/:registryName/listCredentials?api-version=2019-05-01", - "googleUrl":"https://oauth2.googleapis.com/token", - "azureUrl":"https://login.microsoftonline.com/common/oauth2/v2.0/token" - } - } \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/cloudmanager/cloudmanager/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/cloudmanager/cloudmanager/service_directory-kube.json deleted file mode 100644 index 874667d02..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/cloudmanager/cloudmanager/service_directory-kube.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "configmanager.ep": { - "host": "configmanager", - "port": "8001" - }, - "usermanager.ep":{ - "host":"usermanager", - "port":"8005" - }, - "cloudmanager.ep": { - "host": "cloudmanager", - "port": "8018" - }, - "cloudaccount.ep":{ - "host":"cloudmanager", - "port":"8018" - }, - "nodechecker.ep": { - "host":"nodechecker", - "port":"8020" - }, - "billing.ep":{ - "host":"costmanager", - "port":"8011" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/albcontrollercft.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/albcontrollercft.yaml deleted file mode 100644 index 701ea7112..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/albcontrollercft.yaml +++ /dev/null @@ -1,197 +0,0 @@ ---- -AWSTemplateFormatVersion: '2010-09-09' -Resources: - AmazonEKSLoadBalancerControllerRole: - Type: AWS::IAM::Role - Properties: - AssumeRolePolicyDocument: - Version: '2012-10-17' - Statement: - - Effect: Allow - Principal: - Federated: IDENTITY_PROVIDER_ARN - Action: sts:AssumeRoleWithWebIdentity - Condition: - StringEquals: - IDENTITY_PROVIDER_ID: "system:serviceaccount:kube-system:aws-load-balancer-controller" - Path: "/" - Policies: - - PolicyName: AWSLoadBalancerControllerIAMPolicy - PolicyDocument: - Version: '2012-10-17' - Statement: - - Effect: Allow - Action: iam:CreateServiceLinkedRole - Resource: "*" - Condition: - StringEquals: - iam:AWSServiceName: elasticloadbalancing.amazonaws.com - - Effect: Allow - Action: - - ec2:DescribeAccountAttributes - - ec2:DescribeAddresses - - ec2:DescribeAvailabilityZones - - ec2:DescribeInternetGateways - - ec2:DescribeVpcs - - ec2:DescribeVpcPeeringConnections - - ec2:DescribeSubnets - - ec2:DescribeSecurityGroups - - ec2:DescribeInstances - - ec2:DescribeNetworkInterfaces - - ec2:DescribeTags - - ec2:GetCoipPoolUsage - - ec2:DescribeCoipPools - - elasticloadbalancing:DescribeLoadBalancers - - elasticloadbalancing:DescribeLoadBalancerAttributes - - elasticloadbalancing:DescribeListeners - - elasticloadbalancing:DescribeListenerCertificates - - elasticloadbalancing:DescribeSSLPolicies - - elasticloadbalancing:DescribeRules - - elasticloadbalancing:DescribeTargetGroups - - elasticloadbalancing:DescribeTargetGroupAttributes - - elasticloadbalancing:DescribeTargetHealth - - elasticloadbalancing:DescribeTags - Resource: "*" - - Effect: Allow - Action: - - cognito-idp:DescribeUserPoolClient - - acm:ListCertificates - - acm:DescribeCertificate - - iam:ListServerCertificates - - iam:GetServerCertificate - - waf-regional:GetWebACL - - waf-regional:GetWebACLForResource - - waf-regional:AssociateWebACL - - waf-regional:DisassociateWebACL - - wafv2:GetWebACL - - wafv2:GetWebACLForResource - - wafv2:AssociateWebACL - - wafv2:DisassociateWebACL - - shield:GetSubscriptionState - - shield:DescribeProtection - - shield:CreateProtection - - shield:DeleteProtection - Resource: "*" - - Effect: Allow - Action: - - ec2:AuthorizeSecurityGroupIngress - - ec2:RevokeSecurityGroupIngress - Resource: "*" - - Effect: Allow - Action: - - ec2:CreateSecurityGroup - Resource: "*" - - Effect: Allow - Action: - - ec2:CreateTags - Resource: arn:aws:ec2:*:*:security-group/* - Condition: - StringEquals: - ec2:CreateAction: CreateSecurityGroup - 'Null': - aws:RequestTag/elbv2.k8s.aws/cluster: 'false' - - Effect: Allow - Action: - - ec2:CreateTags - - ec2:DeleteTags - Resource: arn:aws:ec2:*:*:security-group/* - Condition: - 'Null': - aws:RequestTag/elbv2.k8s.aws/cluster: 'true' - aws:ResourceTag/elbv2.k8s.aws/cluster: 'false' - - Effect: Allow - Action: - - ec2:AuthorizeSecurityGroupIngress - - ec2:RevokeSecurityGroupIngress - - ec2:DeleteSecurityGroup - Resource: "*" - Condition: - 'Null': - aws:ResourceTag/elbv2.k8s.aws/cluster: 'false' - - Effect: Allow - Action: - - elasticloadbalancing:CreateLoadBalancer - - elasticloadbalancing:CreateTargetGroup - Resource: "*" - Condition: - 'Null': - aws:RequestTag/elbv2.k8s.aws/cluster: 'false' - - Effect: Allow - Action: - - elasticloadbalancing:CreateListener - - elasticloadbalancing:DeleteListener - - elasticloadbalancing:CreateRule - - elasticloadbalancing:DeleteRule - Resource: "*" - - Effect: Allow - Action: - - elasticloadbalancing:AddTags - - elasticloadbalancing:RemoveTags - Resource: - - arn:aws:elasticloadbalancing:*:*:targetgroup/*/* - - arn:aws:elasticloadbalancing:*:*:loadbalancer/net/*/* - - arn:aws:elasticloadbalancing:*:*:loadbalancer/app/*/* - Condition: - 'Null': - aws:RequestTag/elbv2.k8s.aws/cluster: 'true' - aws:ResourceTag/elbv2.k8s.aws/cluster: 'false' - - Effect: Allow - Action: - - elasticloadbalancing:AddTags - - elasticloadbalancing:RemoveTags - Resource: - - arn:aws:elasticloadbalancing:*:*:listener/net/*/*/* - - arn:aws:elasticloadbalancing:*:*:listener/app/*/*/* - - arn:aws:elasticloadbalancing:*:*:listener-rule/net/*/*/* - - arn:aws:elasticloadbalancing:*:*:listener-rule/app/*/*/* - - Effect: Allow - Action: - - elasticloadbalancing:ModifyLoadBalancerAttributes - - elasticloadbalancing:SetIpAddressType - - elasticloadbalancing:SetSecurityGroups - - elasticloadbalancing:SetSubnets - - elasticloadbalancing:DeleteLoadBalancer - - elasticloadbalancing:ModifyTargetGroup - - elasticloadbalancing:ModifyTargetGroupAttributes - - elasticloadbalancing:DeleteTargetGroup - Resource: "*" - Condition: - 'Null': - aws:ResourceTag/elbv2.k8s.aws/cluster: 'false' - - Effect: Allow - Action: - - elasticloadbalancing:RegisterTargets - - elasticloadbalancing:DeregisterTargets - Resource: arn:aws:elasticloadbalancing:*:*:targetgroup/*/* - - Effect: Allow - Action: - - elasticloadbalancing:SetWebAcl - - elasticloadbalancing:ModifyListener - - elasticloadbalancing:AddListenerCertificates - - elasticloadbalancing:RemoveListenerCertificates - - elasticloadbalancing:ModifyRule - Resource: "*" - - PolicyName: AWSLoadBalancerControllerAdditionalIAMPolicy - PolicyDocument: - Version: '2012-10-17' - Statement: - - Effect: Allow - Action: - - ec2:CreateTags - - ec2:DeleteTags - Resource: arn:aws:ec2:*:*:security-group/* - Condition: - 'Null': - aws:ResourceTag/ingress.k8s.aws/cluster: 'false' - - Effect: Allow - Action: - - elasticloadbalancing:AddTags - - elasticloadbalancing:RemoveTags - - elasticloadbalancing:DeleteTargetGroup - Resource: - - arn:aws:elasticloadbalancing:*:*:targetgroup/*/* - - arn:aws:elasticloadbalancing:*:*:loadbalancer/net/*/* - - arn:aws:elasticloadbalancing:*:*:loadbalancer/app/*/* - Condition: - 'Null': - aws:ResourceTag/ingress.k8s.aws/cluster: 'false' diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/amazon-eks-fully-private-vpc.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/amazon-eks-fully-private-vpc.yaml deleted file mode 100644 index f1c73d641..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/amazon-eks-fully-private-vpc.yaml +++ /dev/null @@ -1,334 +0,0 @@ ---- -AWSTemplateFormatVersion: '2010-09-09' -Description: 'Amazon EKS Sample VPC - Private only subnets. These subnets do not have access to the Internet and this templates creates the recommended VPC Endpoints for running EKS Clusters.' - -Parameters: - - VpcBlock: - Type: String - Default: VPC_VALUE - Description: The CIDR range for the VPC. This should be a valid private (RFC 1918) CIDR range. - - PrivateSubnet01Block: - Type: String - Default: SUBNET01_VALUE - Description: CidrBlock for private subnet 01 within the VPC - - PrivateSubnet02Block: - Type: String - Default: SUBNET02_VALUE - Description: CidrBlock for private subnet 02 within the VPC - - PrivateSubnet03Block: - Type: String - Default: SUBNET03_VALUE - Description: CidrBlock for private subnet 03 within the VPC - -Metadata: - AWS::CloudFormation::Interface: - ParameterGroups: - - - Label: - default: "Primary Worker Network Configuration" - Parameters: - - VpcBlock - - PrivateSubnet01Block - - PrivateSubnet02Block - - PrivateSubnet03Block - -Conditions: - Has2Azs: - Fn::Or: - - Fn::Equals: - - {Ref: 'AWS::Region'} - - ap-south-1 - - Fn::Equals: - - {Ref: 'AWS::Region'} - - ap-northeast-2 - - Fn::Equals: - - {Ref: 'AWS::Region'} - - ca-central-1 - - Fn::Equals: - - {Ref: 'AWS::Region'} - - cn-north-1 - - Fn::Equals: - - {Ref: 'AWS::Region'} - - sa-east-1 - - Fn::Equals: - - {Ref: 'AWS::Region'} - - us-west-1 - - HasMoreThan2Azs: - Fn::Not: - - Condition: Has2Azs - -Mappings: - ServiceNamePrefixMap: - aws: - Name: com.amazonaws - aws-cn: - Name: cn.com.amazonaws - aws-us-gov: - Name: com.amazonaws - -Resources: - VPC: - Type: AWS::EC2::VPC - Properties: - CidrBlock: !Ref VpcBlock - EnableDnsSupport: true - EnableDnsHostnames: true - Tags: - - Key: Name - Value: !Sub '${AWS::StackName}-VPC' - - PrivateRouteTable: - Type: AWS::EC2::RouteTable - Properties: - VpcId: !Ref VPC - - PrivateSubnet01: - Type: AWS::EC2::Subnet - Metadata: - Comment: Private Subnet 01 - Properties: - AvailabilityZone: - Fn::Select: - - '0' - - Fn::GetAZs: - Ref: AWS::Region - CidrBlock: - Ref: PrivateSubnet01Block - VpcId: - Ref: VPC - Tags: - - Key: Name - Value: !Sub "${AWS::StackName}-PrivateSubnet01" - - Key: kubernetes.io/role/internal-elb - Value: 1 - - PrivateSubnet02: - Type: AWS::EC2::Subnet - Metadata: - Comment: Private Subnet 02 - Properties: - AvailabilityZone: - Fn::Select: - - '1' - - Fn::GetAZs: - Ref: AWS::Region - CidrBlock: - Ref: PrivateSubnet02Block - VpcId: - Ref: VPC - Tags: - - Key: Name - Value: !Sub "${AWS::StackName}-PrivateSubnet02" - - Key: kubernetes.io/role/internal-elb - Value: 1 - - PrivateSubnet03: - Condition: HasMoreThan2Azs - Type: AWS::EC2::Subnet - Metadata: - Comment: Private Subnet 03 - Properties: - AvailabilityZone: - Fn::Select: - - '2' - - Fn::GetAZs: - Ref: AWS::Region - CidrBlock: - Ref: PrivateSubnet03Block - VpcId: - Ref: VPC - Tags: - - Key: Name - Value: !Sub "${AWS::StackName}-PrivateSubnet03" - - Key: kubernetes.io/role/internal-elb - Value: 1 - - PrivateSubnet01RouteTableAssociation: - Type: AWS::EC2::SubnetRouteTableAssociation - Properties: - SubnetId: !Ref PrivateSubnet01 - RouteTableId: !Ref PrivateRouteTable - - PrivateSubnet02RouteTableAssociation: - Type: AWS::EC2::SubnetRouteTableAssociation - Properties: - SubnetId: !Ref PrivateSubnet02 - RouteTableId: !Ref PrivateRouteTable - - PrivateSubnet03RouteTableAssociation: - Condition: HasMoreThan2Azs - Type: AWS::EC2::SubnetRouteTableAssociation - Properties: - SubnetId: !Ref PrivateSubnet03 - RouteTableId: !Ref PrivateRouteTable - - EndpointSecurityGroup: - Type: AWS::EC2::SecurityGroup - Properties: - GroupDescription: Security group to govern who can access the endpoints - VpcId: !Ref VPC - SecurityGroupIngress: - - IpProtocol: tcp - FromPort: 443 - ToPort: 443 - CidrIp: !Ref VpcBlock - - S3APIEndpoint: - Type: "AWS::EC2::VPCEndpoint" - Properties: - ServiceName: !Sub "com.amazonaws.${AWS::Region}.s3" - VpcEndpointType: Gateway - RouteTableIds: - - !Ref PrivateRouteTable - VpcId: !Ref VPC - - ECRAPIEndpoint: - Type: "AWS::EC2::VPCEndpoint" - Properties: - ServiceName: - !Join [ ".", [ !FindInMap [ServiceNamePrefixMap, !Ref "AWS::Partition", Name], !Ref "AWS::Region", "ecr.api" ] ] - VpcEndpointType: Interface - PrivateDnsEnabled: true - SecurityGroupIds: - - !GetAtt EndpointSecurityGroup.GroupId - SubnetIds: - - !Ref PrivateSubnet01 - - !Ref PrivateSubnet02 - - Fn::If: - - HasMoreThan2Azs - - !Ref PrivateSubnet03 - - !Ref AWS::NoValue - VpcId: !Ref VPC - - ECRDockerEndpoint: - Type: "AWS::EC2::VPCEndpoint" - Properties: - ServiceName: - !Join [ ".", [ !FindInMap [ServiceNamePrefixMap, !Ref "AWS::Partition", Name], !Ref "AWS::Region", "ecr.dkr" ] ] - VpcEndpointType: Interface - PrivateDnsEnabled: true - SecurityGroupIds: - - !GetAtt EndpointSecurityGroup.GroupId - SubnetIds: - - !Ref PrivateSubnet01 - - !Ref PrivateSubnet02 - - Fn::If: - - HasMoreThan2Azs - - !Ref PrivateSubnet03 - - !Ref AWS::NoValue - VpcId: !Ref VPC - - EC2Endpoint: - Type: "AWS::EC2::VPCEndpoint" - Properties: - ServiceName: - !Join [ ".", [ !FindInMap [ServiceNamePrefixMap, !Ref "AWS::Partition", Name], !Ref "AWS::Region", "ec2" ] ] - VpcEndpointType: Interface - PrivateDnsEnabled: true - SecurityGroupIds: - - !GetAtt EndpointSecurityGroup.GroupId - SubnetIds: - - !Ref PrivateSubnet01 - - !Ref PrivateSubnet02 - - Fn::If: - - HasMoreThan2Azs - - !Ref PrivateSubnet03 - - !Ref AWS::NoValue - VpcId: !Ref VPC - - CWLogsEndpoint: - Type: "AWS::EC2::VPCEndpoint" - Properties: - ServiceName: !Sub "com.amazonaws.${AWS::Region}.logs" - VpcEndpointType: Interface - PrivateDnsEnabled: true - SecurityGroupIds: - - !GetAtt EndpointSecurityGroup.GroupId - SubnetIds: - - !Ref PrivateSubnet01 - - !Ref PrivateSubnet02 - - Fn::If: - - HasMoreThan2Azs - - !Ref PrivateSubnet03 - - !Ref AWS::NoValue - VpcId: !Ref VPC - - STSEndpoint: - Type: "AWS::EC2::VPCEndpoint" - Properties: - ServiceName: - !Join [ ".", [ !FindInMap [ServiceNamePrefixMap, !Ref "AWS::Partition", Name], !Ref "AWS::Region", "sts" ] ] - VpcEndpointType: Interface - PrivateDnsEnabled: true - SecurityGroupIds: - - !GetAtt EndpointSecurityGroup.GroupId - SubnetIds: - - !Ref PrivateSubnet01 - - !Ref PrivateSubnet02 - - Fn::If: - - HasMoreThan2Azs - - !Ref PrivateSubnet03 - - !Ref AWS::NoValue - VpcId: !Ref VPC - - ControlPlaneSecurityGroup: - Type: AWS::EC2::SecurityGroup - Properties: - GroupDescription: Cluster communication with worker nodes - VpcId: !Ref VPC - -Outputs: - - VpcId: - Description: The VPC ID - Value: !Ref VPC - - SubnetIds: - Description: All subnets in the VPC - Value: - Fn::If: - - HasMoreThan2Azs - - !Join [ ",", [ !Ref PrivateSubnet01, !Ref PrivateSubnet02, !Ref PrivateSubnet03 ] ] - - !Join [ ",", [ !Ref PrivateSubnet01, !Ref PrivateSubnet02 ] ] - - SecurityGroups: - Description: Security group for the cluster control plane communication with worker nodes - Value: !Join [ ",", [ !Ref ControlPlaneSecurityGroup ] ] - - Subnet01ID: - Description: The Subnet01 Id - Value: !Ref PrivateSubnet01 - - Subnet02ID: - Description: The Subnet02 Id - Value: !Ref PrivateSubnet02 - - Subnet03ID: - Condition: HasMoreThan2Azs - Description: The Subnet03 Id - Value: !Ref PrivateSubnet03 - - - Subnet01AZ: - Description: The Subnet01 AZ - Value: !GetAtt - - PrivateSubnet01 - - AvailabilityZone - - Subnet02AZ: - Description: The Subnet02 AZ - Value: !GetAtt - - PrivateSubnet02 - - AvailabilityZone - - Subnet03AZ: - Condition: HasMoreThan2Azs - Description: The Subnet03 AZ - Value: !GetAtt - - PrivateSubnet03 - - AvailabilityZone diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/amazon-eks-nodegroup-gp.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/amazon-eks-nodegroup-gp.yaml deleted file mode 100644 index a78316d1a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/amazon-eks-nodegroup-gp.yaml +++ /dev/null @@ -1,499 +0,0 @@ -ClusterName - CLUSTER_NAME: inputfrom User -ClusterControlPlaneSecurityGroup - CLUCONPLASCGROUP - output from VPC stack -NodeGroupName - NODEGROUPNAME - inputfrom User -NodeAutoScalingGroupMinSize - AUTOSCALINGMINSIZE - inputfrom User(default 1) -NodeAutoScalingGroupDesiredCapacity - AUTOSCALINGDESIREDCAPACITY - inputfrom User(default 3) -NodeAutoScalingGroupMaxSize - AUTOSCALINGMAXSIZE - inputfrom User(Default 4) -NodeInstanceType - NODEINSTANCETYPE - inputfrom User -NodeVolumeSize - NODEVOLUMESIZE - inputfrom User -KeyName - KEYNAME - inputfrom User -VpcId - VPCID - output from VPC stack -Subnets - SUBNETS - output from VPC stack - - ---- -AWSTemplateFormatVersion: "2010-09-09" - -Description: Amazon EKS - Node Group - -Metadata: - "AWS::CloudFormation::Interface": - ParameterGroups: - - Label: - default: EKS Cluster - Parameters: - - ClusterName - - ClusterControlPlaneSecurityGroup - - Label: - default: Worker Node Configuration - Parameters: - - NodeGroupName - - NodeAutoScalingGroupMinSize - - NodeAutoScalingGroupDesiredCapacity - - NodeAutoScalingGroupMaxSize - - NodeInstanceType - - NodeImageIdSSMParam - - NodeImageId - - NodeVolumeSize - - KeyName - - BootstrapArguments - - Label: - default: Worker Network Configuration - Parameters: - - VpcId - - Subnets - -Parameters: - BootstrapArguments: - Type: String - Default: "" - Description: "Arguments to pass to the bootstrap script. See files/bootstrap.sh in https://github.com/awslabs/amazon-eks-ami" - - ClusterControlPlaneSecurityGroup: - Type: "AWS::EC2::SecurityGroup::Id" - Description: The security group of the cluster control plane. - - ClusterName: - Type: String - Description: The cluster name provided when the cluster was created. If it is incorrect, nodes will not be able to join the cluster. - - KeyName: - Type: "AWS::EC2::KeyPair::KeyName" - Description: The EC2 Key Pair to allow SSH access to the instances - - NodeAutoScalingGroupDesiredCapacity: - Type: Number - Default: 3 - Description: Desired capacity of Node Group ASG. - - NodeAutoScalingGroupMaxSize: - Type: Number - Default: 4 - Description: Maximum size of Node Group ASG. Set to at least 1 greater than NodeAutoScalingGroupDesiredCapacity. - - NodeAutoScalingGroupMinSize: - Type: Number - Default: 1 - Description: Minimum size of Node Group ASG. - - NodeGroupName: - Type: String - Description: Unique identifier for the Node Group. - - NodeImageId: - Type: String - Default: "" - Description: (Optional) Specify your own custom image ID. This value overrides any AWS Systems Manager Parameter Store value specified above. - - NodeImageIdSSMParam: - Type: "AWS::SSM::Parameter::Value" - Default: /aws/service/eks/optimized-ami/1.14/amazon-linux-2/recommended/image_id - Description: AWS Systems Manager Parameter Store parameter of the AMI ID for the worker node instances. - - NodeInstanceType: - Type: String - Default: t3.medium - AllowedValues: - - a1.medium - - a1.large - - a1.xlarge - - a1.2xlarge - - a1.4xlarge - - c1.medium - - c1.xlarge - - c3.large - - c3.xlarge - - c3.2xlarge - - c3.4xlarge - - c3.8xlarge - - c4.large - - c4.xlarge - - c4.2xlarge - - c4.4xlarge - - c4.8xlarge - - c5.large - - c5.xlarge - - c5.2xlarge - - c5.4xlarge - - c5.9xlarge - - c5.12xlarge - - c5.18xlarge - - c5.24xlarge - - c5.metal - - c5d.large - - c5d.xlarge - - c5d.2xlarge - - c5d.4xlarge - - c5d.9xlarge - - c5d.18xlarge - - c5n.large - - c5n.xlarge - - c5n.2xlarge - - c5n.4xlarge - - c5n.9xlarge - - c5n.18xlarge - - cc2.8xlarge - - cr1.8xlarge - - d2.xlarge - - d2.2xlarge - - d2.4xlarge - - d2.8xlarge - - f1.2xlarge - - f1.4xlarge - - f1.16xlarge - - g2.2xlarge - - g2.8xlarge - - g3s.xlarge - - g3.4xlarge - - g3.8xlarge - - g3.16xlarge - - h1.2xlarge - - h1.4xlarge - - h1.8xlarge - - h1.16xlarge - - hs1.8xlarge - - i2.xlarge - - i2.2xlarge - - i2.4xlarge - - i2.8xlarge - - i3.large - - i3.xlarge - - i3.2xlarge - - i3.4xlarge - - i3.8xlarge - - i3.16xlarge - - i3.metal - - i3en.large - - i3en.xlarge - - i3en.2xlarge - - i3en.3xlarge - - i3en.6xlarge - - i3en.12xlarge - - i3en.24xlarge - - m1.small - - m1.medium - - m1.large - - m1.xlarge - - m2.xlarge - - m2.2xlarge - - m2.4xlarge - - m3.medium - - m3.large - - m3.xlarge - - m3.2xlarge - - m4.large - - m4.xlarge - - m4.2xlarge - - m4.4xlarge - - m4.10xlarge - - m4.16xlarge - - m5.large - - m5.xlarge - - m5.2xlarge - - m5.4xlarge - - m5.8xlarge - - m5.12xlarge - - m5.16xlarge - - m5.24xlarge - - m5.metal - - m5a.large - - m5a.xlarge - - m5a.2xlarge - - m5a.4xlarge - - m5a.8xlarge - - m5a.12xlarge - - m5a.16xlarge - - m5a.24xlarge - - m5ad.large - - m5ad.xlarge - - m5ad.2xlarge - - m5ad.4xlarge - - m5ad.12xlarge - - m5ad.24xlarge - - m5d.large - - m5d.xlarge - - m5d.2xlarge - - m5d.4xlarge - - m5d.8xlarge - - m5d.12xlarge - - m5d.16xlarge - - m5d.24xlarge - - m5d.metal - - p2.xlarge - - p2.8xlarge - - p2.16xlarge - - p3.2xlarge - - p3.8xlarge - - p3.16xlarge - - p3dn.24xlarge - - g4dn.xlarge - - g4dn.2xlarge - - g4dn.4xlarge - - g4dn.8xlarge - - g4dn.12xlarge - - g4dn.16xlarge - - g4dn.metal - - r3.large - - r3.xlarge - - r3.2xlarge - - r3.4xlarge - - r3.8xlarge - - r4.large - - r4.xlarge - - r4.2xlarge - - r4.4xlarge - - r4.8xlarge - - r4.16xlarge - - r5.large - - r5.xlarge - - r5.2xlarge - - r5.4xlarge - - r5.8xlarge - - r5.12xlarge - - r5.16xlarge - - r5.24xlarge - - r5.metal - - r5a.large - - r5a.xlarge - - r5a.2xlarge - - r5a.4xlarge - - r5a.8xlarge - - r5a.12xlarge - - r5a.16xlarge - - r5a.24xlarge - - r5ad.large - - r5ad.xlarge - - r5ad.2xlarge - - r5ad.4xlarge - - r5ad.12xlarge - - r5ad.24xlarge - - r5d.large - - r5d.xlarge - - r5d.2xlarge - - r5d.4xlarge - - r5d.8xlarge - - r5d.12xlarge - - r5d.16xlarge - - r5d.24xlarge - - r5d.metal - - t1.micro - - t2.nano - - t2.micro - - t2.small - - t2.medium - - t2.large - - t2.xlarge - - t2.2xlarge - - t3.nano - - t3.micro - - t3.small - - t3.medium - - t3.large - - t3.xlarge - - t3.2xlarge - - t3a.nano - - t3a.micro - - t3a.small - - t3a.medium - - t3a.large - - t3a.xlarge - - t3a.2xlarge - - u-6tb1.metal - - u-9tb1.metal - - u-12tb1.metal - - x1.16xlarge - - x1.32xlarge - - x1e.xlarge - - x1e.2xlarge - - x1e.4xlarge - - x1e.8xlarge - - x1e.16xlarge - - x1e.32xlarge - - z1d.large - - z1d.xlarge - - z1d.2xlarge - - z1d.3xlarge - - z1d.6xlarge - - z1d.12xlarge - - z1d.metal - ConstraintDescription: Must be a valid EC2 instance type - Description: EC2 instance type for the node instances - - NodeVolumeSize: - Type: Number - Default: 20 - Description: Node volume size - - Subnets: - Type: "List" - Description: The subnets where workers can be created. - - VpcId: - Type: "AWS::EC2::VPC::Id" - Description: The VPC of the worker instances - -Conditions: - HasNodeImageId: !Not - - "Fn::Equals": - - Ref: NodeImageId - - "" - -Resources: - NodeInstanceRole: - Type: "AWS::IAM::Role" - Properties: - AssumeRolePolicyDocument: - Version: "2012-10-17" - Statement: - - Effect: Allow - Principal: - Service: - - ec2.amazonaws.com - Action: - - "sts:AssumeRole" - ManagedPolicyArns: - - "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy" - - "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy" - - "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly" - Path: / - - NodeInstanceProfile: - Type: "AWS::IAM::InstanceProfile" - Properties: - Path: / - Roles: - - Ref: NodeInstanceRole - - NodeSecurityGroup: - Type: "AWS::EC2::SecurityGroup" - Properties: - GroupDescription: Security group for all nodes in the cluster - Tags: - - Key: !Sub kubernetes.io/cluster/${ClusterName} - Value: owned - VpcId: !Ref VpcId - - NodeSecurityGroupIngress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow node to communicate with each other - FromPort: 0 - GroupId: !Ref NodeSecurityGroup - IpProtocol: "-1" - SourceSecurityGroupId: !Ref NodeSecurityGroup - ToPort: 65535 - - ClusterControlPlaneSecurityGroupIngress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow pods to communicate with the cluster API Server - FromPort: 443 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: tcp - SourceSecurityGroupId: !Ref NodeSecurityGroup - ToPort: 443 - - ControlPlaneEgressToNodeSecurityGroup: - Type: "AWS::EC2::SecurityGroupEgress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow the cluster control plane to communicate with worker Kubelet and pods - DestinationSecurityGroupId: !Ref NodeSecurityGroup - FromPort: 1025 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: tcp - ToPort: 65535 - - ControlPlaneEgressToNodeSecurityGroupOn443: - Type: "AWS::EC2::SecurityGroupEgress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow the cluster control plane to communicate with pods running extension API servers on port 443 - DestinationSecurityGroupId: !Ref NodeSecurityGroup - FromPort: 443 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: tcp - ToPort: 443 - - NodeSecurityGroupFromControlPlaneIngress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow worker Kubelets and pods to receive communication from the cluster control plane - FromPort: 1025 - GroupId: !Ref NodeSecurityGroup - IpProtocol: tcp - SourceSecurityGroupId: !Ref ClusterControlPlaneSecurityGroup - ToPort: 65535 - - NodeSecurityGroupFromControlPlaneOn443Ingress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow pods running extension API servers on port 443 to receive communication from cluster control plane - FromPort: 443 - GroupId: !Ref NodeSecurityGroup - IpProtocol: tcp - SourceSecurityGroupId: !Ref ClusterControlPlaneSecurityGroup - ToPort: 443 - - NodeLaunchConfig: - Type: "AWS::AutoScaling::LaunchConfiguration" - Properties: - AssociatePublicIpAddress: "true" - BlockDeviceMappings: - - DeviceName: /dev/xvda - Ebs: - DeleteOnTermination: true - VolumeSize: !Ref NodeVolumeSize - VolumeType: gp2 - IamInstanceProfile: !Ref NodeInstanceProfile - ImageId: !If - - HasNodeImageId - - Ref: NodeImageId - - Ref: NodeImageIdSSMParam - InstanceType: !Ref NodeInstanceType - KeyName: !Ref KeyName - SecurityGroups: - - Ref: NodeSecurityGroup - UserData: !Base64 - "Fn::Sub": | - #!/bin/bash - set -o xtrace - /etc/eks/bootstrap.sh ${ClusterName} ${BootstrapArguments} - /opt/aws/bin/cfn-signal --exit-code $? \ - --stack ${AWS::StackName} \ - --resource NodeGroup \ - --region ${AWS::Region} - - NodeGroup: - Type: "AWS::AutoScaling::AutoScalingGroup" - Properties: - DesiredCapacity: !Ref NodeAutoScalingGroupDesiredCapacity - LaunchConfigurationName: !Ref NodeLaunchConfig - MaxSize: !Ref NodeAutoScalingGroupMaxSize - MinSize: !Ref NodeAutoScalingGroupMinSize - Tags: - - Key: Name - PropagateAtLaunch: "true" - Value: !Sub ${ClusterName}-${NodeGroupName}-Node - - Key: !Sub kubernetes.io/cluster/${ClusterName} - PropagateAtLaunch: "true" - Value: owned - VPCZoneIdentifier: !Ref Subnets - UpdatePolicy: - AutoScalingRollingUpdate: - MaxBatchSize: "1" - MinInstancesInService: !Ref NodeAutoScalingGroupDesiredCapacity - PauseTime: PT5M - -Outputs: - NodeInstanceRole: - Description: The node instance role - Value: !GetAtt NodeInstanceRole.Arn - - NodeSecurityGroup: - Description: The security group for the node group - Value: !Ref NodeSecurityGroup diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/amazon-eks-vpc-gp.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/amazon-eks-vpc-gp.yaml deleted file mode 100644 index a013e01e7..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/amazon-eks-vpc-gp.yaml +++ /dev/null @@ -1,210 +0,0 @@ ---- -AWSTemplateFormatVersion: '2010-09-09' -Description: 'Amazon EKS Sample VPC' - -Parameters: - - VpcBlock: - Type: String - Default: VPC_VALUE - Description: The CIDR range for the VPC. This should be a valid private (RFC 1918) CIDR range. - - Subnet01Block: - Type: String - Default: SUBNET01_VALUE - Description: CidrBlock for subnet 01 within the VPC - - Subnet02Block: - Type: String - Default: SUBNET02_VALUE - Description: CidrBlock for subnet 02 within the VPC - - Subnet03Block: - Type: String - Default: SUBNET03_VALUE - Description: CidrBlock for subnet 03 within the VPC. This is used only if the region has more than 2 AZs. - -Metadata: - AWS::CloudFormation::Interface: - ParameterGroups: - - - Label: - default: "Worker Network Configuration" - Parameters: - - VpcBlock - - Subnet01Block - - Subnet02Block - - Subnet03Block - -Conditions: - Has2Azs: - Fn::Or: - - Fn::Equals: - - {Ref: 'AWS::Region'} - - ca-central-1 - - Fn::Equals: - - {Ref: 'AWS::Region'} - - cn-north-1 - - HasMoreThan2Azs: - Fn::Not: - - Condition: Has2Azs - -Resources: - VPC: - Type: AWS::EC2::VPC - Properties: - CidrBlock: !Ref VpcBlock - EnableDnsSupport: true - EnableDnsHostnames: true - Tags: - - Key: Name - Value: !Sub '${AWS::StackName}-VPC' - - InternetGateway: - Type: "AWS::EC2::InternetGateway" - - VPCGatewayAttachment: - Type: "AWS::EC2::VPCGatewayAttachment" - Properties: - InternetGatewayId: !Ref InternetGateway - VpcId: !Ref VPC - - RouteTable: - Type: AWS::EC2::RouteTable - Properties: - VpcId: !Ref VPC - Tags: - - Key: Name - Value: Public Subnets - - Key: Network - Value: Public - - Route: - DependsOn: VPCGatewayAttachment - Type: AWS::EC2::Route - Properties: - RouteTableId: !Ref RouteTable - DestinationCidrBlock: 0.0.0.0/0 - GatewayId: !Ref InternetGateway - - Subnet01: - Type: AWS::EC2::Subnet - Metadata: - Comment: Subnet 01 - Properties: - MapPublicIpOnLaunch: true - AvailabilityZone: SUBNET01_ZONE - CidrBlock: - Ref: Subnet01Block - VpcId: - Ref: VPC - Tags: - - Key: Name - Value: !Sub "${AWS::StackName}-Subnet01" - - Subnet02: - Type: AWS::EC2::Subnet - Metadata: - Comment: Subnet 02 - Properties: - MapPublicIpOnLaunch: true - AvailabilityZone: SUBNET02_ZONE - CidrBlock: - Ref: Subnet02Block - VpcId: - Ref: VPC - Tags: - - Key: Name - Value: !Sub "${AWS::StackName}-Subnet02" - - Subnet03: - Condition: HasMoreThan2Azs - Type: AWS::EC2::Subnet - Metadata: - Comment: Subnet 03 - Properties: - MapPublicIpOnLaunch: true - AvailabilityZone: SUBNET03_ZONE - CidrBlock: - Ref: Subnet03Block - VpcId: - Ref: VPC - Tags: - - Key: Name - Value: !Sub "${AWS::StackName}-Subnet03" - - Subnet01RouteTableAssociation: - Type: AWS::EC2::SubnetRouteTableAssociation - Properties: - SubnetId: !Ref Subnet01 - RouteTableId: !Ref RouteTable - - Subnet02RouteTableAssociation: - Type: AWS::EC2::SubnetRouteTableAssociation - Properties: - SubnetId: !Ref Subnet02 - RouteTableId: !Ref RouteTable - - Subnet03RouteTableAssociation: - Condition: HasMoreThan2Azs - Type: AWS::EC2::SubnetRouteTableAssociation - Properties: - SubnetId: !Ref Subnet03 - RouteTableId: !Ref RouteTable - - ControlPlaneSecurityGroup: - Type: AWS::EC2::SecurityGroup - Properties: - GroupDescription: Cluster communication with worker nodes - VpcId: !Ref VPC - -Outputs: - - SubnetIds: - Description: All subnets in the VPC - Value: - Fn::If: - - HasMoreThan2Azs - - !Join [ ",", [ !Ref Subnet01, !Ref Subnet02, !Ref Subnet03 ] ] - - !Join [ ",", [ !Ref Subnet01, !Ref Subnet02 ] ] - - SecurityGroups: - Description: Security group for the cluster control plane communication with worker nodes - Value: !Join [ ",", [ !Ref ControlPlaneSecurityGroup ] ] - - VpcId: - Description: The VPC Id - Value: !Ref VPC - - Subnet01ID: - Description: The Subnet01 Id - Value: !Ref Subnet01 - - Subnet02ID: - Description: The Subnet02 Id - Value: !Ref Subnet02 - - Subnet03ID: - Condition: HasMoreThan2Azs - Description: The Subnet03 Id - Value: !Ref Subnet03 - - Subnet01AZ: - Description: The Subnet01 AZ - Value: !GetAtt - - Subnet01 - - AvailabilityZone - - Subnet02AZ: - Description: The Subnet02 AZ - Value: !GetAtt - - Subnet02 - - AvailabilityZone - - Subnet03AZ: - Condition: HasMoreThan2Azs - Description: The Subnet03 AZ - Value: !GetAtt - - Subnet03 - - AvailabilityZone \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/amazon-eks-vpc-private-public.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/amazon-eks-vpc-private-public.yaml deleted file mode 100644 index 6b0fb7b19..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/amazon-eks-vpc-private-public.yaml +++ /dev/null @@ -1,353 +0,0 @@ ---- -AWSTemplateFormatVersion: '2010-09-09' -Description: 'Amazon EKS Sample VPC - Private and Public subnets' - -Parameters: - - VpcBlock: - Type: String - Default: VPC_VALUE - Description: The CIDR range for the VPC. This should be a valid private (RFC 1918) CIDR range. - - PublicSubnet01Block: - Type: String - Default: SUBNET01_VALUE - Description: CidrBlock for public subnet 01 within the VPC - - PublicSubnet02Block: - Type: String - Default: SUBNET02_VALUE - Description: CidrBlock for public subnet 02 within the VPC - - PrivateSubnet01Block: - Type: String - Default: SUBNET03_VALUE - Description: CidrBlock for private subnet 03 within the VPC - - PrivateSubnet02Block: - Type: String - Default: SUBNET04_VALUE - Description: CidrBlock for private subnet 04 within the VPC - -Metadata: - AWS::CloudFormation::Interface: - ParameterGroups: - - - Label: - default: "Worker Network Configuration" - Parameters: - - VpcBlock - - PublicSubnet01Block - - PublicSubnet02Block - - PrivateSubnet01Block - - PrivateSubnet02Block - -Resources: - VPC: - Type: AWS::EC2::VPC - Properties: - CidrBlock: !Ref VpcBlock - EnableDnsSupport: true - EnableDnsHostnames: true - Tags: - - Key: Name - Value: !Sub '${AWS::StackName}-VPC' - - Key: source - Value: gopaddle - - InternetGateway: - Type: "AWS::EC2::InternetGateway" - Properties: - Tags: - - Key: source - Value: gopaddle - - VPCGatewayAttachment: - Type: "AWS::EC2::VPCGatewayAttachment" - Properties: - InternetGatewayId: !Ref InternetGateway - VpcId: !Ref VPC - - PublicRouteTable: - Type: AWS::EC2::RouteTable - Properties: - VpcId: !Ref VPC - Tags: - - Key: Name - Value: Public Subnets - - Key: Network - Value: Public - - Key: source - Value: gopaddle - PrivateRouteTable01: - Type: AWS::EC2::RouteTable - Properties: - VpcId: !Ref VPC - Tags: - - Key: Name - Value: Private Subnet AZ1 - - Key: Network - Value: Private01 - - Key: source - Value: gopaddle - - PrivateRouteTable02: - Type: AWS::EC2::RouteTable - Properties: - VpcId: !Ref VPC - Tags: - - Key: Name - Value: Private Subnet AZ2 - - Key: Network - Value: Private02 - - Key: source - Value: gopaddle - - PublicRoute: - DependsOn: VPCGatewayAttachment - Type: AWS::EC2::Route - Properties: - RouteTableId: !Ref PublicRouteTable - DestinationCidrBlock: 0.0.0.0/0 - GatewayId: !Ref InternetGateway - - PrivateRoute01: - DependsOn: - - VPCGatewayAttachment - - NatGateway01 - Type: AWS::EC2::Route - Properties: - RouteTableId: !Ref PrivateRouteTable01 - DestinationCidrBlock: 0.0.0.0/0 - NatGatewayId: !Ref NatGateway01 - - PrivateRoute02: - DependsOn: - - VPCGatewayAttachment - - NatGateway02 - Type: AWS::EC2::Route - Properties: - RouteTableId: !Ref PrivateRouteTable02 - DestinationCidrBlock: 0.0.0.0/0 - NatGatewayId: !Ref NatGateway02 - - NatGateway01: - DependsOn: - - NatGatewayEIP1 - - PublicSubnet01 - - VPCGatewayAttachment - Type: AWS::EC2::NatGateway - Properties: - AllocationId: !GetAtt 'NatGatewayEIP1.AllocationId' - SubnetId: !Ref PublicSubnet01 - Tags: - - Key: Name - Value: !Sub '${AWS::StackName}-NatGatewayAZ1' - - Key: source - Value: gopaddle - - NatGateway02: - DependsOn: - - NatGatewayEIP2 - - PublicSubnet02 - - VPCGatewayAttachment - Type: AWS::EC2::NatGateway - Properties: - AllocationId: !GetAtt 'NatGatewayEIP2.AllocationId' - SubnetId: !Ref PublicSubnet02 - Tags: - - Key: Name - Value: !Sub '${AWS::StackName}-NatGatewayAZ2' - - Key: source - Value: gopaddle - - NatGatewayEIP1: - DependsOn: - - VPCGatewayAttachment - Type: 'AWS::EC2::EIP' - Properties: - Domain: vpc - - NatGatewayEIP2: - DependsOn: - - VPCGatewayAttachment - Type: 'AWS::EC2::EIP' - Properties: - Domain: vpc - - PublicSubnet01: - Type: AWS::EC2::Subnet - Metadata: - Comment: Subnet 01 - Properties: - MapPublicIpOnLaunch: true - AvailabilityZone: - Fn::Select: - - '0' - - Fn::GetAZs: - Ref: AWS::Region - CidrBlock: - Ref: PublicSubnet01Block - VpcId: - Ref: VPC - Tags: - - Key: Name - Value: !Sub "${AWS::StackName}-PublicSubnet01" - - Key: kubernetes.io/role/elb - Value: 1 - - Key: source - Value: gopaddle - - PublicSubnet02: - Type: AWS::EC2::Subnet - Metadata: - Comment: Subnet 02 - Properties: - MapPublicIpOnLaunch: true - AvailabilityZone: - Fn::Select: - - '1' - - Fn::GetAZs: - Ref: AWS::Region - CidrBlock: - Ref: PublicSubnet02Block - VpcId: - Ref: VPC - Tags: - - Key: Name - Value: !Sub "${AWS::StackName}-PublicSubnet02" - - Key: kubernetes.io/role/elb - Value: 1 - - Key: source - Value: gopaddle - - PrivateSubnet01: - Type: AWS::EC2::Subnet - Metadata: - Comment: Subnet 03 - Properties: - AvailabilityZone: - Fn::Select: - - '0' - - Fn::GetAZs: - Ref: AWS::Region - CidrBlock: - Ref: PrivateSubnet01Block - VpcId: - Ref: VPC - Tags: - - Key: Name - Value: !Sub "${AWS::StackName}-PrivateSubnet01" - - Key: kubernetes.io/role/internal-elb - Value: 1 - - Key: source - Value: gopaddle - - PrivateSubnet02: - Type: AWS::EC2::Subnet - Metadata: - Comment: Private Subnet 02 - Properties: - AvailabilityZone: - Fn::Select: - - '1' - - Fn::GetAZs: - Ref: AWS::Region - CidrBlock: - Ref: PrivateSubnet02Block - VpcId: - Ref: VPC - Tags: - - Key: Name - Value: !Sub "${AWS::StackName}-PrivateSubnet02" - - Key: kubernetes.io/role/internal-elb - Value: 1 - - Key: source - Value: gopaddle - - PublicSubnet01RouteTableAssociation: - Type: AWS::EC2::SubnetRouteTableAssociation - Properties: - SubnetId: !Ref PublicSubnet01 - RouteTableId: !Ref PublicRouteTable - - PublicSubnet02RouteTableAssociation: - Type: AWS::EC2::SubnetRouteTableAssociation - Properties: - SubnetId: !Ref PublicSubnet02 - RouteTableId: !Ref PublicRouteTable - - PrivateSubnet01RouteTableAssociation: - Type: AWS::EC2::SubnetRouteTableAssociation - Properties: - SubnetId: !Ref PrivateSubnet01 - RouteTableId: !Ref PrivateRouteTable01 - - PrivateSubnet02RouteTableAssociation: - Type: AWS::EC2::SubnetRouteTableAssociation - Properties: - SubnetId: !Ref PrivateSubnet02 - RouteTableId: !Ref PrivateRouteTable02 - - ControlPlaneSecurityGroup: - Type: AWS::EC2::SecurityGroup - Properties: - GroupDescription: Cluster communication with worker nodes - VpcId: !Ref VPC - Tags: - - Key: source - Value: gopaddle - -Outputs: - - SubnetIds: - Description: Subnets IDs in the VPC - Value: !Join [ ",", [ !Ref PublicSubnet01, !Ref PublicSubnet02, !Ref PrivateSubnet01, !Ref PrivateSubnet02 ] ] - - SecurityGroups: - Description: Security group for the cluster control plane communication with worker nodes - Value: !Join [ ",", [ !Ref ControlPlaneSecurityGroup ] ] - - VpcId: - Description: The VPC Id - Value: !Ref VPC - - Subnet01ID: - Description: The Subnet01 Id - Value: !Ref PublicSubnet01 - - Subnet02ID: - Description: The Subnet02 Id - Value: !Ref PublicSubnet02 - - Subnet03ID: - Description: The Subnet03 Id - Value: !Ref PrivateSubnet01 - - Subnet04ID: - Description: The Subnet04 Id - Value: !Ref PrivateSubnet02 - - Subnet01AZ: - Description: The Subnet01 AZ - Value: !GetAtt - - PublicSubnet01 - - AvailabilityZone - - Subnet02AZ: - Description: The Subnet02 AZ - Value: !GetAtt - - PublicSubnet02 - - AvailabilityZone - - Subnet03AZ: - Description: The Subnet03 AZ - Value: !GetAtt - - PrivateSubnet01 - - AvailabilityZone - - Subnet04AZ: - Description: The Subnet04 AZ - Value: !GetAtt - - PrivateSubnet02 - - AvailabilityZone \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/bastion-cft.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/bastion-cft.yaml deleted file mode 100644 index 60d7ffc48..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/bastion-cft.yaml +++ /dev/null @@ -1,167 +0,0 @@ -# Reference - https://aws.amazon.com/blogs/infrastructure-and-automation/best-practices-for-deploying-ec2-instances-with-aws-cloudformation/ ---- -AWSTemplateFormatVersion: '2010-09-09' -Description: 'Amazon EKS Sample VPC' - -Parameters: - - SubnetBlock: - Type: String - Default: SUBNET_VALUE - Description: CidrBlock for subnet 04 within the VPC - - -Metadata: - AWS::CloudFormation::Interface: - ParameterGroups: - - - Label: - default: "Worker Network Configuration" - Parameters: - - SubnetBlock - -Resources: - - InternetGateway: - Type: "AWS::EC2::InternetGateway" - Properties: - Tags: - - Key: source - Value: gopaddle - - VPCGatewayAttachment: - Type: "AWS::EC2::VPCGatewayAttachment" - Properties: - InternetGatewayId: !Ref InternetGateway - VpcId: VPC_ID - - - RouteTable: - Type: AWS::EC2::RouteTable - Properties: - VpcId: VPC_ID - Tags: - - Key: Name - Value: Public Subnets - - Key: Network - Value: Public - - Key: source - Value: gopaddle - - - Route: - DependsOn: VPCGatewayAttachment - Type: AWS::EC2::Route - Properties: - RouteTableId: !Ref RouteTable - DestinationCidrBlock: 0.0.0.0/0 - GatewayId: !Ref InternetGateway - - - Subnet: - Type: AWS::EC2::Subnet - Metadata: - Comment: Subnet 01 - Properties: - MapPublicIpOnLaunch: true - AvailabilityZone: SUBNET_ZONE - CidrBlock: - Ref: SubnetBlock - VpcId: VPC_ID - Tags: - - Key: Name - Value: !Sub "${AWS::StackName}-Subnet04" - - Key: SUBNET_TAG - Value: 1 - - Key: source - Value: gopaddle - - SubnetRouteTableAssociation: - Type: AWS::EC2::SubnetRouteTableAssociation - Properties: - SubnetId: !Ref Subnet - RouteTableId: !Ref RouteTable - - SecurityGroup: - Type: AWS::EC2::SecurityGroup - Properties: - GroupDescription: Bastion Host Security Group - VpcId: VPC_ID - SecurityGroupIngress: - - IpProtocol: tcp - FromPort: 443 - ToPort: 443 - - IpProtocol: tcp - FromPort: 22 - ToPort: 22 - Tags: - - Key: source - Value: gopaddle - - SecurityGroupIngress22: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: SecurityGroup - Properties: - Description: Allow node to communicate with each other - CidrIp: 0.0.0.0/0 - FromPort: 22 - GroupId: !Ref SecurityGroup - IpProtocol: tcp - ToPort: 22 - - SecurityGroupIngress443: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: SecurityGroup - Properties: - Description: Allow node to communicate with each other - CidrIp: 0.0.0.0/0 - FromPort: 443 - GroupId: !Ref SecurityGroup - IpProtocol: tcp - ToPort: 443 - - Ec2Instance: - Type: AWS::EC2::Instance - Properties: - ImageId: IMAGE_ID - KeyName: KEY_NAME - InstanceType: "t2.micro" - NetworkInterfaces: - - AssociatePublicIpAddress: "true" - DeviceIndex: "0" - GroupSet: - - Ref: SecurityGroup - SubnetId: - Ref: Subnet - Tags: - - Key: source - Value: gopaddle - UserData: !Base64 - "Fn::Sub": | - #!/bin/bash - sudo apt update - sudo snap install amazon-ssm-agent --classic - sudo snap switch --channel=candidate amazon-ssm-agent - sudo snap refresh amazon-ssm-agent - sudo snap start amazon-ssm-agent - sudo snap services amazon-ssm-agent - -Outputs: - - SubnetID: - Description: The Subnet Id - Value: !Ref Subnet - - InstanceID: - Description: The Instance Id - Value: !Ref Ec2Instance - - SecurityGroupID: - Description: The Security Group Id - Value: !Ref SecurityGroup - - PublicIp: - Value: !GetAtt - - Ec2Instance - - PublicIp - Description: Ec2Instance's PublicIp Address diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/bastion-kubeconfig.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/bastion-kubeconfig.yaml deleted file mode 100644 index c6982948b..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/bastion-kubeconfig.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -apiVersion: v1 -clusters: -- cluster: - server: https://localhost:9444 - insecure-skip-tls-verify: true - name: EKS_CLUSTER_ARN -contexts: -- context: - cluster: EKS_CLUSTER_ARN - user: cluster/EKS_CLUSTER_NAME - name: EKS_CLUSTER_ARN -current-context: EKS_CLUSTER_ARN -kind: Config -preferences: {} -users: -- name: cluster/EKS_CLUSTER_NAME - user: - exec: - apiVersion: client.authentication.k8s.io/v1beta1 - args: - - --region - - EKS_REGION - - eks - - get-token - - --cluster-name - - EKS_CLUSTER_NAME - command: aws - env: - - name: AWS_ACCESS_KEY_ID - value: EKS_OWNER_ACCESS - - name: AWS_SECRET_ACCESS_KEY - value: EKS_OWNER_SECRET \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/clusterrole.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/clusterrole.yaml deleted file mode 100644 index d415d4a1d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/clusterrole.yaml +++ /dev/null @@ -1,26 +0,0 @@ -AWSTemplateFormatVersion: "2010-09-09" - -Description: Amazon EKS - EKS service role - -Resources: - EksServiceRole: - Type: "AWS::IAM::Role" - Properties: - AssumeRolePolicyDocument: - Version: "2012-10-17" - Statement: - - Effect: Allow - Principal: - Service: - - eks.amazonaws.com - Action: - - "sts:AssumeRole" - ManagedPolicyArns: - - "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy" - - "arn:aws:iam::aws:policy/AmazonEKSServicePolicy" - Path: / - -Outputs: - EksServiceRole: - Description: The EKS service role - Value: !GetAtt EksServiceRole.Arn \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/error_config.json deleted file mode 100644 index c3ed5a3d6..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/error_config.json +++ /dev/null @@ -1,162 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "SOMETHING_WRONG": "Internal Error", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "INPUT_PAYLOAD_ERROR":"Input payload have error: %s", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "MARSHAL_ERROR":"Error in marshaling '%s'", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED": "Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type" - }, - "clusterManager":{ - "CLUSTER_NOTFOUND":"The requested cluster '%s' is not found", - "NAME_EXISTS":"Cluster Name '%s' already exists.", - "CLOUD_ACCOUNT_NOTFOUND":"Cluster.Kube.CloudAccount.ID '%s' Not valid", - "DEP_REF_ALREADY_EXISTS":"This Depency Reference Id '%s' version '%s' is already exists" - - }, - "eks":{ - "NODE_POOL_LENGTH":"Encountered invalid input: Cluster.Kube.EKS.Nodepool array length must be one", - "NODE_POOL_NAME":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].Name cannot be empty", - "NODE_POOL_INSTANCETYPE":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].InstanceType Should be valid", - "NODE_POOL_AMITYPE":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].AMIType must be one of 'AL2_x86_64','AL2_x86_64_GPU','AL2_ARM_64'", - "NODE_POOL_DESIREDCAPACITY":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].DesiredCapacity should not be empty", - "NODE_POOL_DISKSIZE":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].DiskSize should not be empty", - "NODE_POOL_KEYNAME":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].KeyName should not be empty", - "NODE_POOL_MAXCOUNT":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].MaxCount should not be empty", - "NODE_POOL_MINCOUNT":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].MinCount should not be empty", - "NODE_POOL_REGION":"Encountered invalid input: Cluster.Kube.EKS.VPCBlock.Region should be valid", - "VPC_CIDR":"Encountered invalid input: Cluster.Kube.EKS.VPCBlock.CIDR Should be valid", - "SUBNET_LENGTH":"Encountered invalid input: Cluster.Kube.EKS.VPC.Subnet length should be 3. if region is ca-central-1 length should be 2", - "SUBNET_CIDR":"Encountered invalid input: Cluster.Kube.EKS.Subnet['%s'].CIDR Should be valid", - "SUBNET_AZ":"Encountered invalid input: Cluster.Kube.EKS.Subnet['%s'].AZ should be one of %s", - "NODEPOOL_AZ":"Encountered invalid input: Cluster.Kube.EKS.NodePool[0].AZ need atleast one availability Zones", - "NODE_POOL_ROLE":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].NodePoolRole.RoleArn should not be empty", - "MASTER_ROLE":"Encountered invalid input: Cluster.Kube.EKS.MasterRole.RoleArn should not be empty", - "MASTER_VERSION":"Encountered invalid input: Cluster.Kube.Version Should be valid", - "STORIDGE_NODEPOOL_MINCOUNT":"Encountered invalid input: Cluster.Kube.EKS.NodePool[0].MinCount should not be greater than 2", - "NODE_POOL_AMIIMAGE":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].AMIImageID should not be empty", - "NODE_POOL_ROLEARN":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].NodePoolRole.RoleArn should be valid" - }, - "aks":{ - "NODE_POOL_LENGTH":"Encountered invalid input: Cluster.Kube.AKS.Nodepool array length must be one", - "NODE_POOL_NAME":"Encountered invalid input: Cluster.Kube.AKS.Nodepool[0].Name cannot be empty", - "NODE_POOL_INSTANCETYPE":"Encountered invalid input: Cluster.Kube.AKS.Nodepool[0].InstanceType Should be valid", - "NODE_POOL_COUNT":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].Count should not be empty", - "NODE_POOL_NODE_RESOURCE_GROUP":"Encountered invalid input: Cluster.Kube.AKS.Nodepool[0].NodeResourceGroup should not be empty", - "NODE_POOL_TYPE":"Encountered invalid input: Cluster.Kube.AKS.Nodepool[0].Type should be one of VirtualMachineScaleSets, AvailabilitySet", - "NODE_POOL_DISKSIZE":"Encountered invalid input: Cluster.Kube.AKS.Nodepool[0].DiskSize should not be empty", - "NODE_POOL_MAXCOUNT":"Encountered invalid input: Cluster.Kube.AKS.Nodepool[0].MaxCount should not be empty", - "NODE_POOL_MINCOUNT":"Encountered invalid input: Cluster.Kube.AKS.Nodepool[0].MinCount should not be empty", - "NODE_POOL_REGION":"Encountered invalid input: Cluster.Kube.AKS.Location should be valid", - "AKS_RESOURCE_GROUP_NAME":"Encountered invalid input: Cluster.Kube.AKS.ResourceGroupName should not be empty", - "AKS_SUBSCRIPTION_ID":"Encountered invalid input: Cluster.Kube.AKS.SubscriptionID should not be empty", - "NODE_POOL_OSTYPE":"Encountered invalid input: Cluster.Kube.AKS.Nodepool[0].OSType should be one of Linux, Windows", - "NODE_POOL_AZ":"Encountered invalid input: Cluster.Kube.AKS.Nodepool[0].AZ should be in the format ['1','2','3']", - "NODE_POOL_RS":"Encountered invalid input: Cluster.Kube.AKS.NetworkProfile.LoadBalancerSku not 'standard' so cannot create a nodepool with availability zones", - "SKU_TIER":"Encountered invalid input: Cluster.Kube.AKS.SKU.Tier should be one of Free, Paid", - "LBSKU":"Encountered invalid input: Cluster.Kube.AKS.NetworkProfile.LoadBalancerSku should be one of basic, standard", - "NODE_POOL_MODE":"Encountered invalid input: Cluster.Kube.AKS.Nodepool[0].Mode Should be one of User, System", - "NODE_POOL_NAME_VALID":"Encountered invalid input: AKSNodepool.Name Should be 1-12 charecters and lowercase.", - "RS_METRIC_NAME":"Encountered invalid input: Cluster.Kube.AKS.NodePool[0].AutoScale.RuleSets[%s].MetricName not available", - "RS_AGGREGATION_TYPE":"Encountered invalid input: Cluster.Kube.AKS.NodePool[0].AutoScale.RuleSets[%s].AggregationType not available", - "RS_OPERATOR":"Encountered invalid input: Cluster.Kube.AKS.NodePool[0].AutoScale.RuleSets[%s].Operator not available", - "RS_DURATION_TO_WATCH":"Encountered invalid input: Cluster.Kube.AKS.NodePool[0].AutoScale.RuleSets[%s].DurationToWatch not available", - "RS_VERB":"Encountered invalid input: Cluster.Kube.AKS.NodePool[0].AutoScale.RuleSets[%s].Verb not available", - "RS_COUNT":"Encountered invalid input: Cluster.Kube.AKS.NodePool[0].AutoScale.RuleSets[%s].Count not available", - "RS_CAPACITY":"Encountered invalid input: Cluster.Kube.AKS.NodePool[0].AutoScale.RuleSets[%s].Capacity not available", - "RS_SCALE_TYPE":"Encountered invalid input: Cluster.Kube.AKS.NodePool[0].AutoScale.RuleSets[%s].ScaleType not available", - "RS_TIME_WINDOW":"Encountered invalid input: Cluster.Kube.AKS.NodePool[0].AutoScale.RuleSets[%s].TimeWindow not available", - "RS_COOLDOWN":"Encountered invalid input: Cluster.Kube.AKS.NodePool[0].AutoScale.RuleSets[%s].CoolDown not available", - "RS_STATISTIC":"Encountered invalid input: Cluster.Kube.AKS.NodePool[0].AutoScale.RuleSets[%s].Statistic not available" - - }, - "gke":{ - "NODE_POOL_LENGTH":"Encountered invalid input: Cluster.Kube.GKE.Nodepool array length must be one", - "NODE_POOL_NAME":"Encountered invalid input: Cluster.Kube.GKE.Nodepool[0].Name cannot be empty", - "NODE_POOL_INSTANCETYPE":"Encountered invalid input: Cluster.Kube.GKE.Nodepool[0].InstanceType Should be valid", - "NODE_POOL_COUNT":"Encountered invalid input: Cluster.Kube.EKS.Nodepool[0].InitialNodeCount should not be empty", - "NODE_POOL_DISKSIZE":"Encountered invalid input: Cluster.Kube.GKE.Nodepool[0].DiskSize should not be empty", - "NODE_POOL_MAXCOUNT":"Encountered invalid input: Cluster.Kube.GKE.Nodepool[0].MaxCount should not be empty", - "NODE_POOL_MINCOUNT":"Encountered invalid input: Cluster.Kube.GKE.Nodepool[0].MinCount should not be empty", - "NODE_POOL_REGION":"Encountered invalid input: Cluster.Kube.GKE.Location['%s'] should be valid", - "PROJECTID_NOTFOUND":"Encountered invalid input: Cluster.Kube.GKE.ProjectID should not be empty" - }, - "external":{ - "IP_NOT_FOUND":"Encountered invalid input: Cluster.Kube.IP should not be empty", - "AUTH_TYPE":"Encountered invalid input: Cluster.Kube.AuthType should be one of password, config", - "USERNAME_NOTFOUND":"Encountered invalid input: Cluster.Kube.Auth.Basic.Username should not be empty", - "PASSWORD_NOTFOUND":"Encountered invalid input: Cluster.Kube.Auth.Password should not be empty", - "CONFIG_NOTFOUND":"Encountered invalid input: Cluster.Kube.Auth.Config.Config should not be empty", - "PORT_NOTFOUND":"Encountered invalid input: Cluster.Kube.Port should not be empty" - }, - "eksnodepool":{ - "NODE_POOL_NAME":"Encountered invalid input: EKSNodepool.Name cannot be empty", - "NODE_POOL_INSTANCETYPE":"Encountered invalid input: EKSNodepool.InstanceType Should be valid", - "NODE_POOL_AMITYPE":"Encountered invalid input: EKSNodepool.AMIType must be one of 'AL2_x86_64','AL2_x86_64_GPU','AL2_ARM_64'", - "NODE_POOL_DESIREDCAPACITY":"Encountered invalid input: EKSNodepool.DesiredCapacity should not be empty", - "NODE_POOL_DISKSIZE":"Encountered invalid input: EKSNodepool.DiskSize should not be empty", - "NODE_POOL_KEYNAME":"Encountered invalid input: EKSNodepool.KeyName should not be empty", - "NODE_POOL_MAXCOUNT":"Encountered invalid input: EKSNodepool.MaxCount should not be empty", - "NODE_POOL_MINCOUNT":"Encountered invalid input: EKSNodepool.MinCount should not be empty", - "SUBNET_AZ":"Encountered invalid input: EKSNodepool.AZ need atleast one availability Zones", - "NODE_POOL_ROLE":"Encountered invalid input: EKSNodepool.NodePoolRole.RoleArn should not be empty", - "STORIDGE_NODEPOOL_MINCOUNT":"Encountered invalid input: EKSNodepool.Mincount should not be greater than 2", - "NODE_POOL_ROLEARN":"Encountered invalid input: EKSNodepool.NodePoolRole.RoleArn should be valid", - "NODE_POOL_AMIIMAGE":"Encountered invalid input: EKSNodepool.AMIImageID should not be empty" - }, - "aksnodepool":{ - "NODE_POOL_NAME":"Encountered invalid input: AKSNodepool.Name Should be 1-12 charecters and lowercase.", - "NODE_POOL_NAME_VALID":"Encountered invalid input: AKSNodepool.Name cannot be empty", - "NODE_POOL_INSTANCETYPE":"Encountered invalid input: AKSNodepool.InstanceType Should be valid", - "NODE_POOL_COUNT":"Encountered invalid input: AKSNodepool.Count should not be empty", - "NODE_POOL_DISKSIZE":"Encountered invalid input: AKSNodepool.DiskSize should not be empty", - "NODE_POOL_MAXCOUNT":"Encountered invalid input: AKSNodepool.MaxCount should not be empty", - "NODE_POOL_MINCOUNT":"Encountered invalid input: AKSNodepool.MinCount should not be empty", - "NODE_POOL_RESOURCE_GROUP":"Encountered invalid input: AKSNodepool.NodeResourceGroup Should not be empty", - "NODE_POOL_TYPE":"Encountered invalid input: AKSNodepool.Type should be one of VirtualMachineScaleSets, AvailabilitySet", - "NODE_POOL_OSTYPE":"Encountered invalid input: AKSNodepool.OSType should be one of Linux, Windows", - "NODE_POOL_AZ":"Encountered invalid input: AKSNodepool.AZ should be in the format ['1','2','3']", - "NODE_POOL_MODE":"Encountered invalid input: AKSNodepool.Mode Should be one of User, System", - "RS_METRIC_NAME":"Encountered invalid input: AKSNodepool.AutoScale.RuleSets[%s].MetricName not available", - "RS_AGGREGATION_TYPE":"Encountered invalid input: AKSNodepool.AutoScale.RuleSets[%s].AggregationType not available", - "RS_OPERATOR":"Encountered invalid input: AKSNodepool.AutoScale.RuleSets[%s].Operator not available", - "RS_DURATION_TO_WATCH":"Encountered invalid input: AKSNodepool.AutoScale.RuleSets[%s].DurationToWatch not available", - "RS_VERB":"Encountered invalid input: AKSNodepool.AutoScale.RuleSets[%s].Verb not available", - "RS_COUNT":"Encountered invalid input: AKSNodepool.AutoScale.RuleSets[%s].Count not available", - "RS_CAPACITY":"Encountered invalid input: AKSNodepool.AutoScale.RuleSets[%s].Capacity not available", - "RS_SCALE_TYPE":"Encountered invalid input: AKSNodepool.AutoScale.RuleSets[%s].ScaleType not available", - "RS_TIME_WINDOW":"Encountered invalid input: AKSNodepool.AutoScale.RuleSets[%s].TimeWindow not available", - "RS_COOLDOWN":"Encountered invalid input: AKSNodepool.AutoScale.RuleSets[%s].CoolDown not available", - "RS_STATISTIC":"Encountered invalid input: AKSNodepool.AutoScale.RuleSets[%s].Statistic not available" - }, - "gkenodepool":{ - "NODE_POOL_NAME":"Encountered invalid input: GKENodepool.Name cannot be empty", - "NODE_POOL_INSTANCETYPE":"Encountered invalid input: GKENodepool.InstanceType Should be valid", - "NODE_POOL_COUNT":"Encountered invalid input: GKENodepool.InitialNodeCount should not be empty", - "NODE_POOL_DISKSIZE":"Encountered invalid input: GKENodepool.DiskSize should not be empty", - "NODE_POOL_MAXCOUNT":"Encountered invalid input: GKENodepool.MaxCount should not be empty", - "NODE_POOL_MINCOUNT":"Encountered invalid input: GKENodepool.MinCount should not be empty" - }, - - "activity":{ - "ACTIVITY_NOTFOUND":"The requested activity '%s' is not found" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/gke-kubeconfig.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/gke-kubeconfig.yaml deleted file mode 100644 index ad0921a12..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/gke-kubeconfig.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -clusters: -- cluster: - certificate-authority-data: CERTIFICATE - server: https://CLUSTER_IP - name: CLUSTER_NAME -contexts: -- context: - cluster: CLUSTER_NAME - user: CLUSTER_NAME - name: CLUSTER_NAME -current-context: CLUSTER_NAME -kind: Config -preferences: {} -users: -- name: CLUSTER_NAME - user: - auth-provider: - name: gcp diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/internal_api.json deleted file mode 100644 index 5aadb6b09..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/internal_api.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s&project=%s", - "port":"8005" - }, - "aclProject":{ - "url":"http://%s:%s/api-in/%s/v1/acl?project=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api-in/%s/v1/subusers/%s", - "port":"8005" - }, - "project":{ - "url":"http://%s:%s/api-internal/%s/v1/projectlist", - "port":"8005" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/kubeconfig.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/kubeconfig.yaml deleted file mode 100644 index 21a78740d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/kubeconfig.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -apiVersion: v1 -clusters: -- cluster: - certificate-authority-data: CERTIFICATE_VALUE - server: ENDPOINT_VALUE - name: CLUSTER_VALUE -contexts: -- context: - cluster: CONTEXT_CLUSTER_NAME - user: CONTEXT_USER_NAME - name: CLUSTER_USER_NAME -current-context: CONTEXT_NAME -kind: Config -preferences: {} -users: -- name: USER_NAME - user: - exec: - apiVersion: client.authentication.k8s.io/v1alpha1 - args: - - --region - - REGION_VALUE - - eks - - get-token - - --cluster-name - - NAME_VALUE - command: aws - env: - - name: AWS_ACCESS_KEY_ID - value: ACCESS_KEY_VALUE - - name: AWS_SECRET_ACCESS_KEY - value: SECRET_KEY_VALUE \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/nodegroup.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/nodegroup.yaml deleted file mode 100644 index 814814d68..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/nodegroup.yaml +++ /dev/null @@ -1,610 +0,0 @@ -AWSTemplateFormatVersion: "2010-09-09" - -Description: Amazon EKS - Node Group - -Metadata: - "AWS::CloudFormation::Interface": - ParameterGroups: - - Label: - default: EKS Cluster - Parameters: - - ClusterName - - ClusterControlPlaneSecurityGroup - - Label: - default: Worker Node Configuration - Parameters: - - NodeGroupName - - NodeAutoScalingGroupMinSize - - NodeAutoScalingGroupDesiredCapacity - - NodeAutoScalingGroupMaxSize - - NodeInstanceType - - NodeImageIdSSMParam - - NodeImageId - - NodeVolumeSize - - KeyName - - BootstrapArguments - - DisableIMDSv1 - - Label: - default: Worker Network Configuration - Parameters: - - VpcId - - Subnets - - NodeInstanceRole - -Parameters: - BootstrapArguments: - Type: String - Default: "" - Description: "Arguments to pass to the bootstrap script. See files/bootstrap.sh in https://github.com/awslabs/amazon-eks-ami" - - ClusterControlPlaneSecurityGroup: - Type: "AWS::EC2::SecurityGroup::Id" - Default: CLUSTER_SG - Description: The security group of the cluster control plane. - - ClusterName: - Type: String - Default: CLUSTER_NAME - Description: The cluster name provided when the cluster was created. If it is incorrect, nodes will not be able to join the cluster. - - KeyName: - Type: "AWS::EC2::KeyPair::KeyName" - Default: KEY_NAME - Description: The EC2 Key Pair to allow SSH access to the instances - - NodeAutoScalingGroupDesiredCapacity: - Type: Number - Default: ASG_DESIRED_CAPACITY - Description: Desired capacity of Node Group ASG. - - NodeAutoScalingGroupMaxSize: - Type: Number - Default: ASG_MAXSIZE - Description: Maximum size of Node Group ASG. Set to at least 1 greater than NodeAutoScalingGroupDesiredCapacity. - - NodeAutoScalingGroupMinSize: - Type: Number - Default: ASG_MINSIZE - Description: Minimum size of Node Group ASG. - - NodeGroupName: - Type: String - Default: NODEGROUP_NAME - Description: Unique identifier for the Node Group. - - NodeImageId: - Type: String - Default: AMI_IMAGE_ID - Description: (Optional) Specify your own custom image ID. This value overrides any AWS Systems Manager Parameter Store value specified above. - - NodeImageIdSSMParam: - Type: "AWS::SSM::Parameter::Value" - Default: /aws/service/eks/optimized-ami/1.17/amazon-linux-2/recommended/image_id - Description: AWS Systems Manager Parameter Store parameter of the AMI ID for the worker node instances. Change this value to match the version of Kubernetes you are using. - - DisableIMDSv1: - Type: String - Default: "false" - AllowedValues: - - "false" - - "true" - - NodeInstanceType: - Type: String - Default: NODEPOOL_INSTANCE_TYPE - AllowedValues: - - a1.medium - - a1.large - - a1.xlarge - - a1.2xlarge - - a1.4xlarge - - c1.medium - - c1.xlarge - - c3.large - - c3.xlarge - - c3.2xlarge - - c3.4xlarge - - c3.8xlarge - - c4.large - - c4.xlarge - - c4.2xlarge - - c4.4xlarge - - c4.8xlarge - - c5.large - - c5.xlarge - - c5.2xlarge - - c5.4xlarge - - c5.9xlarge - - c5.12xlarge - - c5.18xlarge - - c5.24xlarge - - c5.metal - - c5d.large - - c5d.xlarge - - c5d.2xlarge - - c5d.4xlarge - - c5d.9xlarge - - c5d.12xlarge - - c5d.18xlarge - - c5d.24xlarge - - c5d.metal - - c5n.large - - c5n.xlarge - - c5n.2xlarge - - c5n.4xlarge - - c5n.9xlarge - - c5n.18xlarge - - c6g.medium - - c6g.large - - c6g.xlarge - - c6g.2xlarge - - c6g.4xlarge - - c6g.8xlarge - - c6g.12xlarge - - c6g.16xlarge - - c6g.metal - - c6gd.medium - - c6gd.large - - c6gd.xlarge - - c6gd.2xlarge - - c6gd.4xlarge - - c6gd.8xlarge - - c6gd.12xlarge - - c6gd.16xlarge - - c6gd.metal - - cc2.8xlarge - - cr1.8xlarge - - d2.xlarge - - d2.2xlarge - - d2.4xlarge - - d2.8xlarge - - f1.2xlarge - - f1.4xlarge - - f1.16xlarge - - g2.2xlarge - - g2.8xlarge - - g3s.xlarge - - g3.4xlarge - - g3.8xlarge - - g3.16xlarge - - h1.2xlarge - - h1.4xlarge - - h1.8xlarge - - h1.16xlarge - - hs1.8xlarge - - i2.xlarge - - i2.2xlarge - - i2.4xlarge - - i2.8xlarge - - i3.large - - i3.xlarge - - i3.2xlarge - - i3.4xlarge - - i3.8xlarge - - i3.16xlarge - - i3.metal - - i3en.large - - i3en.xlarge - - i3en.2xlarge - - i3en.3xlarge - - i3en.6xlarge - - i3en.12xlarge - - i3en.24xlarge - - inf1.xlarge - - inf1.2xlarge - - inf1.6xlarge - - inf1.24xlarge - - m1.small - - m1.medium - - m1.large - - m1.xlarge - - m2.xlarge - - m2.2xlarge - - m2.4xlarge - - m3.medium - - m3.large - - m3.xlarge - - m3.2xlarge - - m4.large - - m4.xlarge - - m4.2xlarge - - m4.4xlarge - - m4.10xlarge - - m4.16xlarge - - m5.large - - m5.xlarge - - m5.2xlarge - - m5.4xlarge - - m5.8xlarge - - m5.12xlarge - - m5.16xlarge - - m5.24xlarge - - m5.metal - - m5a.large - - m5a.xlarge - - m5a.2xlarge - - m5a.4xlarge - - m5a.8xlarge - - m5a.12xlarge - - m5a.16xlarge - - m5a.24xlarge - - m5ad.large - - m5ad.xlarge - - m5ad.2xlarge - - m5ad.4xlarge - - m5ad.12xlarge - - m5ad.24xlarge - - m5d.large - - m5d.xlarge - - m5d.2xlarge - - m5d.4xlarge - - m5d.8xlarge - - m5d.12xlarge - - m5d.16xlarge - - m5d.24xlarge - - m5d.metal - - m5dn.large - - m5dn.xlarge - - m5dn.2xlarge - - m5dn.4xlarge - - m5dn.8xlarge - - m5dn.12xlarge - - m5dn.16xlarge - - m5dn.24xlarge - - m5n.large - - m5n.xlarge - - m5n.2xlarge - - m5n.4xlarge - - m5n.8xlarge - - m5n.12xlarge - - m5n.16xlarge - - m5n.24xlarge - - m6g.medium - - m6g.large - - m6g.xlarge - - m6g.2xlarge - - m6g.4xlarge - - m6g.8xlarge - - m6g.12xlarge - - m6g.16xlarge - - m6g.metal - - m6gd.medium - - m6gd.large - - m6gd.xlarge - - m6gd.2xlarge - - m6gd.4xlarge - - m6gd.8xlarge - - m6gd.12xlarge - - m6gd.16xlarge - - m6gd.metal - - p2.xlarge - - p2.8xlarge - - p2.16xlarge - - p3.2xlarge - - p3.8xlarge - - p3.16xlarge - - p3dn.24xlarge - - g4dn.xlarge - - g4dn.2xlarge - - g4dn.4xlarge - - g4dn.8xlarge - - g4dn.12xlarge - - g4dn.16xlarge - - g4dn.metal - - r3.large - - r3.xlarge - - r3.2xlarge - - r3.4xlarge - - r3.8xlarge - - r4.large - - r4.xlarge - - r4.2xlarge - - r4.4xlarge - - r4.8xlarge - - r4.16xlarge - - r5.large - - r5.xlarge - - r5.2xlarge - - r5.4xlarge - - r5.8xlarge - - r5.12xlarge - - r5.16xlarge - - r5.24xlarge - - r5.metal - - r5a.large - - r5a.xlarge - - r5a.2xlarge - - r5a.4xlarge - - r5a.8xlarge - - r5a.12xlarge - - r5a.16xlarge - - r5a.24xlarge - - r5ad.large - - r5ad.xlarge - - r5ad.2xlarge - - r5ad.4xlarge - - r5ad.12xlarge - - r5ad.24xlarge - - r5d.large - - r5d.xlarge - - r5d.2xlarge - - r5d.4xlarge - - r5d.8xlarge - - r5d.12xlarge - - r5d.16xlarge - - r5d.24xlarge - - r5d.metal - - r5dn.large - - r5dn.xlarge - - r5dn.2xlarge - - r5dn.4xlarge - - r5dn.8xlarge - - r5dn.12xlarge - - r5dn.16xlarge - - r5dn.24xlarge - - r5n.large - - r5n.xlarge - - r5n.2xlarge - - r5n.4xlarge - - r5n.8xlarge - - r5n.12xlarge - - r5n.16xlarge - - r5n.24xlarge - - r6g.medium - - r6g.large - - r6g.xlarge - - r6g.2xlarge - - r6g.4xlarge - - r6g.8xlarge - - r6g.12xlarge - - r6g.16xlarge - - r6g.metal - - r6gd.medium - - r6gd.large - - r6gd.xlarge - - r6gd.2xlarge - - r6gd.4xlarge - - r6gd.8xlarge - - r6gd.12xlarge - - r6gd.16xlarge - - r6gd.metal - - t1.micro - - t2.nano - - t2.micro - - t2.small - - t2.medium - - t2.large - - t2.xlarge - - t2.2xlarge - - t3.nano - - t3.micro - - t3.small - - t3.medium - - t3.large - - t3.xlarge - - t3.2xlarge - - t3a.nano - - t3a.micro - - t3a.small - - t3a.medium - - t3a.large - - t3a.xlarge - - t3a.2xlarge - - u-6tb1.metal - - u-9tb1.metal - - u-12tb1.metal - - x1.16xlarge - - x1.32xlarge - - x1e.xlarge - - x1e.2xlarge - - x1e.4xlarge - - x1e.8xlarge - - x1e.16xlarge - - x1e.32xlarge - - z1d.large - - z1d.xlarge - - z1d.2xlarge - - z1d.3xlarge - - z1d.6xlarge - - z1d.12xlarge - - z1d.metal - ConstraintDescription: Must be a valid EC2 instance type - Description: EC2 instance type for the node instances - - NodeVolumeSize: - Type: Number - Default: NODE_DISK_SIZE - Description: Node volume size - - Subnets: - Type: "CommaDelimitedList" - Default: SUBNET01 - Description: The subnets where workers can be created. - - VpcId: - Type: "AWS::EC2::VPC::Id" - Default: VPCID - Description: The VPC of the worker instances - - NodeInstanceRole: - Type: String - Default: NODE_INSTANCE_ROLE - Description: The node instance role of the worker instances - -Mappings: - PartitionMap: - aws: - EC2ServicePrincipal: "ec2.amazonaws.com" - aws-us-gov: - EC2ServicePrincipal: "ec2.amazonaws.com" - aws-cn: - EC2ServicePrincipal: "ec2.amazonaws.com.cn" - aws-iso: - EC2ServicePrincipal: "ec2.c2s.ic.gov" - aws-iso-b: - EC2ServicePrincipal: "ec2.sc2s.sgov.gov" - -Conditions: - HasNodeImageId: !Not - - "Fn::Equals": - - !Ref NodeImageId - - "" - - IMDSv1Disabled: - "Fn::Equals": - - !Ref DisableIMDSv1 - - "true" - -Resources: - NodeInstanceProfile: - Type: "AWS::IAM::InstanceProfile" - Properties: - Path: / - Roles: - - !Ref NodeInstanceRole - - NodeSecurityGroup: - Type: "AWS::EC2::SecurityGroup" - Properties: - GroupDescription: Security group for all nodes in the cluster - Tags: - - Key: !Sub kubernetes.io/cluster/${ClusterName} - Value: owned - VpcId: !Ref VpcId - - NodeSecurityGroupIngress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow node to communicate with each other - FromPort: 0 - GroupId: !Ref NodeSecurityGroup - IpProtocol: "-1" - SourceSecurityGroupId: !Ref NodeSecurityGroup - ToPort: 65535 - - ClusterControlPlaneToNodeSecurityGroupIngress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow pods to communicate with the cluster API Server - FromPort: 0 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: "-1" - SourceSecurityGroupId: !Ref NodeSecurityGroup - ToPort: 65535 - - ClusterControlPlaneSecurityGroupIngress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow pods to communicate with the cluster API Server1 - FromPort: 0 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: "-1" - SourceSecurityGroupId: !Ref ClusterControlPlaneSecurityGroup - ToPort: 65535 - - ClusterControlPlaneEgressToNodeSecurityGroup: - Type: "AWS::EC2::SecurityGroupEgress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow the cluster control plane to communicate with worker Kubelet and pods - GroupId: !Ref ClusterControlPlaneSecurityGroup - CidrIp: 0.0.0.0/0 - FromPort: 0 - IpProtocol: "-1" - ToPort: 65535 - - ClusterControlPlaneIngressForStoridgeAPIOn8282: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow goPaddle/User to access the Storidge API on 8282 - FromPort: 8282 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: tcp - CidrIp: 0.0.0.0/0 - ToPort: 8282 - - ClusterControlPlaneIngressForGrafanaOn32000: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow users to access the Grafana on 32000 - FromPort: 32000 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: tcp - CidrIp: 0.0.0.0/0 - ToPort: 32000 - - NodeLaunchTemplate: - Type: "AWS::EC2::LaunchTemplate" - Properties: - LaunchTemplateData: - BlockDeviceMappings: - - DeviceName: /dev/xvda - Ebs: - DeleteOnTermination: true - VolumeSize: !Ref NodeVolumeSize - VolumeType: gp2 - IamInstanceProfile: - Arn: !GetAtt NodeInstanceProfile.Arn - ImageId: !If - - HasNodeImageId - - !Ref NodeImageId - - !Ref NodeImageIdSSMParam - InstanceType: !Ref NodeInstanceType - KeyName: !Ref KeyName - SecurityGroupIds: - - !Ref NodeSecurityGroup - - !Ref ClusterControlPlaneSecurityGroup - UserData: !Base64 - "Fn::Sub": | - #!/bin/bash - set -o xtrace - /etc/eks/bootstrap.sh ${ClusterName} --kubelet-extra-args --node-labels=nodePoolName=NODEGROUP_NAME - /opt/aws/bin/cfn-signal --exit-code $? \ - --stack ${AWS::StackName} \ - --resource NodeGroup \ - --region ${AWS::Region} - MetadataOptions: - HttpPutResponseHopLimit : 2 - HttpEndpoint: enabled - HttpTokens: !If - - IMDSv1Disabled - - required - - optional - - NodeGroup: - Type: "AWS::AutoScaling::AutoScalingGroup" - Properties: - DesiredCapacity: !Ref NodeAutoScalingGroupDesiredCapacity - LaunchTemplate: - LaunchTemplateId: !Ref NodeLaunchTemplate - Version: !GetAtt NodeLaunchTemplate.LatestVersionNumber - MaxSize: !Ref NodeAutoScalingGroupMaxSize - MinSize: !Ref NodeAutoScalingGroupMinSize - Tags: - - Key: Name - PropagateAtLaunch: true - Value: !Sub ${ClusterName}-${NodeGroupName}-Node - - Key: !Sub kubernetes.io/cluster/${ClusterName} - PropagateAtLaunch: true - Value: owned - VPCZoneIdentifier: !Ref Subnets - UpdatePolicy: - AutoScalingRollingUpdate: - MaxBatchSize: 1 - MinInstancesInService: !Ref NodeAutoScalingGroupDesiredCapacity - PauseTime: PT5M - -Outputs: - - NodeSecurityGroup: - Description: The security group for the node group - Value: !Ref NodeSecurityGroup - - NodeAutoScalingGroup: - Description: The autoscaling group - Value: !Ref NodeGroup \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/nodegrouprole.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/nodegrouprole.yaml deleted file mode 100644 index 2d2de6ea6..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/nodegrouprole.yaml +++ /dev/null @@ -1,27 +0,0 @@ -AWSTemplateFormatVersion: "2010-09-09" - -Description: Amazon EKS - Node Group Role - -Resources: - NodeInstanceRole: - Type: "AWS::IAM::Role" - Properties: - AssumeRolePolicyDocument: - Version: "2012-10-17" - Statement: - - Effect: Allow - Principal: - Service: - - ec2.amazonaws.com - Action: - - "sts:AssumeRole" - ManagedPolicyArns: - - "arn:aws:iam::aws:policy/AmazonEKSWorkerNodePolicy" - - "arn:aws:iam::aws:policy/AmazonEKS_CNI_Policy" - - "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly" - Path: / - -Outputs: - NodeInstanceRole: - Description: The node instance role - Value: !GetAtt NodeInstanceRole.Arn \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/profiles-kube.json deleted file mode 100644 index b0d3b9e0b..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/profiles-kube.json +++ /dev/null @@ -1,624 +0,0 @@ -{ - "rabbitmq":{ - "mq-protocol":"amqp", - "mq-user":"admin", - "mq-password":"cGFzc3dvcmQ", - "mq-ip":"rabbitmq", - "mq-port":"5672", - "mq-apps-host":"/apps", - "mq-apps-queue":"apps-worker-queue" - }, - "esearch":{ - "es-user":"elastic", - "es-password":"cGFzc3dvcmQ", - "es-endpoints":[ - "http://esearch:9200" - ] - }, - "gopaddleTools":{ - "prometheus":{ - "gatewayEndpoint":"NODE_IP", - "gatewayAPI":"/api/%s/v1/%s/application/datacollector/datapoint", - "influxDBs":{ - "influxDB-1":{ - "dbEndpoint":"http://influxdb:8086", - "dbUser":"admin", - "dbPassword":"cGFzc3dvcmQ", - "maxUserCount":"100", - "isEnabled":true - } - } - }, - "eventHandler":{ - "gatewayEndpoint":"NODE_IP", - "gatewayAPI":"/api/%s/v1/%s/application/clusterInfo/%s/datacollector/eventhandler" - } - }, - "mongodb":{ - "db-name":"clustermanager", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - }, - "cluster":{ - "createAKS":"https://management.azure.com/subscriptions/:subscriptionID/resourceGroups/:resourceGroupName/providers/Microsoft.ContainerService/managedClusters/:name?api-version=2020-06-01", - "createAKSNodePool":"https://management.azure.com/subscriptions/:subscriptionID/resourceGroups/:resourceGroupName/providers/Microsoft.ContainerService/managedClusters/:name/agentPools/:nodePoolName?api-version=2020-06-01", - "getAKSNodePool":"https://management.azure.com/subscriptions/:subscriptionID/resourceGroups/:resourceGroupName/providers/Microsoft.ContainerService/managedClusters/:name/agentPools/:nodePoolName?api-version=2020-06-01", - "scaleAKSNodePool":"https://management.azure.com/subscriptions/:subscriptionID/resourceGroups/:resourceGroupName/providers/Microsoft.ContainerService/managedClusters/:name/agentPools/:nodePoolName?api-version=2020-06-01", - "getAKS":"https://management.azure.com/subscriptions/:subscriptionID/resourceGroups/:resourceGroupName/providers/Microsoft.ContainerService/managedClusters/:name?api-version=2020-06-01", - "getAKSClusterConfig":"https://management.azure.com/subscriptions/:subscriptionID/resourceGroups/:resourceGroupName/providers/Microsoft.ContainerService/managedClusters/:name/listClusterUserCredential?api-version=2020-06-01", - "getAKSResourceGroup":"https://management.azure.com/subscriptions/:subscriptionID/resourcegroups/:resourceGroupName?api-version=2020-06-01", - "createAKSResourceGroup":"https://management.azure.com/subscriptions/:subscriptionID/resourcegroups/:resourceGroupName?api-version=2020-06-01", - "deleteAKSResourceGroup":"https://management.azure.com/subscriptions/:subscriptionID/resourcegroups/:resourceGroupName?api-version=2020-06-01", - "getSubscriptionsAKS":"https://management.azure.com/subscriptions?api-version=2020-06-01", - "platformURL":"api/:accID/platform/:platformID?operation=secrets&organizationID=:organizationID", - "createGCE":"https://container.googleapis.com/v1/projects/:projectID/locations/:location/clusters", - "createGCENodePool":"https://container.googleapis.com/v1/projects/:projectID/locations/:location/clusters/:name/nodePools", - "getGCENodePool":"https://container.googleapis.com/v1/projects/:projectID/locations/:location/clusters/:name/nodePools/:nodePoolName", - "getGCEByName":"https://container.googleapis.com/v1/projects/:project_id/zones/:zone/clusters/:name", - "oauthScopes":"https://www.googleapis.com/auth/devstorage.read_only", - "getGCE":"https://container.googleapis.com/v1/projects/:projectID/locations/:location/clusters/:name", - "updateGCENodePoolSize":"https://container.googleapis.com/v1/projects/:projectID/locations/:location/clusters/:name/nodePools/:nodePoolName:setSize", - "getGCEInstanceGroup":"https://compute.googleapis.com/compute/v1/projects/:projectID/zones/:location/instanceGroups/:instanceGroupName/listInstances", - "getGCEInstance":"https://compute.googleapis.com/compute/v1/projects/:projectID/zones/:location/instances/:instanceName", - "getGCEProjects":"https://cloudresourcemanager.googleapis.com/v1/projects", - "listAKSResourceGroups":"https://management.azure.com/subscriptions/:subscriptionID/resourcegroups?api-version=2020-06-01", - "listVMSS":"https://management.azure.com/subscriptions/:subscriptionID/resourceGroups/:resourceGroupName/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2020-06-01", - "listVMSSInstance":"https://management.azure.com/subscriptions/:subscriptionID/resourceGroups/:resourceGroupName/providers/Microsoft.Compute/virtualMachineScaleSets/:vmss/virtualMachines?api-version=2020-06-01", - "listVMSSInterface":"https://management.azure.com/subscriptions/:subscriptionID/resourceGroups/:resourceGroupName/providers/microsoft.Compute/virtualMachineScaleSets/:vmss/networkInterfaces?api-version=2018-10-01", - "azureAutoScale":"https://management.azure.com/subscriptions/:subscriptionID/resourcegroups/:resourceGroupName/providers/microsoft.insights/autoscalesettings/:autoScaleName?api-version=2015-04-01" - }, - "aksServicePrincipalApp":{ - "clientID":"164192b6-cccf-4ef0-b147-eead3ac31512", - "secret":"s0e]FceLcdbTu@]/sO01g76Q5rBIeoLj" - }, - "instantsTypes":{ - "eks":{ - "versions":[ - "1.19", - "1.20", - "1.21", - "1.22" - ], - "cpuInstances":[ - "t3.micro", - "t3.small", - "t3.medium", - "t3.large", - "t3.xlarge", - "t3.2xlarge", - "t3a.micro", - "t3a.small", - "t3a.medium", - "t3a.large", - "t3a.xlarge", - "t3a.2xlarge", - "m5.large", - "m5.xlarge", - "m5.2xlarge", - "m5.4xlarge", - "m5.8xlarge", - "m5.12xlarge", - "m5a.large", - "m5a.xlarge", - "m5a.2xlarge", - "m5a.4xlarge", - "c5.large", - "c5.xlarge", - "c5.2xlarge", - "c5.4xlarge", - "c5.9xlarge", - "r5.large", - "r5.xlarge", - "r5.2xlarge", - "r5.4xlarge", - "r5a.large", - "r5a.xlarge", - "r5a.2xlarge", - "r5a.4xlarge" - ], - "gpuInstances":[ - "g4dn.xlarge", - "g4dn.2xlarge", - "g4dn.4xlarge", - "g4dn.8xlarge", - "g4dn.12xlarge", - "p2.xlarge", - "p2.8xlarge", - "p2.16xlarge", - "p3.2xlarge", - "p3.8xlarge", - "p3.16xlarge", - "p3dn.24xlarge" - ], - "armInstances":[ - "m6g.medium", - "m6g.large", - "m6g.xlarge", - "m6g.2xlarge", - "m6g.4xlarge", - "m6g.8xlarge", - "m6g.12xlarge", - "m6g.16xlarge", - "c6g.medium", - "c6g.large", - "c6g.xlarge", - "c6g.2xlarge", - "c6g.4xlarge", - "c6g.8xlarge", - "c6g.12xlarge", - "c6g.16xlarge", - "r6g.medium", - "r6g.large", - "r6g.xlarge", - "r6g.2xlarge", - "r6g.4xlarge", - "r6g.8xlarge", - "r6g.12xlarge", - "r6g.16xlarge" - ], - "regions":[ - "us-east-1", - "us-east-2", - "us-west-2", - "ap-east-1", - "ap-south-1", - "ap-northeast-2", - "ap-southeast-1", - "ap-southeast-2", - "ap-northeast-1", - "ca-central-1", - "eu-central-1", - "eu-west-1", - "eu-west-2", - "eu-west-3", - "eu-north-1", - "me-south-1", - "sa-east-1" - ], - "us-east-1":[ - "us-east-1a", - "us-east-1b", - "us-east-1c", - "us-east-1d", - "us-east-1e", - "us-east-1f" - ], - "us-east-2":[ - "us-east-2a", - "us-east-2b", - "us-east-2c" - ], - "us-west-2":[ - "us-west-2a", - "us-west-2b", - "us-west-2c", - "us-west-2d" - ], - "ap-east-1":[ - ], - "ap-south-1":[ - "ap-south-1a", - "ap-south-1b", - "ap-south-1c" - ], - "ap-northeast-2":[ - "ap-northeast-2a", - "ap-northeast-2b", - "ap-northeast-2c" - ], - "ap-southeast-1":[ - "ap-southeast-1a", - "ap-southeast-1b", - "ap-southeast-1c" - ], - "ap-southeast-2":[ - "ap-southeast-2a", - "ap-southeast-2b", - "ap-southeast-2c" - ], - "ap-northeast-1":[ - "ap-northeast-1a", - "ap-northeast-1b", - "ap-northeast-1c", - "ap-northeast-1d" - ], - "ca-central-1":[ - "ca-central-1a", - "ca-central-1b" - ], - "eu-central-1":[ - "eu-central-1a", - "eu-central-1b", - "eu-central-1c" - ], - "eu-west-1":[ - "eu-west-1a", - "eu-west-1b", - "eu-west-1c" - ], - "eu-west-2":[ - "eu-west-2a", - "eu-west-2b", - "eu-west-2c" - ], - "eu-west-3":[ - "eu-west-3a", - "eu-west-3b", - "eu-west-3c" - ], - "eu-north-1":[ - "eu-north-1a", - "eu-north-1b", - "eu-north-1c" - ], - "me-south-1":[ - ], - "sa-east-1":[ - "sa-east-1a", - "sa-east-1b", - "sa-east-1c" - ] - }, - "aks":{ - "instanceTypes":[ - "Standard_A1", - "Standard_A10", - "Standard_A11", - "Standard_A1_v2", - "Standard_A2", - "Standard_A2_v2", - "Standard_A2m_v2", - "Standard_A3", - "Standard_A4", - "Standard_A4_v2", - "Standard_A4m_v2", - "Standard_A5", - "Standard_A6", - "Standard_A7", - "Standard_A8", - "Standard_A8_v2", - "Standard_A8m_v2", - "Standard_A9", - "Standard_B2ms", - "Standard_B2s", - "Standard_B4ms", - "Standard_B8ms", - "Standard_D1", - "Standard_D11", - "Standard_D11_v2", - "Standard_D11_v2_Promo", - "Standard_D12", - "Standard_D12_v2", - "Standard_D12_v2_Promo", - "Standard_D13", - "Standard_D13_v2", - "Standard_D13_v2_Promo", - "Standard_D14", - "Standard_D14_v2", - "Standard_D14_v2_Promo", - "Standard_D15_v2", - "Standard_D16_v3", - "Standard_D16s_v3", - "Standard_D1_v2", - "Standard_D2", - "Standard_D2_v2", - "Standard_D2_v2_Promo", - "Standard_D2_v3", - "Standard_D2s_v3", - "Standard_D3", - "Standard_D32_v3", - "Standard_D32s_v3", - "Standard_D3_v2", - "Standard_D3_v2_Promo", - "Standard_D4", - "Standard_D4_v2", - "Standard_D4_v2_Promo", - "Standard_D4_v3", - "Standard_D4s_v3", - "Standard_D5_v2", - "Standard_D5_v2_Promo", - "Standard_D64_v3", - "Standard_D64s_v3", - "Standard_D8_v3", - "Standard_D8s_v3", - "Standard_DS1", - "Standard_DS11", - "Standard_DS11_v2", - "Standard_DS11_v2_Promo", - "Standard_DS12", - "Standard_DS12_v2", - "Standard_DS12_v2_Promo", - "Standard_DS13", - "Standard_DS13-2_v2", - "Standard_DS13-4_v2", - "Standard_DS13_v2", - "Standard_DS13_v2_Promo", - "Standard_DS14", - "Standard_DS14-4_v2", - "Standard_DS14-8_v2", - "Standard_DS14_v2", - "Standard_DS14_v2_Promo", - "Standard_DS15_v2", - "Standard_DS1_v2", - "Standard_DS2", - "Standard_DS2_v2", - "Standard_DS2_v2_Promo", - "Standard_DS3", - "Standard_DS3_v2", - "Standard_DS3_v2_Promo", - "Standard_DS4", - "Standard_DS4_v2", - "Standard_DS4_v2_Promo", - "Standard_DS5_v2", - "Standard_DS5_v2_Promo", - "Standard_E16_v3", - "Standard_E16s_v3", - "Standard_E2_v3", - "Standard_E2s_v3", - "Standard_E32-16s_v3", - "Standard_E32-8s_v3", - "Standard_E32_v3", - "Standard_E32s_v3", - "Standard_E4_v3", - "Standard_E4s_v3", - "Standard_E64-16s_v3", - "Standard_E64-32s_v3", - "Standard_E64_v3", - "Standard_E64s_v3", - "Standard_E8_v3", - "Standard_E8s_v3", - "Standard_F1", - "Standard_F16", - "Standard_F16s", - "Standard_F16s_v2", - "Standard_F1s", - "Standard_F2", - "Standard_F2s", - "Standard_F2s_v2", - "Standard_F32s_v2", - "Standard_F4", - "Standard_F4s", - "Standard_F4s_v2", - "Standard_F64s_v2", - "Standard_F72s_v2", - "Standard_F8", - "Standard_F8s", - "Standard_F8s_v2", - "Standard_G1", - "Standard_G2", - "Standard_G3", - "Standard_G4", - "Standard_G5", - "Standard_GS1", - "Standard_GS2", - "Standard_GS3", - "Standard_GS4", - "Standard_GS4-4", - "Standard_GS4-8", - "Standard_GS5", - "Standard_GS5-16", - "Standard_GS5-8", - "Standard_H16", - "Standard_H16m", - "Standard_H16mr", - "Standard_H16r", - "Standard_H8", - "Standard_H8m", - "Standard_L16s", - "Standard_L32s", - "Standard_L4s", - "Standard_L8s", - "Standard_M128-32ms", - "Standard_M128-64ms", - "Standard_M128ms", - "Standard_M128s", - "Standard_M64-16ms", - "Standard_M64-32ms", - "Standard_M64ms", - "Standard_M64s", - "Standard_NC12", - "Standard_NC12s_v2", - "Standard_NC12s_v3", - "Standard_NC24", - "Standard_NC24r", - "Standard_NC24rs_v2", - "Standard_NC24rs_v3", - "Standard_NC24s_v2", - "Standard_NC24s_v3", - "Standard_NC6", - "Standard_NC6s_v2", - "Standard_NC6s_v3", - "Standard_ND12s", - "Standard_ND24rs", - "Standard_ND24s", - "Standard_ND6s", - "Standard_NV12", - "Standard_NV24", - "Standard_NV6" - ], - "regions":[ - "eastus", - "eastus2", - "sounthcentralus", - "westus2", - "centralus", - "northcentralus", - "westus", - "southafricanorth", - "australiaeast", - "southeastasia", - "centralindia", - "eastasia", - "japaneast", - "koreacentral", - "canadacentral", - "northeurope", - "uksouth", - "westeurope", - "francecentral", - "germanywestcentral", - "norwayeast", - "switzerlandnorth", - "brazilsouth", - "australiasoutheast", - "japanwest", - "koreasouth", - "southindia", - "canadaeast", - "germanynorth", - "norwaywest", - "switzerlandwest", - "ukwest", - "uaenorth" - ] - }, - "gke":{ - "instanceTypes":[ - "f1-micro", - "g1-small", - "n1-standard-1", - "n1-standard-2", - "n1-standard-4", - "n1-standard-8", - "n1-standard-16", - "n1-standard-32", - "n1-standard-64", - "n1-standard-96", - "n1-highmem-2", - "n1-highmem-4", - "n1-highmem-8", - "n1-highmem-16", - "n1-highmem-32", - "n1-highmem-64", - "n1-highmem-96", - "n1-highcpu-2", - "n1-highcpu-4", - "n1-highcpu-8", - "n1-highcpu-16", - "n1-highcpu-32", - "n1-highcpu-64", - "n1-highcpu-96", - "n1-megamem-96", - "n1-ultramem-40", - "n1-ultramem-80", - "n1-ultramem-160", - "e2-micro", - "e2-small", - "e2-medium", - "e2-standard-2", - "e2-standard-4", - "e2-standard-8", - "e2-standard-16", - "e2-highmem-2", - "e2-highmem-4", - "e2-highmem-8", - "e2-highmem-16", - "e2-highcpu-2", - "e2-highcpu-4", - "e2-highcpu-8", - "e2-highcpu-16", - "n2-standard-2", - "n2-standard-4", - "n2-standard-8", - "n2-standard-16", - "n2-standard-32", - "n2-standard-48", - "n2-standard-64", - "n2-standard-80", - "n2-highmem-2", - "n2-highmem-4", - "n2-highmem-8", - "n2-highmem-16", - "n2-highmem-32", - "n2-highmem-48", - "n2-highmem-64", - "n2-highmem-80", - "n2-highcpu-2", - "n2-highcpu-4", - "n2-highcpu-8", - "n2-highcpu-16", - "n2-highcpu-32", - "n2-highcpu-48", - "n2-highcpu-64", - "n2-highcpu-80", - "m1-megamem-96", - "m1-ultramem-40", - "m1-ultramem-80", - "m1-ultramem-160" - ], - "regions":[ - "asia-east1-a", - "asia-east1-b", - "asia-east1-c", - "asia-east2-a", - "asia-east2-b", - "asia-east2-c", - "asia-northeast1-a", - "asia-northeast1-b", - "asia-northeast1-c", - "asia-northeast2-a", - "asia-northeast2-b", - "asia-northeast2-c", - "asia-south1-a", - "asia-south1-b", - "asia-south1-c", - "asia-southeast1-a", - "asia-southeast1-b", - "asia-southeast1-c", - "australia-southeast1-a", - "australia-southeast1-b", - "australia-southeast1-c", - "europe-north1-a", - "europe-north1-b", - "europe-north1-c", - "europe-west1-b", - "europe-west1-c", - "europe-west1-d", - "europe-west2-a", - "europe-west2-b", - "europe-west2-c", - "europe-west3-a", - "europe-west3-b", - "europe-west3-c", - "europe-west4-a", - "europe-west4-b", - "europe-west4-c", - "europe-west6-a", - "europe-west6-b", - "europe-west6-c", - "northamerica-northeast1-a", - "northamerica-northeast1-b", - "northamerica-northeast1-c", - "southamerica-east1-a", - "southamerica-east1-b", - "southamerica-east1-c", - "us-central1-a", - "us-central1-b", - "us-central1-c", - "us-central1-f", - "us-east1-b", - "us-east1-c", - "us-east1-d", - "us-east4-a", - "us-east4-b", - "us-east4-c", - "us-west1-a", - "us-west1-b", - "us-west1-c", - "us-west2-a", - "us-west2-b", - "us-west2-c" - ] - } - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/service_directory-kube.json deleted file mode 100644 index b44893dc6..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/service_directory-kube.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "configmanager.ep": { - "host": "configmanager", - "port": "8001" - }, - "platform.ep":{ - "host":"core", - "port":"8759" - }, - "cloudaccount.ep":{ - "host":"cloudmanager", - "port":"8018" - }, - "clustermanager.ep":{ - "host":"clustermanager", - "port":"8013" - }, - "nodechecker.ep":{ - "host":"nodechecker", - "port":"8020" - }, - "billing.ep":{ - "host":"costmanager", - "port":"8011" - }, - "application.ep":{ - "host":"deploymentmanager", - "port":"8003" - }, - "usermanager.ep":{ - "host":"usermanager", - "port":"8005" - }, - "notification.ep":{ - "host":"activitymanager", - "port":"8009" - }, - "appscanner.ep":{ - "host":"appscanner", - "port":"8022" - }, - "codebase.ep": { - "host": "gpcore", - "port": "8759" - }, - "domainmanager.ep":{ - "host":"domainmanager", - "port":"8004" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/ssm_document.json b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/ssm_document.json deleted file mode 100644 index 2e95ec151..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/ssm_document.json +++ /dev/null @@ -1,195 +0,0 @@ -{ - "schemaVersion": "0.3", - "description": "Composite document for Quick Setup Managing Instances association. This document ensures IAM role for instance profile is created in account with all required policies", - "assumeRole": "{{AutomationAssumeRole}}", - "parameters": { - "AutomationAssumeRole": { - "type": "String" - }, - "InstanceId": { - "type": "String" - }, - "IsPolicyAttachAllowed": { - "type": "String" - } - }, - "mainSteps": [ - { - "outputs": [ - { - "Type": "String", - "Name": "existingInstanceProfileRoleName", - "Selector": "$.Payload.RoleName" - } - ], - "inputs": { - "Script": "import boto3\n\ndef getInstanceProfileName(events, context):\n ec2_client = boto3.client(\"ec2\")\n response = ec2_client.describe_instances(InstanceIds=[events[\"InstanceId\"]])\n if 'IamInstanceProfile' in response['Reservations'][0]['Instances'][0]:\n return {'RoleName': response['Reservations'][0]['Instances'][0]['IamInstanceProfile']['Arn'].split('/').pop()}\n return {'RoleName': 'NoRoleFound'}", - "Runtime": "python3.6", - "InputPayload": { - "InstanceId": "{{InstanceId}}" - }, - "Handler": "getInstanceProfileName" - }, - "name": "getExistingRoleName", - "action": "aws:executeScript", - "nextStep": "branchIfProfileExists" - }, - { - "inputs": { - "Choices": [ - { - "StringEquals": "NoRoleFound", - "Variable": "{{getExistingRoleName.existingInstanceProfileRoleName}}", - "NextStep": "createRoleIfNotExists" - } - ], - "Default": "checkIfPolicyAttachAllowed" - }, - "name": "branchIfProfileExists", - "action": "aws:branch" - }, - { - "inputs": { - "Choices": [ - { - "StringEquals": "true", - "Variable": "{{IsPolicyAttachAllowed}}", - "NextStep": "getRoleFromInstanceProfile" - } - ], - "Default": "createRoleIfNotExists" - }, - "name": "checkIfPolicyAttachAllowed", - "action": "aws:branch" - }, - { - "outputs": [ - { - "Type": "String", - "Name": "existingRoleName", - "Selector": "$.InstanceProfile.Roles[0].RoleName" - } - ], - "inputs": { - "InstanceProfileName": "{{getExistingRoleName.existingInstanceProfileRoleName}}", - "Service": "iam", - "Api": "GetInstanceProfile" - }, - "name": "getRoleFromInstanceProfile", - "action": "aws:executeAwsApi", - "nextStep": "attachAmazonSSMManagedInstanceCoreToExistingRole" - }, - { - "inputs": { - "RoleName": "{{getRoleFromInstanceProfile.existingRoleName}}", - "PolicyArn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", - "Service": "iam", - "Api": "AttachRolePolicy" - }, - "name": "attachAmazonSSMManagedInstanceCoreToExistingRole", - "action": "aws:executeAwsApi", - "nextStep": "attachAmazonSSMPatchAssociationToExistingRole" - }, - { - "inputs": { - "RoleName": "{{getRoleFromInstanceProfile.existingRoleName}}", - "PolicyArn": "arn:aws:iam::aws:policy/AmazonSSMPatchAssociation", - "Service": "iam", - "Api": "AttachRolePolicy" - }, - "name": "attachAmazonSSMPatchAssociationToExistingRole", - "action": "aws:executeAwsApi", - "isEnd": true - }, - { - "inputs": { - "Path": "/", - "RoleName": "AmazonSSMRoleForInstancesQuickSetup", - "Description": "EC2 role for SSM for Quick-Setup", - "AssumeRolePolicyDocument": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Principal\":{\"Service\":\"ec2.amazonaws.com\"},\"Action\":\"sts:AssumeRole\"}]}", - "Service": "iam", - "Api": "CreateRole" - }, - "name": "createRoleIfNotExists", - "action": "aws:executeAwsApi", - "description": "Create AmazonSSMRoleForInstancesQuickSetup Role For SSM Quick Setup", - "onFailure": "Continue", - "nextStep": "assertRoleForInstanceProfileExists" - }, - { - "inputs": { - "PropertySelector": "$.Role.RoleName", - "RoleName": "AmazonSSMRoleForInstancesQuickSetup", - "DesiredValues": [ - "AmazonSSMRoleForInstancesQuickSetup" - ], - "Service": "iam", - "Api": "GetRole" - }, - "name": "assertRoleForInstanceProfileExists", - "action": "aws:assertAwsResourceProperty", - "nextStep": "attachAmazonSSMManagedInstanceCoreToRole" - }, - { - "inputs": { - "RoleName": "AmazonSSMRoleForInstancesQuickSetup", - "PolicyArn": "arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore", - "Service": "iam", - "Api": "AttachRolePolicy" - }, - "name": "attachAmazonSSMManagedInstanceCoreToRole", - "action": "aws:executeAwsApi", - "nextStep": "attachAmazonSSMPatchAssociationToRole" - }, - { - "inputs": { - "RoleName": "AmazonSSMRoleForInstancesQuickSetup", - "PolicyArn": "arn:aws:iam::aws:policy/AmazonSSMPatchAssociation", - "Service": "iam", - "Api": "AttachRolePolicy" - }, - "name": "attachAmazonSSMPatchAssociationToRole", - "action": "aws:executeAwsApi", - "nextStep": "createInstanceProfileIfNotExists" - }, - { - "inputs": { - "InstanceProfileName": "AmazonSSMRoleForInstancesQuickSetup", - "Service": "iam", - "Api": "CreateInstanceProfile" - }, - "name": "createInstanceProfileIfNotExists", - "action": "aws:executeAwsApi", - "onFailure": "Continue", - "nextStep": "addRoleToInstanceProfile" - }, - { - "inputs": { - "RoleName": "AmazonSSMRoleForInstancesQuickSetup", - "InstanceProfileName": "AmazonSSMRoleForInstancesQuickSetup", - "Service": "iam", - "Api": "AddRoleToInstanceProfile" - }, - "name": "addRoleToInstanceProfile", - "action": "aws:executeAwsApi", - "onFailure": "Continue", - "nextStep": "executeAttachIAMToInstance" - }, - { - "maxAttempts": 10, - "inputs": { - "RuntimeParameters": { - "AutomationAssumeRole": "{{ AutomationAssumeRole }}", - "RoleName": "AmazonSSMRoleForInstancesQuickSetup", - "InstanceId": "{{ InstanceId }}", - "ForceReplace": false - }, - "DocumentName": "AWS-AttachIAMToInstance" - }, - "name": "executeAttachIAMToInstance", - "action": "aws:executeAutomation", - "timeoutSeconds": 60, - "isEnd": true - } - ] - } \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/storidgenodegroup2.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/storidgenodegroup2.yaml deleted file mode 100644 index c902404d3..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/storidgenodegroup2.yaml +++ /dev/null @@ -1,1111 +0,0 @@ -AWSTemplateFormatVersion: "2010-09-09" - -Description: Amazon EKS - Node Group - -Metadata: - "AWS::CloudFormation::Interface": - ParameterGroups: - - Label: - default: EKS Cluster - Parameters: - - ClusterName - - ClusterControlPlaneSecurityGroup - - Label: - default: Worker Node Configuration - Parameters: - - NodeGroupName - - NodeAutoScalingGroupMinSize - - NodeAutoScalingGroupDesiredCapacity - - NodeAutoScalingGroupMaxSize - - NodeInstanceType - - NodeImageIdSSMParam - - NodeImageId - - NodeVolumeSize - - KeyName - - BootstrapArguments - - DisableIMDSv1 - - Label: - default: Worker Network Configuration - Parameters: - - VpcId - - Subnets - -Parameters: - BootstrapArguments: - Type: String - Default: "" - Description: "Arguments to pass to the bootstrap script. See files/bootstrap.sh in https://github.com/awslabs/amazon-eks-ami" - - ClusterControlPlaneSecurityGroup: - Type: "AWS::EC2::SecurityGroup::Id" - Default: CLUSTER_SG - Description: The security group of the cluster control plane. - - ClusterName: - Type: String - Default: CLUSTER_NAME - Description: The cluster name provided when the cluster was created. If it is incorrect, nodes will not be able to join the cluster. - - KeyName: - Type: "AWS::EC2::KeyPair::KeyName" - Default: KEY_NAME - Description: The EC2 Key Pair to allow SSH access to the instances - - NodeAutoScalingGroupDesiredCapacity: - Type: Number - Default: ASG_DESIRED_CAPACITY - Description: Desired capacity of Node Group ASG. - - NodeAutoScalingGroupMaxSize: - Type: Number - Default: ASG_MAXSIZE - Description: Maximum size of Node Group ASG. Set to at least 1 greater than NodeAutoScalingGroupDesiredCapacity. - - NodeAutoScalingGroupMinSize: - Type: Number - Default: ASG_MINSIZE - Description: Minimum size of Node Group ASG. - - NodeGroupName: - Type: String - Default: NODEGROUP_NAME - Description: Unique identifier for the Node Group. - - NodeInstanceRole: - Type: String - Default: NODE_INSTANCE_ROLE - Description: IAM role for Node group. - - NodeImageId: - Type: String - Default: AMI_IMAGE_ID - Description: (Optional) Specify your own custom image ID. This value overrides any AWS Systems Manager Parameter Store value specified above. - - NodeImageIdSSMParam: - Type: "AWS::SSM::Parameter::Value" - Default: /aws/service/eks/optimized-ami/1.17/amazon-linux-2/recommended/image_id - Description: AWS Systems Manager Parameter Store parameter of the AMI ID for the worker node instances. Change this value to match the version of Kubernetes you are using. - - DisableIMDSv1: - Type: String - Default: "false" - AllowedValues: - - "false" - - "true" - - NodeInstanceType: - Type: String - Default: NODEPOOL_INSTANCE_TYPE - AllowedValues: - - a1.medium - - a1.large - - a1.xlarge - - a1.2xlarge - - a1.4xlarge - - c1.medium - - c1.xlarge - - c3.large - - c3.xlarge - - c3.2xlarge - - c3.4xlarge - - c3.8xlarge - - c4.large - - c4.xlarge - - c4.2xlarge - - c4.4xlarge - - c4.8xlarge - - c5.large - - c5.xlarge - - c5.2xlarge - - c5.4xlarge - - c5.9xlarge - - c5.12xlarge - - c5.18xlarge - - c5.24xlarge - - c5.metal - - c5d.large - - c5d.xlarge - - c5d.2xlarge - - c5d.4xlarge - - c5d.9xlarge - - c5d.12xlarge - - c5d.18xlarge - - c5d.24xlarge - - c5d.metal - - c5n.large - - c5n.xlarge - - c5n.2xlarge - - c5n.4xlarge - - c5n.9xlarge - - c5n.18xlarge - - c6g.medium - - c6g.large - - c6g.xlarge - - c6g.2xlarge - - c6g.4xlarge - - c6g.8xlarge - - c6g.12xlarge - - c6g.16xlarge - - c6g.metal - - c6gd.medium - - c6gd.large - - c6gd.xlarge - - c6gd.2xlarge - - c6gd.4xlarge - - c6gd.8xlarge - - c6gd.12xlarge - - c6gd.16xlarge - - c6gd.metal - - cc2.8xlarge - - cr1.8xlarge - - d2.xlarge - - d2.2xlarge - - d2.4xlarge - - d2.8xlarge - - f1.2xlarge - - f1.4xlarge - - f1.16xlarge - - g2.2xlarge - - g2.8xlarge - - g3s.xlarge - - g3.4xlarge - - g3.8xlarge - - g3.16xlarge - - h1.2xlarge - - h1.4xlarge - - h1.8xlarge - - h1.16xlarge - - hs1.8xlarge - - i2.xlarge - - i2.2xlarge - - i2.4xlarge - - i2.8xlarge - - i3.large - - i3.xlarge - - i3.2xlarge - - i3.4xlarge - - i3.8xlarge - - i3.16xlarge - - i3.metal - - i3en.large - - i3en.xlarge - - i3en.2xlarge - - i3en.3xlarge - - i3en.6xlarge - - i3en.12xlarge - - i3en.24xlarge - - inf1.xlarge - - inf1.2xlarge - - inf1.6xlarge - - inf1.24xlarge - - m1.small - - m1.medium - - m1.large - - m1.xlarge - - m2.xlarge - - m2.2xlarge - - m2.4xlarge - - m3.medium - - m3.large - - m3.xlarge - - m3.2xlarge - - m4.large - - m4.xlarge - - m4.2xlarge - - m4.4xlarge - - m4.10xlarge - - m4.16xlarge - - m5.large - - m5.xlarge - - m5.2xlarge - - m5.4xlarge - - m5.8xlarge - - m5.12xlarge - - m5.16xlarge - - m5.24xlarge - - m5.metal - - m5a.large - - m5a.xlarge - - m5a.2xlarge - - m5a.4xlarge - - m5a.8xlarge - - m5a.12xlarge - - m5a.16xlarge - - m5a.24xlarge - - m5ad.large - - m5ad.xlarge - - m5ad.2xlarge - - m5ad.4xlarge - - m5ad.12xlarge - - m5ad.24xlarge - - m5d.large - - m5d.xlarge - - m5d.2xlarge - - m5d.4xlarge - - m5d.8xlarge - - m5d.12xlarge - - m5d.16xlarge - - m5d.24xlarge - - m5d.metal - - m5dn.large - - m5dn.xlarge - - m5dn.2xlarge - - m5dn.4xlarge - - m5dn.8xlarge - - m5dn.12xlarge - - m5dn.16xlarge - - m5dn.24xlarge - - m5n.large - - m5n.xlarge - - m5n.2xlarge - - m5n.4xlarge - - m5n.8xlarge - - m5n.12xlarge - - m5n.16xlarge - - m5n.24xlarge - - m6g.medium - - m6g.large - - m6g.xlarge - - m6g.2xlarge - - m6g.4xlarge - - m6g.8xlarge - - m6g.12xlarge - - m6g.16xlarge - - m6g.metal - - m6gd.medium - - m6gd.large - - m6gd.xlarge - - m6gd.2xlarge - - m6gd.4xlarge - - m6gd.8xlarge - - m6gd.12xlarge - - m6gd.16xlarge - - m6gd.metal - - p2.xlarge - - p2.8xlarge - - p2.16xlarge - - p3.2xlarge - - p3.8xlarge - - p3.16xlarge - - p3dn.24xlarge - - g4dn.xlarge - - g4dn.2xlarge - - g4dn.4xlarge - - g4dn.8xlarge - - g4dn.12xlarge - - g4dn.16xlarge - - g4dn.metal - - r3.large - - r3.xlarge - - r3.2xlarge - - r3.4xlarge - - r3.8xlarge - - r4.large - - r4.xlarge - - r4.2xlarge - - r4.4xlarge - - r4.8xlarge - - r4.16xlarge - - r5.large - - r5.xlarge - - r5.2xlarge - - r5.4xlarge - - r5.8xlarge - - r5.12xlarge - - r5.16xlarge - - r5.24xlarge - - r5.metal - - r5a.large - - r5a.xlarge - - r5a.2xlarge - - r5a.4xlarge - - r5a.8xlarge - - r5a.12xlarge - - r5a.16xlarge - - r5a.24xlarge - - r5ad.large - - r5ad.xlarge - - r5ad.2xlarge - - r5ad.4xlarge - - r5ad.12xlarge - - r5ad.24xlarge - - r5d.large - - r5d.xlarge - - r5d.2xlarge - - r5d.4xlarge - - r5d.8xlarge - - r5d.12xlarge - - r5d.16xlarge - - r5d.24xlarge - - r5d.metal - - r5dn.large - - r5dn.xlarge - - r5dn.2xlarge - - r5dn.4xlarge - - r5dn.8xlarge - - r5dn.12xlarge - - r5dn.16xlarge - - r5dn.24xlarge - - r5n.large - - r5n.xlarge - - r5n.2xlarge - - r5n.4xlarge - - r5n.8xlarge - - r5n.12xlarge - - r5n.16xlarge - - r5n.24xlarge - - r6g.medium - - r6g.large - - r6g.xlarge - - r6g.2xlarge - - r6g.4xlarge - - r6g.8xlarge - - r6g.12xlarge - - r6g.16xlarge - - r6g.metal - - r6gd.medium - - r6gd.large - - r6gd.xlarge - - r6gd.2xlarge - - r6gd.4xlarge - - r6gd.8xlarge - - r6gd.12xlarge - - r6gd.16xlarge - - r6gd.metal - - t1.micro - - t2.nano - - t2.micro - - t2.small - - t2.medium - - t2.large - - t2.xlarge - - t2.2xlarge - - t3.nano - - t3.micro - - t3.small - - t3.medium - - t3.large - - t3.xlarge - - t3.2xlarge - - t3a.nano - - t3a.micro - - t3a.small - - t3a.medium - - t3a.large - - t3a.xlarge - - t3a.2xlarge - - u-6tb1.metal - - u-9tb1.metal - - u-12tb1.metal - - x1.16xlarge - - x1.32xlarge - - x1e.xlarge - - x1e.2xlarge - - x1e.4xlarge - - x1e.8xlarge - - x1e.16xlarge - - x1e.32xlarge - - z1d.large - - z1d.xlarge - - z1d.2xlarge - - z1d.3xlarge - - z1d.6xlarge - - z1d.12xlarge - - z1d.metal - ConstraintDescription: Must be a valid EC2 instance type - Description: EC2 instance type for the node instances - - NodeVolumeSize: - Type: Number - Default: NODE_DISK_SIZE - Description: Node volume size - - Subnets: - Type: "CommaDelimitedList" - Default: SUBNET01 - Description: The subnets where workers can be created. - - VpcId: - Type: "AWS::EC2::VPC::Id" - Default: VPCID - Description: The VPC of the worker instances - -Mappings: - PartitionMap: - aws: - EC2ServicePrincipal: "ec2.amazonaws.com" - aws-us-gov: - EC2ServicePrincipal: "ec2.amazonaws.com" - aws-cn: - EC2ServicePrincipal: "ec2.amazonaws.com.cn" - aws-iso: - EC2ServicePrincipal: "ec2.c2s.ic.gov" - aws-iso-b: - EC2ServicePrincipal: "ec2.sc2s.sgov.gov" - -Conditions: - HasNodeImageId: !Not - - "Fn::Equals": - - !Ref NodeImageId - - "" - - IMDSv1Disabled: - "Fn::Equals": - - !Ref DisableIMDSv1 - - "true" - -Resources: - NodeInstanceProfile: - Type: "AWS::IAM::InstanceProfile" - Properties: - Path: / - Roles: - - !Ref NodeInstanceRole - - NodeSecurityGroup: - Type: "AWS::EC2::SecurityGroup" - Properties: - GroupDescription: Security group for all nodes in the cluster - Tags: - - Key: !Sub kubernetes.io/cluster/${ClusterName} - Value: owned - VpcId: !Ref VpcId - - NodeSecurityGroupIngress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow node to communicate with each other - FromPort: 0 - GroupId: !Ref NodeSecurityGroup - IpProtocol: "-1" - SourceSecurityGroupId: !Ref NodeSecurityGroup - ToPort: 65535 - - ClusterControlPlaneSecurityGroupIngress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow pods to communicate with the cluster API Server - FromPort: 443 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: tcp - SourceSecurityGroupId: !Ref NodeSecurityGroup - ToPort: 443 - - ControlPlaneEgressToNodeSecurityGroup: - Type: "AWS::EC2::SecurityGroupEgress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow the cluster control plane to communicate with worker Kubelet and pods - DestinationSecurityGroupId: !Ref NodeSecurityGroup - FromPort: 1025 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: tcp - ToPort: 65535 - - ControlPlaneEgressToNodeSecurityGroupOn443: - Type: "AWS::EC2::SecurityGroupEgress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow the cluster control plane to communicate with pods running extension API servers on port 443 - DestinationSecurityGroupId: !Ref NodeSecurityGroup - FromPort: 443 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: tcp - ToPort: 443 - - NodeSecurityGroupFromControlPlaneIngress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow worker Kubelets and pods to receive communication from the cluster control plane - FromPort: 1025 - GroupId: !Ref NodeSecurityGroup - IpProtocol: tcp - SourceSecurityGroupId: !Ref ClusterControlPlaneSecurityGroup - ToPort: 65535 - - NodeSecurityGroupFromControlPlaneOn443Ingress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow pods running extension API servers on port 443 to receive communication from cluster control plane - FromPort: 443 - GroupId: !Ref NodeSecurityGroup - IpProtocol: tcp - SourceSecurityGroupId: !Ref ClusterControlPlaneSecurityGroup - ToPort: 443 - - NodeLaunchTemplate: - Type: "AWS::EC2::LaunchTemplate" - Properties: - LaunchTemplateData: - BlockDeviceMappings: - - DeviceName: /dev/xvda - Ebs: - DeleteOnTermination: true - VolumeSize: !Ref NodeVolumeSize - VolumeType: gp2 - - DeviceName: /dev/xvdf - Ebs: - DeleteOnTermination: true - VolumeSize: !Ref NodeVolumeSize - VolumeType: gp2 - - DeviceName: /dev/xvdg - Ebs: - DeleteOnTermination: true - VolumeSize: !Ref NodeVolumeSize - VolumeType: gp2 - - DeviceName: /dev/xvdh - Ebs: - DeleteOnTermination: true - VolumeSize: !Ref NodeVolumeSize - VolumeType: gp2 - IamInstanceProfile: - Arn: !GetAtt NodeInstanceProfile.Arn - ImageId: !If - - HasNodeImageId - - !Ref NodeImageId - - !Ref NodeImageIdSSMParam - InstanceType: !Ref NodeInstanceType - KeyName: !Ref KeyName - SecurityGroupIds: - - !Ref NodeSecurityGroup - UserData: !Base64 - "Fn::Sub": | - #!/bin/bash - set -o xtrace - sed -i '/allow-privileged\=true\ \\/d' /etc/eks/bootstrap.sh - /etc/eks/bootstrap.sh ${ClusterName} --kubelet-extra-args --node-labels=nodePoolType=storidgeNodePool - curl -fsSL ftp://download.storidge.com/pub/ce/cio-ce | sudo bash - /opt/aws/bin/cfn-signal --exit-code $? \ - --stack ${AWS::StackName} \ - --resource NodeGroup \ - --region ${AWS::Region} - - reboot - MetadataOptions: - HttpPutResponseHopLimit : 2 - HttpEndpoint: enabled - HttpTokens: !If - - IMDSv1Disabled - - required - - optional - - NodeGroup: - Type: "AWS::AutoScaling::AutoScalingGroup" - Properties: - DesiredCapacity: !Ref NodeAutoScalingGroupDesiredCapacity - LaunchTemplate: - LaunchTemplateId: !Ref NodeLaunchTemplate - Version: !GetAtt NodeLaunchTemplate.LatestVersionNumber - MaxSize: !Ref NodeAutoScalingGroupMaxSize - MinSize: !Ref NodeAutoScalingGroupMinSize - Tags: - - Key: Name - PropagateAtLaunch: true - Value: !Sub ${ClusterName}-${NodeGroupName}-Node - - Key: !Sub kubernetes.io/cluster/${ClusterName} - PropagateAtLaunch: true - Value: owned - VPCZoneIdentifier: !Ref Subnets - CreationPolicy: - ResourceSignal: - Count: !Ref NodeAutoScalingGroupDesiredCapacity - Timeout: PT15M - UpdatePolicy: - AutoScalingRollingUpdate: - MaxBatchSize: 1 - MinInstancesInService: !Ref NodeAutoScalingGroupDesiredCapacity - PauseTime: PT5M - - ASGLifecycleHookTerminate: - Type: AWS::AutoScaling::LifecycleHook - DependsOn: NodeGroup - Properties: - AutoScalingGroupName: !Ref NodeGroup - DefaultResult: "CONTINUE" - HeartbeatTimeout: 600 - LifecycleHookName: "Storidge-Remove-Node" - LifecycleTransition: "autoscaling:EC2_INSTANCE_TERMINATING" - - ASGLifecycleHookLaunch: - Type: AWS::AutoScaling::LifecycleHook - DependsOn: NodeGroup - Properties: - AutoScalingGroupName: !Ref NodeGroup - HeartbeatTimeout: 1200 - LifecycleHookName: "Storidge-Add-Node" - LifecycleTransition: "autoscaling:EC2_INSTANCE_LAUNCHING" - - SSMdocument: - Type: 'AWS::SSM::Document' - DependsOn: NodeGroup - Properties: - DocumentType: Automation - Content: - schemaVersion: "0.3" - description: "Create Storidge cluster with SSM Automation" - # Role that is utilized to perform the steps within the Automation Document. In this case to be able to Signal CFN and Describe Instances. - assumeRole: "{{AutomationAssumeRole}}" - # Gathering parameters needed to configure DCs in the Quick Start - parameters: - Region: - type: String - default: !Ref "AWS::Region" - AutomationAssumeRole: - type: String - # TODO - default: !Sub 'arn:aws:iam::${AWS::AccountId}:role/${NodeInstanceRole}' - ASGName: - type: String - default: !Ref NodeGroup - mainSteps: - - name: Get_Token_Name - action: 'aws:executeScript' - inputs: - Runtime: python3.6 - Handler: script_handler - Script: |- - import time - import calendar - def script_handler(events, context): - print('Setting storidge token name') - # print(events["parameter"]) - token=str(calendar.timegm(time.gmtime())) - return {'token': token} - maxAttempts: 3 - outputs: - - Selector: $.Payload.token - Type: String - Name: token - - name: Get_ASG_Instances - action: 'aws:executeAwsApi' - inputs: - Service: AutoScaling - Api: DescribeAutoScalingGroups - AutoScalingGroupNames: - - '{{ASGName}}' - maxAttempts: 3 - outputs: - - Selector: '$.AutoScalingGroups[0].Instances..InstanceId' - Name: StorageNodes - Type: StringList - - Name: LeaderNode - Selector: '$.AutoScalingGroups[0].Instances[0].InstanceId' - Type: String - - name: Tag_StorageNodes - action: 'aws:createTags' - inputs: - ResourceType: EC2 - ResourceIds: - - '{{Get_ASG_Instances.StorageNodes}}' - Tags: - - Key: storidge_role - Value: 'Storage-{{Get_Token_Name.token}}' - maxAttempts: 3 - - name: Tag_LeaderNode - action: 'aws:createTags' - inputs: - ResourceType: EC2 - ResourceIds: - - '{{Get_ASG_Instances.LeaderNode}}' - Tags: - - Key: storidge_role - Value: 'Leader-{{Get_Token_Name.token}}' - maxAttempts: 3 - - name: VerifyTags - action: 'aws:executeAwsApi' - outputs: - - Selector: $.Reservations..Instances..InstanceId - Name: out1 - Type: StringList - inputs: - Service: ec2 - Api: DescribeInstances - Filters: - - Name: tag-value - Values: - - Leader-{{Get_Token_Name.token}} - - Storage-{{Get_Token_Name.token}} - - name: Sleep - action: 'aws:sleep' - inputs: - Duration: PT5M - - name: Create_Token - action: 'aws:runCommand' - inputs: - DocumentName: AWS-RunShellScript - Targets: - - Key: 'tag:storidge_role' - Values: - - 'Leader-{{Get_Token_Name.token}}' - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - ip=$(ec2metadata --local-ipv4) - - token=$(cioctl create --ip $ip | grep "cioctl join") - - if [ -z "${token}" ]; then echo "ERROR:Token is not created"; exit; fi - - /snap/bin/aws ssm put-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" --type SecureString --overwrite --value "$token" - maxAttempts: 1 - - name: Join_Nodes - action: 'aws:runCommand' - inputs: - DocumentName: AWS-RunShellScript - Targets: - - Key: 'tag:storidge_role' - Values: - - 'Storage-{{Get_Token_Name.token}}' - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - ip=$(ec2metadata --local-ipv4) - - STORIDGE_TOKEN=$(/snap/bin/aws ssm get-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" --with-decryption --query "Parameter.Value" --output text) - - echo $STORIDGE_TOKEN - - eval "$STORIDGE_TOKEN --ip $ip" - maxAttempts: 1 - - name: Initialize_Cluster - action: 'aws:runCommand' - inputs: - DocumentName: AWS-RunShellScript - Targets: - - Key: 'tag:storidge_role' - Values: - - 'Leader-{{Get_Token_Name.token}}' - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - STORIDGE_TOKEN=$(/snap/bin/aws ssm get-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" --with-decryption --query ''Parameter.Value'' --output text) - - echo $STORIDGE_TOKEN - - cioctl init `echo $STORIDGE_TOKEN | cut -d'-' -f2` - - cio node ls | grep -v "Error" - - /snap/bin/aws ssm delete-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" - maxAttempts: 1 - - name: Tag_Node - action: 'aws:createTags' - inputs: - ResourceType: EC2 - ResourceIds: - - '{{Get_ASG_Instances.LeaderNode}}' - - '{{Get_ASG_Instances.StorageNodes}}' - Tags: - - Value: ready - Key: node_status - - SSMDocumentAddNode: - Type: 'AWS::SSM::Document' - DependsOn: NodeGroup - Properties: - DocumentType: Automation - Content: - description: Add a new node to Storidge cluster - schemaVersion: '0.3' - assumeRole: '{{AutomationAssumeRole}}' - parameters: - AutomationAssumeRole: - default: !Sub 'arn:aws:iam::${AWS::AccountId}:role/${NodeInstanceRole}' - type: String - ASGName: - default: test22-vv1-NodeGroup-1TMPAZMFBWHSE - type: String - Region: - default: !Ref "AWS::Region" - type: String - InstanceId: - type: String - LCHName: - type: String - SSMDocumentName: - type: String - mainSteps: - - name: GetRunningAutomation - action: 'aws:executeAwsApi' - inputs: - Service: ssm - Api: describe_automation_executions - Filters: - - Key: DocumentNamePrefix - Values: - - '{{SSMDocumentName}}' - - Key: ExecutionStatus - Values: - - InProgress - - Waiting - - Pending - outputs: - - Name: ExecutionStatus - Selector: AutomationExecutionMetadataList..AutomationExecutionStatus - Type: StringList - - Name: ExecutionIds - Selector: AutomationExecutionMetadataList..AutomationExecutionId - Type: StringList - - name: GetExecutionCount - action: 'aws:executeScript' - inputs: - Runtime: python3.6 - Handler: script_handler - Script: |- - def script_handler(events, context): - print(events["ExecutionIds"]) - events["ExecutionIds"].pop(0) - if len(events["ExecutionIds"]) != 0: - return {'ExecutionIds': events["ExecutionIds"], 'ExecutionLen': len(events["ExecutionIds"]) } - return {'ExecutionLen': 0} - InputPayload: - ExecutionIds: '{{ GetRunningAutomation.ExecutionIds}}' - outputs: - - Name: ExecutionIds - Selector: $.Payload.ExecutionIds - Type: StringList - - Name: ExecutionLen - Selector: $.Payload.ExecutionLen - Type: Integer - - name: CheckExecutionLength - action: 'aws:branch' - inputs: - Choices: - - NextStep: WaitToCompleteRunningExecutions - Variable: '{{GetExecutionCount.ExecutionLen}}' - NumericGreater: 0 - Default: Sleep - - name: WaitToCompleteRunningExecutions - action: 'aws:waitForAwsResourceProperty' - inputs: - Service: ssm - Api: describe_automation_executions - PropertySelector: AutomationExecutionMetadataList..AutomationExecutionStatus - DesiredValues: - - Success - - TimedOut - - Cancelling - - Cancelled - - Failed - Filters: - - Key: DocumentNamePrefix - Values: - - '{{SSMDocumentName}}' - - Key: ExecutionId - Values: - - '{{GetExecutionCount.ExecutionIds}}' - timeoutSeconds: 600 - - name: Sleep - action: 'aws:sleep' - inputs: - Duration: PT5M - - outputs: - - Type: String - Selector: $.Payload.token - Name: token - inputs: - Script: |- - import time - import calendar - - def script_handler(events, context): - print('Setting storidge token name') - # print(events["parameter"]) - token=str(calendar.timegm(time.gmtime())) - return {'token': token} - Runtime: python3.6 - Handler: script_handler - name: Get_Token_Name - action: 'aws:executeScript' - maxAttempts: 2 - - name: GetStoridgeNode - action: 'aws:executeAwsApi' - outputs: - - Selector: $.Reservations[0].Instances[0].InstanceId - Name: NodeId - Type: String - inputs: - Service: ec2 - Api: DescribeInstances - Filters: - - Name: 'tag:aws:autoscaling:groupName' - Values: - - '{{ASGName}}' - - Name: 'tag:node_status' - Values: - - ready - - Name: instance-state-name - Values: - - running - - inputs: - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - ip=$(ec2metadata --local-ipv4) - - token=$(sudo cioctl join-token) - - if [ -z "${token}" ]; then echo "ERROR:Token is not created"; exit; fi - - echo $token - - '/snap/bin/aws ssm put-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" --type SecureString --overwrite --value "$token"' - DocumentName: AWS-RunShellScript - InstanceIds: - - '{{GetStoridgeNode.NodeId}}' - name: Create_Token - action: 'aws:runCommand' - maxAttempts: 1 - - inputs: - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - ip=$(ec2metadata --local-ipv4) - - 'STORIDGE_TOKEN=$(/snap/bin/aws ssm get-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" --with-decryption --query "Parameter.Value" --output text)' - - echo $STORIDGE_TOKEN - - eval "$STORIDGE_TOKEN --ip $ip" - - sleep 2m - - cio node ls - - /snap/bin/aws ssm delete-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" - DocumentName: AWS-RunShellScript - InstanceIds: - - '{{InstanceId}}' - name: Add_Node - action: 'aws:runCommand' - maxAttempts: 1 - - name: CompleteLifecycleAction_Launch - action: 'aws:executeAwsApi' - inputs: - Service: autoscaling - Api: CompleteLifecycleAction - LifecycleActionResult: CONTINUE - LifecycleHookName: '{{ LCHName }}' - AutoScalingGroupName: '{{ ASGName }}' - InstanceId: '{{ InstanceId }}' - maxAttempts: 3 - - name: Tag_Node - action: 'aws:createTags' - inputs: - ResourceType: EC2 - ResourceIds: - - '{{ InstanceId }}' - Tags: - - Value: ready - Key: node_status - - SSMDocumentRemoveNode: - Type: 'AWS::SSM::Document' - DependsOn: NodeGroup - Properties: - DocumentType: Automation - Content: - description: Remove node from storidge cluster - schemaVersion: '0.3' - assumeRole: '{{AutomationAssumeRole}}' - parameters: - AutomationAssumeRole: - type: String - ASGName: - default: test22-vv1-NodeGroup-1TMPAZMFBWHSE - type: String - InstanceId: - type: String - LCHName: - type: String - mainSteps: - - name: Remove_Node - action: 'aws:runCommand' - inputs: - DocumentName: AWS-RunShellScript - InstanceIds: - - '{{InstanceId}}' - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - cio node ls - - cioctl node remove - maxAttempts: 1 - - name: CompleteLifecycleAction_Terminate - action: 'aws:executeAwsApi' - inputs: - Service: autoscaling - Api: CompleteLifecycleAction - LifecycleActionResult: CONTINUE - LifecycleHookName: '{{ LCHName }}' - AutoScalingGroupName: '{{ ASGName }}' - InstanceId: '{{ InstanceId }}' - maxAttempts: 3 - - CloudWatchEventRuleLaunchNode: - Type: AWS::Events::Rule - DependsOn: SSMDocumentAddNode - Properties: - Description: "Event rule to add a new node to storidge cluster" - EventPattern: - source: - - "aws.autoscaling" - detail-type: - - "EC2 Instance-launch Lifecycle Action" - detail: - AutoScalingGroupName: - - !Ref NodeGroup - Name: !Join [ "", ["Launch_", !Ref NodeGroup ] ] - State: "ENABLED" - Targets: - - - Arn: !Sub 'arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:automation-definition/${SSMDocumentAddNode}:$DEFAULT' - Id: "CallSSMDocumentAddNode" - # TODO - RoleArn: !Sub 'arn:aws:iam::${AWS::AccountId}:role/${NodeInstanceRole}' - InputTransformer: - InputPathsMap: - asgname: "$.detail.AutoScalingGroupName" - instanceid: "$.detail.EC2InstanceId" - lchname: "$.detail.LifecycleHookName" - # TODO - InputTemplate: !Sub '{"InstanceId":[],"ASGName":[],"LCHName":[],"AutomationAssumeRole":["arn:aws:iam::${AWS::AccountId}:role/${NodeInstanceRole}"],"SSMDocumentName":["${SSMDocumentAddNode}"]}' - - CloudWatchEventRuleTerminateNode: - Type: AWS::Events::Rule - DependsOn: SSMDocumentRemoveNode - Properties: - Description: "Event rule to remove node from storidge cluster" - EventPattern: - source: - - "aws.autoscaling" - detail-type: - - "EC2 Instance-terminate Lifecycle Action" - detail: - AutoScalingGroupName: - - !Ref NodeGroup - Name: !Join [ "", ["Terminate_", !Ref NodeGroup ] ] - State: "ENABLED" - Targets: - - - Arn: !Sub 'arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:automation-definition/${SSMDocumentRemoveNode}:$DEFAULT' - Id: "CallSSMDocumentRemoveNode" - # TODO - RoleArn: !Sub 'arn:aws:iam::${AWS::AccountId}:role/${NodeInstanceRole}' - InputTransformer: - InputPathsMap: - asgname: "$.detail.AutoScalingGroupName" - instanceid: "$.detail.EC2InstanceId" - lchname: "$.detail.LifecycleHookName" - # TODO - InputTemplate: !Sub '{"InstanceId":[],"ASGName":[],"LCHName":[],"AutomationAssumeRole":["arn:aws:iam::${AWS::AccountId}:role/${NodeInstanceRole}"]}' - -Outputs: - - NodeSecurityGroup: - Description: The security group for the node group - Value: !Ref NodeSecurityGroup - - NodeAutoScalingGroup: - Description: The autoscaling group - Value: !Ref NodeGroup - - SSMDocument: - Description: SSM document name - Value: !Ref SSMdocument \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/storidgenodegroup3.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/storidgenodegroup3.yaml deleted file mode 100644 index 073fc8e51..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/storidgenodegroup3.yaml +++ /dev/null @@ -1,1165 +0,0 @@ -AWSTemplateFormatVersion: "2010-09-09" - -Description: Amazon EKS - Node Group - -Metadata: - "AWS::CloudFormation::Interface": - ParameterGroups: - - Label: - default: EKS Cluster - Parameters: - - ClusterName - - ClusterControlPlaneSecurityGroup - - Label: - default: Worker Node Configuration - Parameters: - - NodeGroupName - - NodeAutoScalingGroupMinSize - - NodeAutoScalingGroupDesiredCapacity - - NodeAutoScalingGroupMaxSize - - NodeInstanceType - - NodeImageIdSSMParam - - NodeImageId - - NodeVolumeSize - - KeyName - - BootstrapArguments - - DisableIMDSv1 - - Label: - default: Worker Network Configuration - Parameters: - - VpcId - - Subnets - -Parameters: - BootstrapArguments: - Type: String - Default: "" - Description: "Arguments to pass to the bootstrap script. See files/bootstrap.sh in https://github.com/awslabs/amazon-eks-ami" - - ClusterControlPlaneSecurityGroup: - Type: "AWS::EC2::SecurityGroup::Id" - Default: CLUSTER_SG - Description: The security group of the cluster control plane. - - ClusterName: - Type: String - Default: CLUSTER_NAME - Description: The cluster name provided when the cluster was created. If it is incorrect, nodes will not be able to join the cluster. - - KeyName: - Type: "AWS::EC2::KeyPair::KeyName" - Default: KEY_NAME - Description: The EC2 Key Pair to allow SSH access to the instances - - NodeAutoScalingGroupDesiredCapacity: - Type: Number - Default: ASG_DESIRED_CAPACITY - Description: Desired capacity of Node Group ASG. - - NodeAutoScalingGroupMaxSize: - Type: Number - Default: ASG_MAXSIZE - Description: Maximum size of Node Group ASG. Set to at least 1 greater than NodeAutoScalingGroupDesiredCapacity. - - NodeAutoScalingGroupMinSize: - Type: Number - Default: ASG_MINSIZE - Description: Minimum size of Node Group ASG. - - NodeGroupName: - Type: String - Default: NODEGROUP_NAME - Description: Unique identifier for the Node Group. - - NodeInstanceRole: - Type: String - Default: NODE_INSTANCE_ROLE - Description: IAM role for Node group. - - NodeImageId: - Type: String - Default: AMI_IMAGE_ID - Description: (Optional) Specify your own custom image ID. This value overrides any AWS Systems Manager Parameter Store value specified above. - - NodeImageIdSSMParam: - Type: "AWS::SSM::Parameter::Value" - Default: /aws/service/eks/optimized-ami/1.17/amazon-linux-2/recommended/image_id - Description: AWS Systems Manager Parameter Store parameter of the AMI ID for the worker node instances. Change this value to match the version of Kubernetes you are using. - - DisableIMDSv1: - Type: String - Default: "false" - AllowedValues: - - "false" - - "true" - - NodeInstanceType: - Type: String - Default: NODEPOOL_INSTANCE_TYPE - AllowedValues: - - a1.medium - - a1.large - - a1.xlarge - - a1.2xlarge - - a1.4xlarge - - c1.medium - - c1.xlarge - - c3.large - - c3.xlarge - - c3.2xlarge - - c3.4xlarge - - c3.8xlarge - - c4.large - - c4.xlarge - - c4.2xlarge - - c4.4xlarge - - c4.8xlarge - - c5.large - - c5.xlarge - - c5.2xlarge - - c5.4xlarge - - c5.9xlarge - - c5.12xlarge - - c5.18xlarge - - c5.24xlarge - - c5.metal - - c5d.large - - c5d.xlarge - - c5d.2xlarge - - c5d.4xlarge - - c5d.9xlarge - - c5d.12xlarge - - c5d.18xlarge - - c5d.24xlarge - - c5d.metal - - c5n.large - - c5n.xlarge - - c5n.2xlarge - - c5n.4xlarge - - c5n.9xlarge - - c5n.18xlarge - - c6g.medium - - c6g.large - - c6g.xlarge - - c6g.2xlarge - - c6g.4xlarge - - c6g.8xlarge - - c6g.12xlarge - - c6g.16xlarge - - c6g.metal - - c6gd.medium - - c6gd.large - - c6gd.xlarge - - c6gd.2xlarge - - c6gd.4xlarge - - c6gd.8xlarge - - c6gd.12xlarge - - c6gd.16xlarge - - c6gd.metal - - cc2.8xlarge - - cr1.8xlarge - - d2.xlarge - - d2.2xlarge - - d2.4xlarge - - d2.8xlarge - - f1.2xlarge - - f1.4xlarge - - f1.16xlarge - - g2.2xlarge - - g2.8xlarge - - g3s.xlarge - - g3.4xlarge - - g3.8xlarge - - g3.16xlarge - - h1.2xlarge - - h1.4xlarge - - h1.8xlarge - - h1.16xlarge - - hs1.8xlarge - - i2.xlarge - - i2.2xlarge - - i2.4xlarge - - i2.8xlarge - - i3.large - - i3.xlarge - - i3.2xlarge - - i3.4xlarge - - i3.8xlarge - - i3.16xlarge - - i3.metal - - i3en.large - - i3en.xlarge - - i3en.2xlarge - - i3en.3xlarge - - i3en.6xlarge - - i3en.12xlarge - - i3en.24xlarge - - inf1.xlarge - - inf1.2xlarge - - inf1.6xlarge - - inf1.24xlarge - - m1.small - - m1.medium - - m1.large - - m1.xlarge - - m2.xlarge - - m2.2xlarge - - m2.4xlarge - - m3.medium - - m3.large - - m3.xlarge - - m3.2xlarge - - m4.large - - m4.xlarge - - m4.2xlarge - - m4.4xlarge - - m4.10xlarge - - m4.16xlarge - - m5.large - - m5.xlarge - - m5.2xlarge - - m5.4xlarge - - m5.8xlarge - - m5.12xlarge - - m5.16xlarge - - m5.24xlarge - - m5.metal - - m5a.large - - m5a.xlarge - - m5a.2xlarge - - m5a.4xlarge - - m5a.8xlarge - - m5a.12xlarge - - m5a.16xlarge - - m5a.24xlarge - - m5ad.large - - m5ad.xlarge - - m5ad.2xlarge - - m5ad.4xlarge - - m5ad.12xlarge - - m5ad.24xlarge - - m5d.large - - m5d.xlarge - - m5d.2xlarge - - m5d.4xlarge - - m5d.8xlarge - - m5d.12xlarge - - m5d.16xlarge - - m5d.24xlarge - - m5d.metal - - m5dn.large - - m5dn.xlarge - - m5dn.2xlarge - - m5dn.4xlarge - - m5dn.8xlarge - - m5dn.12xlarge - - m5dn.16xlarge - - m5dn.24xlarge - - m5n.large - - m5n.xlarge - - m5n.2xlarge - - m5n.4xlarge - - m5n.8xlarge - - m5n.12xlarge - - m5n.16xlarge - - m5n.24xlarge - - m6g.medium - - m6g.large - - m6g.xlarge - - m6g.2xlarge - - m6g.4xlarge - - m6g.8xlarge - - m6g.12xlarge - - m6g.16xlarge - - m6g.metal - - m6gd.medium - - m6gd.large - - m6gd.xlarge - - m6gd.2xlarge - - m6gd.4xlarge - - m6gd.8xlarge - - m6gd.12xlarge - - m6gd.16xlarge - - m6gd.metal - - p2.xlarge - - p2.8xlarge - - p2.16xlarge - - p3.2xlarge - - p3.8xlarge - - p3.16xlarge - - p3dn.24xlarge - - g4dn.xlarge - - g4dn.2xlarge - - g4dn.4xlarge - - g4dn.8xlarge - - g4dn.12xlarge - - g4dn.16xlarge - - g4dn.metal - - r3.large - - r3.xlarge - - r3.2xlarge - - r3.4xlarge - - r3.8xlarge - - r4.large - - r4.xlarge - - r4.2xlarge - - r4.4xlarge - - r4.8xlarge - - r4.16xlarge - - r5.large - - r5.xlarge - - r5.2xlarge - - r5.4xlarge - - r5.8xlarge - - r5.12xlarge - - r5.16xlarge - - r5.24xlarge - - r5.metal - - r5a.large - - r5a.xlarge - - r5a.2xlarge - - r5a.4xlarge - - r5a.8xlarge - - r5a.12xlarge - - r5a.16xlarge - - r5a.24xlarge - - r5ad.large - - r5ad.xlarge - - r5ad.2xlarge - - r5ad.4xlarge - - r5ad.12xlarge - - r5ad.24xlarge - - r5d.large - - r5d.xlarge - - r5d.2xlarge - - r5d.4xlarge - - r5d.8xlarge - - r5d.12xlarge - - r5d.16xlarge - - r5d.24xlarge - - r5d.metal - - r5dn.large - - r5dn.xlarge - - r5dn.2xlarge - - r5dn.4xlarge - - r5dn.8xlarge - - r5dn.12xlarge - - r5dn.16xlarge - - r5dn.24xlarge - - r5n.large - - r5n.xlarge - - r5n.2xlarge - - r5n.4xlarge - - r5n.8xlarge - - r5n.12xlarge - - r5n.16xlarge - - r5n.24xlarge - - r6g.medium - - r6g.large - - r6g.xlarge - - r6g.2xlarge - - r6g.4xlarge - - r6g.8xlarge - - r6g.12xlarge - - r6g.16xlarge - - r6g.metal - - r6gd.medium - - r6gd.large - - r6gd.xlarge - - r6gd.2xlarge - - r6gd.4xlarge - - r6gd.8xlarge - - r6gd.12xlarge - - r6gd.16xlarge - - r6gd.metal - - t1.micro - - t2.nano - - t2.micro - - t2.small - - t2.medium - - t2.large - - t2.xlarge - - t2.2xlarge - - t3.nano - - t3.micro - - t3.small - - t3.medium - - t3.large - - t3.xlarge - - t3.2xlarge - - t3a.nano - - t3a.micro - - t3a.small - - t3a.medium - - t3a.large - - t3a.xlarge - - t3a.2xlarge - - u-6tb1.metal - - u-9tb1.metal - - u-12tb1.metal - - x1.16xlarge - - x1.32xlarge - - x1e.xlarge - - x1e.2xlarge - - x1e.4xlarge - - x1e.8xlarge - - x1e.16xlarge - - x1e.32xlarge - - z1d.large - - z1d.xlarge - - z1d.2xlarge - - z1d.3xlarge - - z1d.6xlarge - - z1d.12xlarge - - z1d.metal - ConstraintDescription: Must be a valid EC2 instance type - Description: EC2 instance type for the node instances - - NodeVolumeSize: - Type: Number - Default: NODE_DISK_SIZE - Description: Node volume size - - Subnets: - Type: "CommaDelimitedList" - Default: SUBNET01 - Description: The subnets where workers can be created. - - VpcId: - Type: "AWS::EC2::VPC::Id" - Default: VPCID - Description: The VPC of the worker instances - -Mappings: - PartitionMap: - aws: - EC2ServicePrincipal: "ec2.amazonaws.com" - aws-us-gov: - EC2ServicePrincipal: "ec2.amazonaws.com" - aws-cn: - EC2ServicePrincipal: "ec2.amazonaws.com.cn" - aws-iso: - EC2ServicePrincipal: "ec2.c2s.ic.gov" - aws-iso-b: - EC2ServicePrincipal: "ec2.sc2s.sgov.gov" - -Conditions: - HasNodeImageId: !Not - - "Fn::Equals": - - !Ref NodeImageId - - "" - - IMDSv1Disabled: - "Fn::Equals": - - !Ref DisableIMDSv1 - - "true" - -Resources: - NodeInstanceProfile: - Type: "AWS::IAM::InstanceProfile" - Properties: - Path: / - Roles: - - !Ref NodeInstanceRole - - NodeSecurityGroup: - Type: "AWS::EC2::SecurityGroup" - Properties: - GroupDescription: Security group for all nodes in the cluster - Tags: - - Key: !Sub kubernetes.io/cluster/${ClusterName} - Value: owned - VpcId: !Ref VpcId - - NodeSecurityGroupIngress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow node to communicate with each other - FromPort: 0 - GroupId: !Ref NodeSecurityGroup - IpProtocol: "-1" - SourceSecurityGroupId: !Ref NodeSecurityGroup - ToPort: 65535 - - ClusterControlPlaneToNodeSecurityGroupIngress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow pods to communicate with the cluster API Server - FromPort: 0 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: "-1" - SourceSecurityGroupId: !Ref NodeSecurityGroup - ToPort: 65535 - - ClusterControlPlaneSecurityGroupIngress: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow pods to communicate with the cluster API Server1 - FromPort: 0 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: "-1" - SourceSecurityGroupId: !Ref ClusterControlPlaneSecurityGroup - ToPort: 65535 - - ClusterControlPlaneEgressToNodeSecurityGroup: - Type: "AWS::EC2::SecurityGroupEgress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow the cluster control plane to communicate with worker Kubelet and pods - GroupId: !Ref ClusterControlPlaneSecurityGroup - CidrIp: 0.0.0.0/0 - FromPort: 0 - IpProtocol: "-1" - ToPort: 65535 - - ClusterControlPlaneIngressForStoridgeAPIOn8282: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow goPaddle/User to access the Storidge API on 8282 - FromPort: 8282 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: tcp - CidrIp: 0.0.0.0/0 - ToPort: 8282 - - ClusterControlPlaneIngressForGrafanaOn32000: - Type: "AWS::EC2::SecurityGroupIngress" - DependsOn: NodeSecurityGroup - Properties: - Description: Allow users to access the Grafana on 32000 - FromPort: 32000 - GroupId: !Ref ClusterControlPlaneSecurityGroup - IpProtocol: tcp - CidrIp: 0.0.0.0/0 - ToPort: 32000 - - NodeLaunchTemplate: - Type: "AWS::EC2::LaunchTemplate" - Properties: - LaunchTemplateData: - BlockDeviceMappings: - - DeviceName: /dev/xvda - Ebs: - DeleteOnTermination: true - VolumeSize: !Ref NodeVolumeSize - VolumeType: gp2 - - DeviceName: /dev/xvdf - Ebs: - DeleteOnTermination: true - VolumeSize: !Ref NodeVolumeSize - VolumeType: gp2 - - DeviceName: /dev/xvdg - Ebs: - DeleteOnTermination: true - VolumeSize: !Ref NodeVolumeSize - VolumeType: gp2 - - DeviceName: /dev/xvdh - Ebs: - DeleteOnTermination: true - VolumeSize: !Ref NodeVolumeSize - VolumeType: gp2 - IamInstanceProfile: - Arn: !GetAtt NodeInstanceProfile.Arn - ImageId: !If - - HasNodeImageId - - !Ref NodeImageId - - !Ref NodeImageIdSSMParam - InstanceType: !Ref NodeInstanceType - KeyName: !Ref KeyName - SecurityGroupIds: - - !Ref NodeSecurityGroup - - !Ref ClusterControlPlaneSecurityGroup - UserData: !Base64 - "Fn::Sub": | - #!/bin/bash - set -o xtrace - /etc/eks/bootstrap.sh ${ClusterName} - curl -fsSL ftp://download.storidge.com/pub/ce/cio-ce | sudo bash - /opt/aws/bin/cfn-signal --exit-code $? \ - --stack ${AWS::StackName} \ - --resource NodeGroup \ - --region ${AWS::Region} - - reboot - MetadataOptions: - HttpPutResponseHopLimit : 2 - HttpEndpoint: enabled - HttpTokens: !If - - IMDSv1Disabled - - required - - optional - - NodeGroup: - Type: "AWS::AutoScaling::AutoScalingGroup" - Properties: - DesiredCapacity: !Ref NodeAutoScalingGroupDesiredCapacity - LaunchTemplate: - LaunchTemplateId: !Ref NodeLaunchTemplate - Version: !GetAtt NodeLaunchTemplate.LatestVersionNumber - MaxSize: !Ref NodeAutoScalingGroupMaxSize - MinSize: !Ref NodeAutoScalingGroupMinSize - Tags: - - Key: Name - PropagateAtLaunch: true - Value: !Sub ${ClusterName}-${NodeGroupName}-Node - - Key: !Sub kubernetes.io/cluster/${ClusterName} - PropagateAtLaunch: true - Value: owned - VPCZoneIdentifier: !Ref Subnets - CreationPolicy: - ResourceSignal: - Count: !Ref NodeAutoScalingGroupDesiredCapacity - Timeout: PT15M - UpdatePolicy: - AutoScalingRollingUpdate: - MaxBatchSize: 1 - MinInstancesInService: !Ref NodeAutoScalingGroupDesiredCapacity - PauseTime: PT5M - - ASGLifecycleHookTerminate: - Type: AWS::AutoScaling::LifecycleHook - DependsOn: NodeGroup - Properties: - AutoScalingGroupName: !Ref NodeGroup - DefaultResult: "CONTINUE" - HeartbeatTimeout: 600 - LifecycleHookName: "Storidge-Remove-Node" - LifecycleTransition: "autoscaling:EC2_INSTANCE_TERMINATING" - - ASGLifecycleHookLaunch: - Type: AWS::AutoScaling::LifecycleHook - DependsOn: NodeGroup - Properties: - AutoScalingGroupName: !Ref NodeGroup - HeartbeatTimeout: 1200 - LifecycleHookName: "Storidge-Add-Node" - LifecycleTransition: "autoscaling:EC2_INSTANCE_LAUNCHING" - - ASGScaleOutPolicy: - Type: AWS::AutoScaling::ScalingPolicy - Properties: - AdjustmentType: "ChangeInCapacity" - PolicyType: "SimpleScaling" - Cooldown: "600" - AutoScalingGroupName: !Ref NodeGroup - ScalingAdjustment: 1 - - ASGCPUAlarmHigh: - Type: AWS::CloudWatch::Alarm - Properties: - EvaluationPeriods: '2' - Statistic: Average - Threshold: '80' - AlarmDescription: Alarm if CPU too high or metric disappears indicating instance - is down - Period: '60' - AlarmActions: - - !Ref ASGScaleOutPolicy - Namespace: AWS/EC2 - Dimensions: - - Name: AutoScalingGroupName - Value: !Ref NodeGroup - ComparisonOperator: GreaterThanThreshold - MetricName: CPUUtilization - - SSMdocument: - Type: 'AWS::SSM::Document' - DependsOn: NodeGroup - Properties: - DocumentType: Automation - Content: - schemaVersion: "0.3" - description: "Create Storidge cluster with SSM Automation" - # Role that is utilized to perform the steps within the Automation Document. In this case to be able to Signal CFN and Describe Instances. - assumeRole: "{{AutomationAssumeRole}}" - # Gathering parameters needed to configure DCs in the Quick Start - parameters: - Region: - type: String - default: !Ref "AWS::Region" - AutomationAssumeRole: - type: String - # TODO - default: !Sub 'arn:aws:iam::${AWS::AccountId}:role/${NodeInstanceRole}' - ASGName: - type: String - default: !Ref NodeGroup - mainSteps: - - name: Get_Token_Name - action: 'aws:executeScript' - inputs: - Runtime: python3.6 - Handler: script_handler - Script: |- - import time - import calendar - def script_handler(events, context): - print('Setting storidge token name') - # print(events["parameter"]) - token=str(calendar.timegm(time.gmtime())) - return {'token': token} - maxAttempts: 3 - outputs: - - Selector: $.Payload.token - Type: String - Name: token - - name: Get_ASG_Instances - action: 'aws:executeAwsApi' - inputs: - Service: AutoScaling - Api: DescribeAutoScalingGroups - AutoScalingGroupNames: - - '{{ASGName}}' - maxAttempts: 3 - outputs: - - Selector: '$.AutoScalingGroups[0].Instances..InstanceId' - Name: StorageNodes - Type: StringList - - name: GetStorageNodeList - action: 'aws:executeScript' - inputs: - Runtime: python3.6 - Handler: script_handler - Script: |- - def script_handler(events, context): - print(events["InstanceIds"]) - LeaderInstanceId = [] - LeaderInstanceId.append(events["InstanceIds"].pop(0)) - return {'StorageInstanceIds': events["InstanceIds"], 'LeaderInstanceId': LeaderInstanceId } - InputPayload: - InstanceIds: '{{ Get_ASG_Instances.StorageNodes}}' - outputs: - - Name: StorageInstanceIds - Selector: $.Payload.StorageInstanceIds - Type: StringList - - Name: LeaderInstanceId - Selector: $.Payload.LeaderInstanceId - Type: StringList - - name: Create_Token - action: 'aws:runCommand' - inputs: - DocumentName: AWS-RunShellScript - InstanceIds: - - '{{ GetStorageNodeList.LeaderInstanceId }}' - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - ip=$(ec2metadata --local-ipv4) - - token=$(cioctl create --ip $ip | grep "cioctl join") - - if [ -z "${token}" ]; then echo "ERROR:Token is not created"; exit; fi - - aws ssm put-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" --type SecureString --overwrite --value "$token" - maxAttempts: 1 - - name: Join_Nodes - action: 'aws:runCommand' - inputs: - DocumentName: AWS-RunShellScript - InstanceIds: - - '{{ GetStorageNodeList.StorageInstanceIds }}' - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - ip=$(ec2metadata --local-ipv4) - - STORIDGE_TOKEN=$(aws ssm get-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" --with-decryption --query "Parameter.Value" --output text) - - echo $STORIDGE_TOKEN - - eval "$STORIDGE_TOKEN --ip $ip" - maxAttempts: 1 - onFailure: 'step:CleanupParam' - - name: Initialize_Cluster - action: 'aws:runCommand' - inputs: - DocumentName: AWS-RunShellScript - InstanceIds: - - '{{ GetStorageNodeList.LeaderInstanceId }}' - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - STORIDGE_TOKEN=$(aws ssm get-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" --with-decryption --query ''Parameter.Value'' --output text) - - echo $STORIDGE_TOKEN - - cioctl init `echo $STORIDGE_TOKEN | cut -d'-' -f2` - - cio node ls | grep -v "Error" - - aws ssm delete-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" - maxAttempts: 1 - onFailure: 'step:CleanupParam' - - name: K8s_Add_Node_Label - action: 'aws:runCommand' - inputs: - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - instanceId=$(curl http://169.254.169.254/latest/meta-data/instance-id) - - hostname=$(aws ec2 describe-instances --region {{ Region }} --instance-ids $instanceId --query 'Reservations[*].Instances[*].[PrivateDnsName]' --output text) - - !Sub kubectl --kubeconfig ~/.kube/config label nodes $hostname nodePoolType=storidgeNodePool nodePoolName=${NodeGroupName} - DocumentName: AWS-RunShellScript - InstanceIds: - - '{{ GetStorageNodeList.LeaderInstanceId }}' - - '{{ GetStorageNodeList.StorageInstanceIds }}' - maxAttempts: 1 - - name: Tag_Node - action: 'aws:createTags' - inputs: - ResourceType: EC2 - ResourceIds: - - '{{Get_ASG_Instances.StorageNodes}}' - Tags: - - Value: ready - Key: node_status - - name: CleanupParam - action: 'aws:executeAwsApi' - inputs: - Service: ssm - Api: DeleteParameter - Name: STORIDGE_TOKEN_{{ Get_Token_Name.token }} - isCritical: false - - - SSMDocumentAddNode: - Type: 'AWS::SSM::Document' - DependsOn: NodeGroup - Properties: - DocumentType: Automation - Content: - description: Add a new node to Storidge cluster - schemaVersion: '0.3' - assumeRole: '{{AutomationAssumeRole}}' - parameters: - AutomationAssumeRole: - default: !Sub 'arn:aws:iam::${AWS::AccountId}:role/${NodeInstanceRole}' - type: String - ASGName: - default: test22-vv1-NodeGroup-1TMPAZMFBWHSE - type: String - Region: - default: !Ref "AWS::Region" - type: String - InstanceId: - type: String - LCHName: - type: String - SSMDocumentName: - type: String - mainSteps: - - name: GetRunningAutomation - action: 'aws:executeAwsApi' - inputs: - Service: ssm - Api: describe_automation_executions - Filters: - - Key: DocumentNamePrefix - Values: - - '{{SSMDocumentName}}' - - Key: ExecutionStatus - Values: - - InProgress - - Waiting - - Pending - outputs: - - Name: ExecutionStatus - Selector: AutomationExecutionMetadataList..AutomationExecutionStatus - Type: StringList - - Name: ExecutionIds - Selector: AutomationExecutionMetadataList..AutomationExecutionId - Type: StringList - - name: GetExecutionCount - action: 'aws:executeScript' - inputs: - Runtime: python3.6 - Handler: script_handler - Script: |- - def script_handler(events, context): - print(events["ExecutionIds"]) - events["ExecutionIds"].pop(0) - if len(events["ExecutionIds"]) != 0: - return {'ExecutionIds': events["ExecutionIds"], 'ExecutionLen': len(events["ExecutionIds"]) } - return {'ExecutionLen': 0} - InputPayload: - ExecutionIds: '{{ GetRunningAutomation.ExecutionIds}}' - outputs: - - Name: ExecutionIds - Selector: $.Payload.ExecutionIds - Type: StringList - - Name: ExecutionLen - Selector: $.Payload.ExecutionLen - Type: Integer - - name: CheckExecutionLength - action: 'aws:branch' - inputs: - Choices: - - NextStep: WaitToCompleteRunningExecutions - Variable: '{{GetExecutionCount.ExecutionLen}}' - NumericGreater: 0 - Default: Sleep - - name: WaitToCompleteRunningExecutions - action: 'aws:waitForAwsResourceProperty' - inputs: - Service: ssm - Api: describe_automation_executions - PropertySelector: AutomationExecutionMetadataList..AutomationExecutionStatus - DesiredValues: - - Success - - TimedOut - - Cancelling - - Cancelled - - Failed - Filters: - - Key: DocumentNamePrefix - Values: - - '{{SSMDocumentName}}' - - Key: ExecutionId - Values: - - '{{GetExecutionCount.ExecutionIds}}' - timeoutSeconds: 600 - - name: Sleep - action: 'aws:sleep' - inputs: - Duration: PT5M - - outputs: - - Type: String - Selector: $.Payload.token - Name: token - inputs: - Script: |- - import time - import calendar - - def script_handler(events, context): - print('Setting storidge token name') - # print(events["parameter"]) - token=str(calendar.timegm(time.gmtime())) - return {'token': token} - Runtime: python3.6 - Handler: script_handler - name: Get_Token_Name - action: 'aws:executeScript' - maxAttempts: 2 - - name: GetStoridgeNode - action: 'aws:executeAwsApi' - outputs: - - Selector: $.Reservations[0].Instances[0].InstanceId - Name: NodeId - Type: String - inputs: - Service: ec2 - Api: DescribeInstances - Filters: - - Name: 'tag:aws:autoscaling:groupName' - Values: - - '{{ASGName}}' - - Name: 'tag:node_status' - Values: - - ready - - Name: instance-state-name - Values: - - running - - name: Create_Token - action: 'aws:runCommand' - inputs: - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - ip=$(ec2metadata --local-ipv4) - - token=$(sudo cioctl join-token) - - if [ -z "${token}" ]; then echo "ERROR:Token is not created"; exit; fi - - echo $token - - 'aws ssm put-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" --type SecureString --overwrite --value "$token"' - DocumentName: AWS-RunShellScript - InstanceIds: - - '{{GetStoridgeNode.NodeId}}' - maxAttempts: 1 - - name: Add_Node - action: 'aws:runCommand' - inputs: - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - ip=$(ec2metadata --local-ipv4) - - 'STORIDGE_TOKEN=$(aws ssm get-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" --with-decryption --query "Parameter.Value" --output text)' - - echo $STORIDGE_TOKEN - - eval "$STORIDGE_TOKEN --ip $ip" - - sleep 2m - - cio node ls - - aws ssm delete-parameter --region {{ Region }} --name "STORIDGE_TOKEN_{{ Get_Token_Name.token }}" - DocumentName: AWS-RunShellScript - InstanceIds: - - '{{InstanceId}}' - maxAttempts: 1 - onFailure: 'step:CleanupParam' - - name: CompleteLifecycleAction_Launch - action: 'aws:executeAwsApi' - inputs: - Service: autoscaling - Api: CompleteLifecycleAction - LifecycleActionResult: CONTINUE - LifecycleHookName: '{{ LCHName }}' - AutoScalingGroupName: '{{ ASGName }}' - InstanceId: '{{ InstanceId }}' - maxAttempts: 3 - - name: K8s_Add_Node_Label - action: 'aws:runCommand' - inputs: - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - instanceId=$(curl http://169.254.169.254/latest/meta-data/instance-id) - - hostname=$(aws ec2 describe-instances --region {{ Region }} --instance-ids $instanceId --query 'Reservations[*].Instances[*].[PrivateDnsName]' --output text) - - !Sub kubectl --kubeconfig ~/.kube/config label nodes $hostname nodePoolType=storidgeNodePool nodePoolName=${NodeGroupName} - DocumentName: AWS-RunShellScript - InstanceIds: - - '{{InstanceId}}' - maxAttempts: 1 - - name: Tag_Node - action: 'aws:createTags' - inputs: - ResourceType: EC2 - ResourceIds: - - '{{ InstanceId }}' - Tags: - - Value: ready - Key: node_status - - name: CleanupParam - action: 'aws:executeAwsApi' - inputs: - Service: ssm - Api: DeleteParameter - Name: STORIDGE_TOKEN_{{ Get_Token_Name.token }} - isCritical: false - - SSMDocumentRemoveNode: - Type: 'AWS::SSM::Document' - DependsOn: NodeGroup - Properties: - DocumentType: Automation - Content: - description: Remove node from storidge cluster - schemaVersion: '0.3' - assumeRole: '{{AutomationAssumeRole}}' - parameters: - AutomationAssumeRole: - type: String - ASGName: - default: test22-vv1-NodeGroup-1TMPAZMFBWHSE - type: String - InstanceId: - type: String - LCHName: - type: String - mainSteps: - - name: Remove_Node - action: 'aws:runCommand' - inputs: - DocumentName: AWS-RunShellScript - InstanceIds: - - '{{InstanceId}}' - Parameters: - commands: - - '#!/bin/bash' - - set -o pipefail - - set -xe - - cio node ls - - cioctl node remove - maxAttempts: 1 - - name: CompleteLifecycleAction_Terminate - action: 'aws:executeAwsApi' - inputs: - Service: autoscaling - Api: CompleteLifecycleAction - LifecycleActionResult: CONTINUE - LifecycleHookName: '{{ LCHName }}' - AutoScalingGroupName: '{{ ASGName }}' - InstanceId: '{{ InstanceId }}' - maxAttempts: 3 - - CloudWatchEventRuleLaunchNode: - Type: AWS::Events::Rule - DependsOn: SSMDocumentAddNode - Properties: - Description: "Event rule to add a new node to storidge cluster" - EventPattern: - source: - - "aws.autoscaling" - detail-type: - - "EC2 Instance-launch Lifecycle Action" - detail: - AutoScalingGroupName: - - !Ref NodeGroup - Name: !Join [ "", ["Launch_", !Ref NodeGroup ] ] - State: "ENABLED" - Targets: - - - Arn: !Sub 'arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:automation-definition/${SSMDocumentAddNode}:$DEFAULT' - Id: "CallSSMDocumentAddNode" - # TODO - RoleArn: !Sub 'arn:aws:iam::${AWS::AccountId}:role/${NodeInstanceRole}' - InputTransformer: - InputPathsMap: - asgname: "$.detail.AutoScalingGroupName" - instanceid: "$.detail.EC2InstanceId" - lchname: "$.detail.LifecycleHookName" - # TODO - InputTemplate: !Sub '{"InstanceId":[],"ASGName":[],"LCHName":[],"AutomationAssumeRole":["arn:aws:iam::${AWS::AccountId}:role/${NodeInstanceRole}"],"SSMDocumentName":["${SSMDocumentAddNode}"]}' - - CloudWatchEventRuleTerminateNode: - Type: AWS::Events::Rule - DependsOn: SSMDocumentRemoveNode - Properties: - Description: "Event rule to remove node from storidge cluster" - EventPattern: - source: - - "aws.autoscaling" - detail-type: - - "EC2 Instance-terminate Lifecycle Action" - detail: - AutoScalingGroupName: - - !Ref NodeGroup - Name: !Join [ "", ["Terminate_", !Ref NodeGroup ] ] - State: "ENABLED" - Targets: - - - Arn: !Sub 'arn:aws:ssm:${AWS::Region}:${AWS::AccountId}:automation-definition/${SSMDocumentRemoveNode}:$DEFAULT' - Id: "CallSSMDocumentRemoveNode" - # TODO - RoleArn: !Sub 'arn:aws:iam::${AWS::AccountId}:role/${NodeInstanceRole}' - InputTransformer: - InputPathsMap: - asgname: "$.detail.AutoScalingGroupName" - instanceid: "$.detail.EC2InstanceId" - lchname: "$.detail.LifecycleHookName" - # TODO - InputTemplate: !Sub '{"InstanceId":[],"ASGName":[],"LCHName":[],"AutomationAssumeRole":["arn:aws:iam::${AWS::AccountId}:role/${NodeInstanceRole}"]}' -Outputs: - NodeSecurityGroup: - Description: The security group for the node group - Value: !Ref NodeSecurityGroup - - NodeAutoScalingGroup: - Description: The autoscaling group - Value: !Ref NodeGroup - - SSMDocumentCreate: - Description: SSM document to create the storidge cluster - Value: !Ref SSMdocument - - SSMDocumentAddNode: - Description: SSM document to add the node to the Storidge Cluster - Value: !Ref SSMDocumentAddNode - - SSMDocumentRemoveNode: - Description: SSM document to remove the node from Storidge Cluster - Value: !Ref SSMDocumentRemoveNode \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/versionMatrix.json b/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/versionMatrix.json deleted file mode 100644 index a380b0c40..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustermanager/clustermanager/versionMatrix.json +++ /dev/null @@ -1,1785 +0,0 @@ -{ - "supportedVersions": [ - "v1.6", - "v1.7", - "v1.8", - "v1.9", - "v1.10", - "v1.11", - "v1.12", - "v1.13", - "v1.14", - "v1.15", - "v1.16", - "v1.17", - "v1.18", - "v1.19", - "v1.20", - "v1.21", - "v1.22", - "v1.23", - "v1.24", - "v1.25", - "v1.26", - "v1.27" - ], - "v1.6": { - "deployment": [ - "apps/v1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.7": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.8": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.9": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.10": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.11": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.12": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.13": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.14": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.15": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.16": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.17": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.18": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.19": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.20": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.21": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.22": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.23": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.24": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.25": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.26": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.27": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustertemplatemanager/clustertemplatemanager/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/clustertemplatemanager/clustertemplatemanager/error_config.json deleted file mode 100644 index aa71522a1..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustertemplatemanager/clustertemplatemanager/error_config.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED": "Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type", - "SOMETHING_WRONG": "Internal Error", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "MARSHAL_ERROR":"Error in marshaling '%s'" - }, - "notification":{ - "TERRAFORM_CMD":"Failed on executing the terraform cmd", - "JSON_TO_HCL":"Failed on coneverting file from JSON to HCL", - "READ_FILE":"Cannot read file for converion or validation %s", - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "TEMPLATE_NOTFOUND":"Requested terraform template '%s' is not found", - "TEMPLATE_ALREADY_EXISTS":"Requested terraform template '%s' is already exist", - "INVALID_TEMPLATE_FMT":"Requested terraform id '%s' is invalid formate", - "ACTIVITY_NOTFOUND":"Requested activity '%s' is not found" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustertemplatemanager/clustertemplatemanager/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/clustertemplatemanager/clustertemplatemanager/internal_api.json deleted file mode 100644 index c61338d49..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustertemplatemanager/clustertemplatemanager/internal_api.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s&project=%s", - "port":"8005" - }, - "aclProject":{ - "url":"http://%s:%s/api-in/%s/v1/acl?project=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api-in/%s/v1/subusers/%s", - "port":"8005" - }, - "project":{ - "url":"http://%s:%s/api-internal/%s/v1/projectlist", - "port":"8005" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustertemplatemanager/clustertemplatemanager/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/clustertemplatemanager/clustertemplatemanager/profiles-kube.json deleted file mode 100644 index af3515827..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustertemplatemanager/clustertemplatemanager/profiles-kube.json +++ /dev/null @@ -1,18 +0,0 @@ -{ -"mongodb":{ - "db-name":"terraform", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - } - -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/clustertemplatemanager/clustertemplatemanager/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/clustertemplatemanager/clustertemplatemanager/service_directory-kube.json deleted file mode 100644 index 84b4c174a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/clustertemplatemanager/clustertemplatemanager/service_directory-kube.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "configmanager.ep": { - "host": "configmanager", - "port": "8001" - }, - "clustermanager.ep": { - "host": "clustermanager", - "port": "8013" - }, - "external.ep": { - "host": "clustermanager", - "port": "8013" - }, - "usermanager.ep":{ - "host":"usermanager", - "port":"8005" - } - -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/design_profiles.json b/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/design_profiles.json deleted file mode 100644 index 21435a9a1..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/design_profiles.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "internal_ep": { - "VALIDATE_PUBLIC_URL": "api/%s/codebase?organizationID=%s&operation=url&url=%s", - "VALIDATE_PRIVATE_URL": "api/%s/codebase?organizationID=%s&operation=url&url=%s&handle=%s&provider=%s", - "REPO_TYPE_TAG": "api/%s/codebase?url=%s&tag=%s&operation=url&organizationID=%s", - "REPO_HANDLE": "api/%s/codebase?handle=true&organizationID=%s", - "PRIVATE_REPO_TAG": "api/%s/codebase?handle=%s&provider=%s&url=%s&tag=%s&operation=url&organizationID=%s", - "ADD_TAG": "api/%s/tags?organizationID=%s", - "DEL_TAG": "api/%s/tags/%s?organizationID=%s", - "GET_TAG": "api/%s/tags/design?organizationID=%s", - "GET_TAG_QS": "api/%s/tags/design?tag=%s&organizationID=%s", - "POST_DESIGN_VERSION": "api/%s/design/version?organizationID=%s" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/error_config.json deleted file mode 100644 index 27aff1cc2..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/error_config.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "All":{ - "RESOURCE_NOT_FOUND":"Requested '%s' does not exist", - "RESOURCE_NOT_FOUND_WITHOUT_NAME":"Resource does not exit", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INVALID_FIELD":"Invalid input field '%s'", - "INVALID_VOLUME_TYPE":"Invalid Volume type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED":"Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type", - "NP_NOTFOUND":"Requested Network Policy '%s' is not found", - "SOMETHING_WRONG": "Internal Error", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "MARSHAL_ERROR":"Error in marshaling '%s'" - }, - "all":{ - "INTERNAL_SERVER":"Something went wrong! Please try again later", - "RESOURCE_NOT_FOUND":"Requested '%s' does not exist", - "RESOURCE_NOT_FOUND_WITHOUT_NAME":"Resource does not exit", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "SOMETHING_WRONG":"Internal Error", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INVALID_FIELD":"Invalid input field '%s'", - "INVALID_VOLUME_TYPE":"Invalid Volume type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED":"Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type", - "MARSHAL_ERROR":"Error in marshaling '%s'", - "NP_NOTFOUND":"Requested Network Policy '%s' is not found", - "CANT_DELETE_POLICY":"Gopaddle's default policy can't be removed", - "DR_NOTFOUND":"Requested Dependency Reference '%s' is not found", - "DEPENDENCY_EXIST_RESOURCE":"This Resource has dependency: '%s'" - }, - "Config":{ - "CONFIG_NOTFOUND":"Requested config '%s' is not found", - "CONFIG_ALREADY_EXIST":"Requested config '%s' already exists", - "FILES_EMPTY":"File array can not be empty if type is File", - "LITERALs_EMPTY":"Literal array can not be empty if type is Literal", - "NOT_IMPLEMENT":"This module has not been implemented", - "CONFIGHIST_NOT_FOUND":"Requested config history '%s' with version '%d' is not found", - "PAGESIZE_NEGAVE":"Page or Size can not be a negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "INVALID_CONFIGID_FMT":"Requested config id is invalid formate '%s'", - "DONOT_MOD_FIELD":"You could not modify the field '%s' value after creation" - }, - "Service":{ - "SVC_NOTFOUND":"Requested container '%s' is not found", - "SVC_ALREADY_EXIST":"Requested container '%s' already exists", - "SVC_RELEASE_ALREADY_EXIST":"Requested release '%s' already exists in the service '%s'", - "SVCVERSION_ALREADY_EXIST":"Requested container version '%d' already exists", - "REPO_VALIDATION_FAILED":"Failed in repo validation: %s", - "REGISTRY_VALIDATION_FAILED":"Failed in registry validation: %s", - "NOT_IMPLEMENT":"This module has not been implemented", - "PAGESIZE_NEGAVE":"Page or Size can not be a negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "INVALID_SERVICEID_FMT":"Requested container id '%s' is invalid formate", - "INVALID_SERVICEVERSION_FMT": "Requested container '%s' with version '%s' is invalid formate", - "DONOT_MOD_FIELD":"You could not modify the field '%s' value after creation", - "SVCHIST_NOT_FOUND":"Requested container history '%s' with version '%s' is not found", - "ARTIFACT_EMPTY":"serviceConfig.artifactConfig.%s field can not be empty if artifacts type is %s", - "MISMATCHED_ARTIFACTS":"Given update type '%s' is not matched with the existing service artifact type '%s'", - "ARTIFACT_UPDATE_EMPTY":"serviceConfig.artifactConfig.%s field can not be empty if update type is %s", - "INVALID_UPDATE_TYPE":"Invalid update type has been encountered '%s'", - - "ROUTEPATH_PORT_ERROR":"Could not update container '%s' ! Given port '%d' is used in the route path '%s'.Delete all the route paths using the port, before deleting the port.", - "HEALTHCK_PORT_ERROR":"Given port '%d' in the health check does not exists in the ports input", - "HTTPHEALTHCK_MISSED":"Http healthcheck handler can not be empty if type is http", - "EXECHEALTHCK_MISSED":"Exec healthcheck handler can not be empty if type is exec", - "REFERED_BY_HEALTHCK":"The port '%d' is referred by healthcheck parameter", - "SERVICE_NOT_FOUND":"Requested container '%s' not found", - "SERVICEHIST_NOTFOUND": "Requested container '%s' version '%s' not found", - "UNSUPPORTED_BUILD":"Selected container '%s' does not support build operation", - "STORAGE_PATH":"The given stroage path '%s' is already used in config", - "CONFIG_MOUNTPATH":"The given config mount path '%s' is already used in storage", - "CI_NOT_APPLICABLE":"CI is enabled.But CI not applicable for Unregistered CodeBase Repository", - "CODEBASE_VALIDATION":"ServiceConfig.ArtifactConfig.CodebaseRepo.RegisteredCodebase is selected. So ServiceConfig.ArtifactConfig.CodebaseRepo.CodebaseID cannot be empty", - "CONFIG_VERSION_DARFT":"Can't commit with config '%s' version as '%s'", - "DECK_IS_NOT_ACTIVE": "Deck subscription is not active", - "ACCOUNT_NOT_ACTIVE": "Not an active account", - "PRIVATE_SCM": "Requested SCM type is not supported for deck subscription type '%s'" - }, - "volumeClaimPolicy":{ - "UNSUPPORTED_TYPE":"Given %s '%s' is not supported", - "LIMIT_CAPACITY":"Limit Capacity '%d' should be greater than Requested Capacity '%d'", - "CAPACITY_LIMIT":"Limit value should be between '%d' and '%d'", - "CAPACITY_REQUEST":"Request values should be between '%d' and '%d'", - "VCP_NOTFOUND":"Requested Volume Claim Policy '%s' is not found", - "LIMIT_SUFFIX":"Limits suffix should be one of 'M' or 'Mi' or 'G' or 'Gi'", - "REQUEST_SUFFIX":"Requests suffix should be one of 'M' or 'Mi' or 'G' or 'Gi'" - - }, - "provisioner":{ - "PV_NOTFOUND":"Requested Provisioner '%s' is not found", - "PV_ALREADY_EXIST":"Requested Provisioner '%s' already exist", - "INVALID_PV_FMT":"Requested service id is invalid format '%s'", - "PAGESIZE_NEGAVE":"Page or Size can not be a negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'" - }, - "storageClass":{ - "SC_NOTFOUND":"Requested Storage Class '%s' is not found", - "SC_ALREADY_EXIST":"Requested Storage Class '%s' already exists", - "INVALID_SC_FMT":"Requested service id is invalid format '%s'", - "PAGESIZE_NEGAVE":"Page or Size can not be a negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'" - }, - "deploymentPolicy":{ - "DP_NOTFOUND":"Requested Deployment Policy '%s' is not found", - "DP_ALREADY_EXIST":"Requested Deployment Policy '%s' already exists", - "DP_ROLLINGUPDATE":"Requested Deployment Policy with maxSurge '%d' and maxUnavailable '%d' not allowed. Both maxSurge and maxUnavailable cannot be 0. Set either one of these attributes to non-zero value.", - "INVALID_DP_FMT":"Requested service id is invalid format '%s'", - "PAGESIZE_NEGAVE":"Page or Size can not be a negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'" - }, - "schedulePolicy":{ - "SP_NOTFOUND":"Requested Schedule Policy '%s' is not found" - }, - "allocationPolicy":{ - "AP_NOTFOUND":"Requested Allocation Policy '%s' is not found", - "AP_ALREADY_EXIST":"Requested Allocation Policy '%s' already exists", - "INVALID_AP_FMT":"Requested service id is invalid format '%s'", - "PAGESIZE_NEGAVE":"Page or Size can not be a negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "CPU_LIMIT":"CPU value in millicore should be between '%d' and '%d'", - "MEMORY_M_LIMIT":"Memory values in MegaBytes should be between '%d' and '%d'", - "MEMORY_G_LIMIT":"Memory values in GigaBytes should be between '%d' and '%d'", - "MEMORY_SUFFIX":"Memory suffix should be one of 'E', 'P', 'T', 'G', 'M', 'K', 'Ei', 'Pi', 'Ti', 'Gi', 'Mi', 'Ki'.", - "CPU_SUFFIX":"CPU suffix should be 'm'", - "INVALID_QUANTITY":"Value of '%s' contains invalid character '%s'", - "MEMORY_QUANTITY":"Memory limit '%s' should be greater than Request '%s'", - "CPU_QUANTITY":"CPU limit '%s' should be greater than Request '%s'" - }, - "scalingPolicy":{ - "SP_NOTFOUND":"Requested Scaling Policy '%s' is not found", - "SP_ALREADY_EXIST":"Requested Scaling Policy '%s' already exists", - "INVALID_SP_FMT":"Requested Scaling Policy is invalid format '%s'", - "PAGESIZE_NEGAVE":"Page or Size can not be a negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "INVALID_MIN_MAX": "Requested Scaling Policy min Replica '%s' must be less then or equal to max Replica '%s'" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/internal_api.json deleted file mode 100644 index 348ebb0cc..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/internal_api.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "allAPI":{ - "updateProvisionerDependencyRef":"api-internal/%s/v1/provisioner/%s" - }, - "acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s&project=%s", - "port":"8005" - }, - "aclProject":{ - "url":"http://%s:%s/api-in/%s/v1/acl?project=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api-in/%s/v1/subusers/%s", - "port":"8005" - }, - "project":{ - "url":"http://%s:%s/api-internal/%s/v1/projectlist", - "port":"8005" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/log_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/log_config.json deleted file mode 100644 index d6ca0fdf9..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/log_config.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "formatters": { - "configmanager": { - "format": "%(asctime)s %(levelname)s (%(filename)s:%(lineno)d) %(message)s", - "datefmt": "%Y-%m-%d %H:%M:%S" - } - }, - "handlers": { - "configmanager": { - "class": "RotatingFileHandler", - "filepath": "./configmanager.log", - "mode": "O_APPEND", - "bufferSize": 0, - "bufferFlushTime": 30000, - "inputChanSize": 1, - "maxBytes": 104857600, - "backupCount": 9, - "formatter": "configmanager" - } - }, - "loggers": { - "debug": { - "level": "DEBUG", - "handlers": [ - "configmanager" - ] - }, - "info": { - "level": "INFO", - "handlers": [ - "configmanager" - ] - }, - "warn": { - "level": "WARN", - "handlers": [ - "configmanager" - ] - }, - "error": { - "level": "ERROR", - "handlers": [ - "configmanager" - ] - }, - "fatal": { - "level": "FATAL", - "handlers": [ - "configmanager" - ] - } - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/profiles-kube.json deleted file mode 100644 index f84e09df0..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/profiles-kube.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "mongodb":{ - "db-name":"configmanager", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" -}, -"jwt_params": { - "JWTExpirationDelta": "12" -}, - "logger":{ - "logType":"debug" - }, - "service":{ - "iconDirectory":"/iconPath/%s/service/", - "iconAPI":"/v1/service/icon/%s" - }, - "version":"v1.0.0" -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/service_directory-kube.json deleted file mode 100644 index e053a36a6..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/service_directory-kube.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "platform.ep": { - "host": "cloudmanager", - "port": "8018" - }, - "registry.ep": { - "host": "cloudmanager", - "port": "8018" - }, - "codebase.ep": { - "host": "gpcore", - "port": "8759" - }, - "builder.ep": { - "host": "gpcore", - "port": "8759" - }, - "config.ep": { - "host": "configmanager", - "port": "8001" - }, - "provisioner.ep": { - "host": "configmanager", - "port": "8001" - }, - "nodechecker.ep": { - "host": "nodechecker", - "port": "8020" - }, - "usermanager.ep":{ - "host": "usermanager", - "port": "8005" - }, - "servicegroup.ep":{ - "host":"deploymentmanager", - "port":"8003" - }, - "billing.ep":{ - "host":"costmanager", - "port":"8011" - }, - "gpcore.ep":{ - "host":"gpcore", - "port":"8759" - }, - "notification.ep":{ - "host":"activitymanager", - "port":"8009" - }, - "domain.ep":{ - "host":"domainmanager", - "port":"8004" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/validation.json b/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/validation.json deleted file mode 100644 index 6a9104d75..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/configmanager/configmanager/validation.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "deploymentType": [ - "deployment", - "statefulSet", - "daemonSet" - ], - "scalingStrategyType": [ - "resource" - ], - "scalingStrategy": { - "type": "string", - "cpuLimit": "float64", - "memoryLimit": "float64", - "minScaleUnit": "float64", - "maxScaleUnit": "float64" - }, - "allocationStrategy":{ - "cpuLimit": "string", - "cpuRequest": "string", - "memoryLimit": "string", - "memoryRequest": "string" - }, - "deploymentStrategy":{ - "type":"string", - "updateMethod":"string", - "revisionHistory":"float64" - }, - "service": { - "expectedFields" :{ - "metaFields": [ "name", "serviceType", "artifactType", "serviceConfig" ], - "basicServiceConfig": [ "osType", "network" ], - "advancedServiceConfig": [ "osType", "network" ], - - "artifactType": [ "codeBased", "imageBased", "dockerfileBased" ], - "osType": [ "linux", "windows" ], - "codebased":{ - "repository": [ "repoProvider", "repoURL" ], - "script": [ "buildScript", "startScript" ], - "buildImageConfig": [ "imageType", "imageName" ], - "deploymentImageConfig": [ "imageType", "imageName" ], - "distributionImageRegistryID": [] - }, - "imagebased": [ "imageName" ], - "dockerfilebased":{ - "repository": [ "repoProvider", "repoURL" ], - "distributionImageRegistryID": [] - } - } - }, - "volume": { - "AWS":[ - "name", - "volumeType", - "platformID", - "zones", - "size", - "volumeID", - "accessMode", - "volumeMode" - ], - "GCE":[ - "name", - "volumeType", - "platformID", - "projectID", - "zone", - "accessMode" - ], - "fileSystemType": [ - "XFS", - "Ext3", - "Ext4" - ], - "accessMode": [ - "ReadWriteOnce", - "ReadOnlyMany", - "ReadWriteMany" - ], - "updateFields":["AWSVolume","GCEVolume","application","service","volumeClaimPolicy","status","discovered"] - }, - "volumeClaimPolicy": { - "requiredFields": [ - "name", - "accessMode", - "resources", - "volumeMode" - ], - "resourcesRequiredFields": [ - "limits", - "requests" - ], - "accessMode": [ - "ReadWriteOnce", - "ReadOnlyMany", - "ReadWriteMany" - ] - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/error_config.json deleted file mode 100644 index 08e6fab1f..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/error_config.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "SOMETHING_WRONG": "Internal Error", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "INPUT_PAYLOAD_ERROR":"Input payload have error: %s", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED": "Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type" - }, - "billing":{ - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "BILLING_NOTFOUND":"Requested subscription '%s' is not found for this user", - "BILLING_ALREADY_EXIST":"Requested subscription '%s' is already exist", - "INVALID_BILLING_FMT":"Requested subscription id '%s' is invalid formate", - "INVALID_UPDATETYPE":"Requesting UpdateType should be one of upgrade, downgrade, topup, activate, cancel and subscription", - "INVALID_UPDATE_FMT":"Requesting Subscription '%s' Update Type is invalid", - "INVALID_TOPUP_TYPE":"Cannot Add the topup for the plan '%s'. only plan 'professional' can be topup", - "INVALID_TOPUP":"Subscription.Deck.Professional.Current.IsTopUpUsed should be true for adding topup", - "INVALID_TOPUP_CONCURRENCY":"Subscription.Deck.Professional.Current.TopUp.TopupConcurrency should be greater than 0", - "INVALID_TYPE_FMT":"Requesting Subscription '%s' Type Should be one of 'free','developer,'team','professional'", - "INVALID_MODE_FMT":"Requesting Subscription Mode Should be a saas", - "INVALID_UPGRADE_FMT":"Invalid Subscription upgrade", - "INVALID_DOWNGRADE_FMT":"Invalid Subscription downgrade", - "INVALID_SUBS_FMT":"This '%s' Plan Subscription Added already", - "INVALID_CAN_FMT":"This Deck Plan Subscription is not available", - "FREE_CAN_FMT":"Cannot cancel the Free Subscription", - "FREE_ACT_FMT":"Cannot activate the Free Subscription", - "INVALID_ACT_FMT":"This '%s' Plan Subscription is not available", - "INVALID_CANCEL_FMT":"Requesting Subscription '%s' cancel Type is invalid", - "INVALID_ACTIVATE_FMT":"Requesting Subscription '%s' activate Type is invalid" - }, - "offers":{ - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "OFFERS_NOTFOUND":"Requested subscription '%s' is not found for this user", - "OFFERS_ALREADY_EXIST":"Requested subscription '%s' is already exist", - "INVALID_OFFERS_FMT":"Requested subscription id '%s' is invalid formate" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/internal_api.json deleted file mode 100644 index 85a6ba339..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/internal_api.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "allAPI":{ - "readUserByID":"api/%s/user?organizationID=%s" - }, - "acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api/%s/v1/subusers/%s", - "port":"8005" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/profiles-kube.json deleted file mode 100644 index b01b2a876..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/profiles-kube.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "mongodb":{ - "db-name":"costmanager", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - }, - "rabbitmq":{ - "mq-protocol":"amqp", - "mq-user":"admin", - "mq-password":"cGFzc3dvcmQ", - "mq-ip":"rabbitmq", - "mq-port":"5672", - "mq-billing-host":"/billing", - "mq-billing-queue":"billing-worker-queue" - } - } \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/service_directory-kube.json deleted file mode 100644 index 277a4708e..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/service_directory-kube.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "configmanager.ep": { - "host": "configmanager", - "port": "8001" - }, - "gpcore.ep": { - "host": "gpcore", - "port": "8759" - }, - "deploymentmanager.ep":{ - "host":"deploymentmanager", - "port":"8003" - }, - "clustermanager.ep":{ - "host":"clustermanager", - "port":"8013" - }, - "usermanager.ep":{ - "host":"usermanager", - "port":"8005" - }, - "paymentmanager.ep":{ - "host":"paymentmanager", - "port":"8021" - }, - "costmanager.ep":{ - "host":"costmanager", - "port":"8011" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/validation.json b/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/validation.json deleted file mode 100644 index 343a5d635..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/costmanager/costmanager/validation.json +++ /dev/null @@ -1,97 +0,0 @@ -{ - "deploymentType": [ - "deployment", - "statefulSet", - "daemonSet" - ], - "scalingStrategyType": [ - "resource" - ], - "scalingStrategy": { - "type": "string", - "cpuLimit": "float64", - "memoryLimit": "float64", - "minScaleUnit": "float64", - "maxScaleUnit": "float64" - }, - "allocationStrategy":{ - "cpuLimit": "string", - "cpuRequest": "string", - "memoryLimit": "string", - "memoryRequest": "string" - }, - "deploymentStrategy":{ - "type":"string", - "updateMethod":"string", - "revisionHistory":"float64" - }, - "service": { - "expectedFields" :{ - "metaFields": [ "name", "serviceType", "artifactType", "serviceConfig" ], - "basicServiceConfig": [ "osType", "network" ], - "advancedServiceConfig": [ "osType", "network" ], - - "artifactType": [ "codeBased", "imageBased", "dockerfileBased" ], - "osType": [ "linux", "windows" ], - "codebased":{ - "repository": [ "repoProvider", "repoURL" ], - "script": [ "buildScript", "startScript" ], - "buildImageConfig": [ "imageType", "imageName" ], - "deploymentImageConfig": [ "imageType", "imageName" ], - "distributionImageRegistryID": [] - }, - "imagebased": [ "imageName" ], - "dockerfilebased":{ - "repository": [ "repoProvider", "repoURL" ], - "distributionImageRegistryID": [] - } - } - }, - "volume": { - "AWS":[ - "name", - "volumeType", - "platformID", - "zones", - "size", - "volumeID", - "accessMode", - "volumeMode" - ], - "GCE":[ - "name", - "volumeType", - "platformID", - "projectID", - "zone", - "accessMode" - ], - "fileSystemType": [ - "XFS", - "Ext3", - "Ext4" - ], - "accessMode": [ - "ReadWriteOnce", - "ReadOnlyMany" - ], - "updateFields":["AWSVolume","GCEVolume","application","service","volumeClaimPolicy","status"] - }, - "volumeClaimPolicy": { - "requiredFields": [ - "name", - "accessMode", - "resources", - "volumeMode" - ], - "resourcesRequiredFields": [ - "limits", - "requests" - ], - "accessMode": [ - "ReadWriteOnce", - "ReadOnlyMany", - "ReadWriteMany" - ] - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/Chart.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/Chart.yaml deleted file mode 100644 index 7f931438d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/Chart.yaml +++ /dev/null @@ -1,23 +0,0 @@ -apiVersion: v2 -name: HELM_CHART -description: DESCRIPTION - -# A chart can be either an 'application' or a 'library' chart. -# -# Application charts are a collection of templates that can be packaged into versioned archives -# to be deployed. -# -# Library charts provide useful utilities or functions for the chart developer. They're included as -# a dependency of application charts to inject those utilities and functions into the rendering -# pipeline. Library charts do not define any templates and therefore cannot be deployed. -type: application - -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.0.0 - -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -appVersion: APP_VERSION \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/clusterrole.yaml b/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/clusterrole.yaml deleted file mode 100644 index 4f75f6d47..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/clusterrole.yaml +++ /dev/null @@ -1,72 +0,0 @@ -{{- if eq (include "gen.clusterrole" .) "true" -}} -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - name: gopaddle:nginx-ingress-clusterrole -rules: - - apiGroups: - - "" - resources: - - configmaps - - endpoints - - nodes - - pods - - secrets - verbs: - - list - - watch - - apiGroups: - - "" - resources: - - nodes - verbs: - - get - - apiGroups: - - "" - resources: - - services - verbs: - - get - - list - - watch - - apiGroups: - - extensions - - networking.k8s.io - resources: - - ingresses - - ingressclasses - verbs: - - get - - list - - watch - - apiGroups: - - "" - resources: - - events - verbs: - - create - - patch - - apiGroups: - - extensions - - networking.k8s.io - resources: - - ingresses/status - - ingressclasses - verbs: - - update - - apiGroups: - - "" - resourceNames: - - ingress-controller-leader - resources: - - configmaps - verbs: - - get - - update - - apiGroups: - - "" - resources: - - configmaps - verbs: - - create -{{- end }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/error_config.json deleted file mode 100644 index 555e7d1dd..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/error_config.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "RESOURCE_NOT_FOUND_WITHOUT_NAME":"Resource does not exit", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED": "Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type", - "SERVICE_NOT_FOUND":"Template need Atleast one Service", - "DR_NOTFOUND":"Requested Dependency Reference '%s' is not found", - "CLUSTER_WIDE_DT_SERVICE_RESTRICTION":"Cluster Wide Deployment will have only one service", - "DEPENDENCY_EXIST_RESOURCE":"This Resource has dependency: '%s'", - "SOMETHING_WRONG": "Internal Error", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "MARSHAL_ERROR":"Error in marshaling '%s'", - "SCHEDULE_JOB":"Failed on scheduling job: '%s'", - "RESPONSE_FORMATTING":"Failed on formatting response: '%s'" - }, - "daemonset": { - "NAMING_CONVENTION":"'%s' violates the naming convention for daemonset. Allowed names should match (^[a-z][a-z0-9-]*[a-z0-9]$)", - "DAEMONSET_NOT_FOUND": "Requested Daemonset '%s' is not found", - "SERVICE_NOT_FOUND": "Requested Service '%s' is not found", - "ALREADY_EXIST":"Given Daemonset name '%s' is already in use", - "EMPTY_NODES": "Requested cluster %s does not have healthy nodes to deploy the template", - "MISSING_NODES": "Failed to fetch nodes for the cluster '%s' to validate deployment process", - "DEPLOYMENT_TEMPLATE_NOT_FOUND": "Requested Deployment Template '%s' is not found", - "INVALID_ACCESS_TYPE": "Given access type '%s' is invalid", - "PORT_VALIDATION": "Requested port '%s' is already in use", - "ALTERNATIVE_PORT_MISSING": "Alternative port for '%s' under service '%s' is not provided in the request", - "EMPTY_ALTERNATIVE_PORT": "Request does not contain an alternative port for '%s' to expose", - "UNSUPPORTED_UPDATE_TYPE": "Requested service '%s' does not support update operation", - "VERSION_NOT_FOUND": "Requested version '%s' is not available under the service '%s'", - "VOLUME_ALREADY_USED": "Warning : Volume '%s' is already used by service '%s'. Data stored in the disk will be erased permanently", - "VOLUME_ALREADY_INUSE": "Volume '%s' is currently in use by service '%s'. Please select a different volume", - "VOLUME_NOT_AVAILABLE": "Volume '%s' is not available. Please select a different volume" - }, - "deploymentTemplate":{ - "DT_NOTFOUND":"Requesting DeploymentTemplate '%s' is not found", - "INVALID_PAYLOAD":"Given Payload is invalid: ", - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "INVALID_DEPLOYMENTTEMPLATEID_FMT":"Requested deploymentTemplate id is invalid format '%s'", - "DEPLOYMENTTEMPLATE_NOTFOUND":"Requested Deployment Template '%s' is not found", - "DEPLOYMENTTEMPLATE_ALREADY_EXIST":"Requested Deployment Template '%s' already exist", - "DEPLOYMENTTEMPLATEHIST_NOTFOUND":"Requested Deployment Template '%s' is not found", - "SERVICEGROUPNAME_ALREADY_EXIST":"Given ServiceGroup name '%s' already used", - "SERVICEGROUP_MIN_COUNT_DELETION_":"Service Group Deletion action can't be performed, Deployment Template need atleast only one Service Group", - "UPDATETYPE_MISSING":"UpdateType field missing", - "FIELD_MISSING":"Required Field Missing '%s'", - "SERVICEGROUPS_ARRAY_MISSING":"Service Groups []Object '%s' is missing", - "SERVICE_OBJECT_MISSING":"Service object '%s' is missing", - "SERVICEGROUP_NAME_NOT_FOUND":"Requested Deployment Template Service Group '%s' is not found", - "SERVICE_NAME_NOT_FOUND":"Requesting Deployment Template Service ID '%s' not found in Service Group '%s'", - "SERVICE_NAME_CANNOTBE_DUPLICATE":"In Service Group '%s' Encountered duplication values of service name '%s'", - "SERVICEGROUP_PORTS_CANNOTBE_DUPLICATE":"In Service Group '%s' Encountered duplication values of port '%d'", - "SERVICE_MIN_COUNT_DELETION_":"Service Deletion action can't be performed, Service Group need atleast only one Service ", - "BUILD_OBJECT_MISSING":"Build object missing in service '%s'", - "PORT_MISMATCH":"Port Mismatching '%d'", - "DUPLICATE_SERVICE_PORT":"Ports can't be same in ServieGroup, Service Port '%d' already used in one of services in '%s'", - "MOUNT_PATH_MISMATCH":"Mount Path Mismatch between actual service '%s' and value in ServiceGroup '%s'", - "STORAGENAME_NOTFOUND":"Storage Name '%s' not found in StorageGroups", - "ACTUAL_SERVICE_NOT_HAVING_CONFIG":"You can't update Confgis in ServiceGroup '%s' because Actual Service '%s' does't contain any configs", - "ACTUAL_SERVICE_HAVING_CONFIG":"You can't delete Confgis in ServiceGroup '%s' because Actual Service '%s' contains configs", - "CYCLIC_DEPENDENCY":"Cyclic Dependency between ServiceGroup '%s' and '%s'", - "SG_VERSION_DRAFT":"Can't commit serviceGroup '%s' version as '%s'" - - }, - "serviceGroup":{ - "BUILD_OBJECT_MISSING":"Build object missing in service '%s'", - "SERVICEGROUP_NOTFOUND":"Requested Service Group '%s' is not found", - "SERVICEGROUP_ALREADY_EXIST":"Requested Service Group '%s' already exist", - "SERVICEGROUP_OBJECT_MISSING":"Service Group object '%s' is missing", - "SERVICE_OBJECT_MISSING":"Service object '%s' is missing", - "SERVICE_ARRAY_MISSING":"Service []Object '%s' is missing", - "SERVICEGROUPEHIST_NOTFOUND":"Requested ServiceGroup history '%s' with version '%s' is not found", - "SERVICEGROUP_PORTS_CANNOTBE_DUPLICATE":"In Service Group '%s' Encountered duplication values of port '%d'", - "UPDATETYPE_MISSING":"UpdateType field missing", - "STATELESSSCALINGPOLICY":": stateless for this ServiceGroupType ScalingPolicy is required", - "STATEFULSCALINGPOLICY":": stateful for this ServiceGroupType ScalingPolicy will not come", - "SCALINGRESTRICT":" can't attach ScalingPolicy for this serviceGroup '%s' because StorageGroup has PersistentVolume", - "PODDEPLOYMENTPOLICY":"pod for this ServiceGroupType deploymentPolicy will not come", - "INVALID_SERVICEGROUPID_FMT":"Requested serviceGroup id is invalid format '%s'", - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "MOUNT_PATH_MISMATCH":"Mount Path Mismatch between actual service '%s' and value in ServiceGroup '%s'", - "STORAGENAME_NOTFOUND":"Storage Name '%s' not found in StorageGroups", - "SERVICE_NAME_CANNOTBE_DUPLICATE":"In Service Group '%s' Encountered duplication values of service name '%s'", - "PORT_MISMATCH":"Port Mismatching '%d'", - "BUILD_IN_FAILED":"Build is in failed state", - "SERVICE_VERSION_DRAFT":"Can't commit service '%s' version as '%s'", - "SERVICE_CONFIG_VERSION":"Can't commit service '%s' config '%s' version as '%s'", - "PODAFFINITY_EXPRESSION":"Invalid Value for labelExpression operator: %s", - "PODAFFINITY_TOPOLOGYKEY":"Invalid topologyKey : %s", - "STORAGENAME_UNIQUE":"volumeLabel must contain unique values", - "SECURITYCONTEXT_NOT_ALLOWED":"securityContext runAsNonRoot is '%s' but the given runAsUser is '%s' root value" - }, - "All":{ - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "INVALID_ID":"Requested resource id '%s' is invalid format", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type" - }, - "App":{ - "APP_NOTFOUND":"Requested application '%s' is not found", - "APP_ALREADY_EXIST":"Requested application '%s' is already exist", - "NOT_IMPLEMENT":"This module has not been implemented", - "PAGESIZE_LESSONE":"Page or Size can not be less than one { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d'; Size should be less than '%d'", - "INVALID_CONFIGID_FMT":"Requesting config id is invalid formate '%s'", - "DONOT_MOD_FIELD":"You could not modify the field '%s' value after creation", - "CP_SETUP_FAILED":"Gopaddle setup failed with '%s'", - "ACTIVITY_NOTFOUND":"Requested application's activity '%s' is not found", - "INGRESS_NODEPORT_MISSING":"'accessInfo.httpNodePort' and 'accsessInfo.httpsNodePort' can not be nil if access info is nodeIPIngress", - - "//Volume configuration":"", - "VOLUME_MISSING":"Volume info is missing to the service group '%s'", - "HOSTVOL_MISSING":"Host volume is missing to the storage name '%s' in service group '%s'", - "PV_MISSING":"Persistent volume is missing to the storage name '%s' in service group '%s'", - "SVOLUME_MISSING":"Static volume is missing to the storage name '%s' in service group '%s'", - "USED_SVOLUME": "Volume '%s' is unavailable status '%s'. Please select a different volume", - "DUP_SVOLUME": "The Given request contains duplicate static volume informations '%s'", - "SC_MISSING": "Storage class is missing to the storage name '%s' in the service group '%s'", - "INVALID_SCALING":"Autosclaing Max replica '%d' is less than Deployment policy Replica '%d' in service group '%s'", - "REPLICA_IN_STATIC":"Replicas should be only one if the service group '%s' contains the static volume", - "REPLICA_IN_DYNAMIC":"Replicas should be only one if the service group '%s' contains the dynamic volume and also no stateful type", - "SCALING_IN_VOLUME":"Scaling relicas should be only one if the service group '%s' contains the persistence volume", - - "//NFS Provisioner":"", - - "DEPLOYMENTTEMPLATE_READ_ERROR":"There is a problem in reading deployment template", - "STORAGECLASS_READ_ERROR":"There is a problem in reading storage class", - "PROVISIONER_READ_ERROR":"There is a problem in reading provisioner", - - "//Port configuration":"", - "PORT_MISSING":"Port info is missing to the service group '%s'", - "EX_PORT_MISSING":"Expose port '%d' is null in the service group '%s.%s'", - "BOTH_PORT_OPTION":"The port '%d' can not be used both alternative port and ingress, in the service group '%s.%s'", - "INVALID_INGRESS_PATH":"We detected invalid path '%s' for port '%d', in the service group '%s.%s'", - "INVALID_PORT":"We detected invalid port '%d', in the service group '%s.%s'", - "INGRESS_PATH_MISSING":"Ingress path info '%s' is missing to the service group '%s.%s'", - "INGRESS_LBIP_MISSING":"LoadBalancerIp is missing for nginx ingress", - "INGRESS_ELB_MISSING":"ELB id is missing for nginx ingress", - - "//Update":"", - "TOOMANY_SG":"Update will run a Service Group at single time", - "INVALID_SG":"We detected invalid service group info in update call '%s'", - "TOOMANY_UPDATECALL":"Too many update request on the same application '%s'", - "APP_INAVALID_STATUS":"The application which is in '%s' state '%s' could not be updated", - "NON_SUPPORT_SGTYPE":"Non stateless service group '%s' will not support any update", - "REVISION_NULL":"The revision number can not be empty if update type is rollback in the service group '%s'", - "ALREADY_ROLLEDBACK_REVISION":"The given revision '%d' already rolledback in the service group '%s'", - "EXPIRED_REVISION":"The given revision '%d' is already expired in the service group '%s'", - "UPDATE_DESC_NULL":"The parameter 'serviceGroups[0].description' can not be empty", - "UPDATE_SCALING_NULL":"The parameter 'serviceGroups[0].ScalingPolicy' can not be empty", - "UPDATE_SERVICE_ID_NULL":"The parameter '%s' can not be empty", - "UPDATE_SERVICE_IMAGE_NULL":"The parametet '%s' can not be empty", - "UPDATE_RELEASE_CONFIG_NULL":"Release ID or Distribution ID cannot be empty", - "UPDATE_PODAFFINITY_EXPRESSIONS":"Invalid Value for labelExpression operator: %s", - "UPDATE_NODEAFFINITY_EXPRESSIONS":"Invalid Value for nodeExpression operator: %s", - - "//READ":"", - "INVALID_READTYPE":"We detected that invalid value '%s' for query field read-type", - "MISSING_READQUERY_FIELDS":"The query field '%s' can not be null if the read-type is '%s'", - "MISSING_READTYPE":"The query filed 'read-type' is missing", - - "MISSING_RESOURCEQUERY_FIELDS":"The query field '%s' can not be null if the resource-type is '%s'", - "INVALID_RESOURCETYPE":"We detected that invalid value '%s' for query field resource-type", - "MISSING_RESOURCETYPE":"The query filed 'resource-type' is missing", - - "//DEPENDENCY": "", - "DEPENDENCY_UPDATE_ERROR": "Couldnt update application dependency", - - "DEPLOYMENT_VERSION_ERROR":"Couldnt find the difference in deploymentTemplate", - - "BUILD_ID_MISSING":"The build version missing for a container '%s' in the serviceGroup '%s'.", - "RESPONSE_FORMATTING":"Failed on formatting application Response: '%s'", - "GETTING_RESPONSE":"failed on getting %s information %s", - - "SERVICE_GROUP_ALREADY_EXIST":"Requested service '%s' is already exist in this application '%s'", - - "//CONTAINER_ADD":"", - "STORAGENAME_NOT_FOUND":"StorageName '%s' not found in the serviceGroup '%s'", - "SERVICE_ALREADY_EXIST":"Requested container '%s' is already exist on the service '%s'", - "SERVICEGROUP_NOTFOUND":"Requested service '%s' is not found in application '%s'", - "SERVICE_NOTFOUND":"Requested container '%s' is not found in service '%s'", - "SERVICE_REQUIRED":"Container type '%s' is required in the service '%s'", - "BUILD_NOTFOUND":"Requested container '%s' build is not found for distribution '%s' in release '%s'", - "IMAGE_NOTFOUND":"Requested container '%s' image is not found for distribution '%s' in release '%s'", - - "POD_NOTSUPPORTED_UPDATED":"Requested update is not supported for pod. supported Update is buildUpdate and network", - "MICROK8S_DEFAULT_SC_NOTFOUND":"Failed default Storeageclass not equal to '%s' in microk8s", - "K3S_DEFAULT_SC_NOTFOUND":"Failed default Storeageclass not equal to '%s' in k3s", - "//SERVICEGROUP":"", - "SG_NOTFOUND":"Requested servicegroup '%s' is not found", - "ALB_DEPLOYMENT_NOT_FOUND":"Requested alb deployment not found in the cluster '%s'", - "ALB_POD_NOT_FOUND":"Requested alb pod not found in the cluster '%s'", - "ALB_POD_NOT_READY":"Requested alb pod not ready in the cluster '%s'", - "DOMAIN_ARN_NOT_FOUND":"Requested domain '%s' not contain the certificateARN", - "DOMAIN_ARN_NOT_FOUND_REGION": "Request domain '%s' not contain the certificateARN for region '%s' and cloudaccount '%s'", - "UPDATE_IMAGEPULL_POLICY_NOTVALID": "Request imagePullPolicy value is not valid.supported values are 'always','never','ifNotPresent'" - }, - "Metrics":{ - "MISSING_METRICSQUERY_FIELDS":"The query field '%s' can not be null if the metrics-type is '%s'", - "METRICS_NOTFOUND":"Requested projectID '%s' is not found" - - }, - "Topup":{ - "TOPUP_NOTFOUND":"Requested accountID '%s' is not found" - }, - "allocationPolicy":{ - "AP_NOTFOUND":"Requested Allocation Policy '%s' is not found", - "AP_ALREADY_EXIST":"Requested Allocation Policy '%s' already exists", - "INVALID_AP_FMT":"Requested service id is invalid format '%s'", - "PAGESIZE_NEGAVE":"Page or Size can not be a negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "CPU_LIMIT":"CPU value in millicore should be between '%d' and '%d'", - "MEMORY_M_LIMIT":"Memory values in MegaBytes should be between '%d' and '%d'", - "MEMORY_G_LIMIT":"Memory values in GigaBytes should be between '%d' and '%d'", - "MEMORY_SUFFIX":"Memory suffix should be one of 'E', 'P', 'T', 'G', 'M', 'K', 'Ei', 'Pi', 'Ti', 'Gi', 'Mi', 'Ki'.", - "CPU_SUFFIX":"CPU suffix should be 'm'", - "INVALID_QUANTITY":"Value of '%s' contains invalid character '%s'", - "MEMORY_QUANTITY":"Memory limit '%s' should be greater than Request '%s'", - "CPU_QUANTITY":"CPU limit '%s' should be greater than Request '%s'" - } - -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/helper.tpl b/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/helper.tpl deleted file mode 100644 index 9cf14fd52..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/helper.tpl +++ /dev/null @@ -1,11 +0,0 @@ -{{/* -Check ClusterRole Exist -*/}} -{{- define "gen.clusterrole" -}} -{{- $clusterrole := lookup "v1" "ClusterRole" "" "gopaddle:nginx-ingress-clusterrole" -}} -{{- if $clusterrole -}} - {{- printf "%s" true -}} -{{- else -}} - {{- printf "%s" false -}} -{{- end -}} -{{- end -}} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/internal_api.json deleted file mode 100644 index a1cea3848..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/internal_api.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "allAPI":{ - "readUserByID":"api/%s/user?organizationID=%s", - "readDomainByID":"api/%s/domain/%s?organizationID=%s", - "readConfigByName":"api/%s/config/%s?organizationID=%s", - "readServiceByName":"api/%s/service?organizationID=%s&operation=ReadByName&svcName=%s", - "readServiceGroupByID":"api/%s/v1/serviceGroup/%s", - "readServiceGroupByVersion":"api/%s/v1/%s/serviceGroup/%s/version/%s", - "readServiceGroupByTags":"api/%s/v1/%s/serviceGroup/%s/version?%s", - "updateServiceGroupDependencyRef":"api-internal/%s/v1/%s/serviceGroup/%s/version/%s", - "readBuildVersionByBuildID":"api/%s/v1/%s/build/%s", - "readBuildVersionByTags":"api/%s/v1/%s/build?%s", - "readIngressByID":"api/%s/ingress/%s?organizationID=%s", - "readProfileByID":"api/%s/profile/%s?organizationID=%s", - "readAllocationPolicyByID":"api/%s/v1/%s/allocationPolicy/%s", - "readVolumeClaimPolicyByID":"api/%s/%s/volumeClaimPolicy/%s?organizationID=%s", - "readVolumeByID":"api/%s/volume/%s?organizationID=%s", - "readKubeByID":"api/%s/kube/%s?organizationID=%s", - "readBuildByVersion":"api/%s/build/%s?organizationID=%s&operation=forDeployment", - "readRegistryByID":"api/%s/registry/%s?organizationID=%s&operation=accessToken&provider=%s", - "Updated":"updated", - "readScalingPolicyByID":"api/%s/v1/%s/scalingPolicy/%s", - "readDeploymentPolicyByID":"api/%s/v1/%s/deploymentPolicy/%s", - "readNetworkPolicyByID":"api/%s/v1/%s/networkpolicy/%s", - "readServiceByID":"api/%s/v1/%s/service/%s", - "updateScalingPolicyDependencyRef":"api-internal/%s/v1/%s/scalingPolicy/%s", - "updateDeploymentPolicyDependencyRef":"api-internal/%s/v1/%s/deploymentPolicy/%s", - "updateNetworkPolicyDependencyRef":"api-internal/%s/v1/%s/networkpolicy/%s", - "updateVolumeClaimPolicyDependencyRef":"api-internal/%s/%s/volumeClaimPolicy/%s", - "updateServiceDependencyRef":"api-internal/%s/v1/%s/service/%s/%s", - "updateAllocationPolicyDependencyRef":"api-internal/%s/v1/%s/allocationPolicy/%s", - "readServiceVersionByID":"api/%s/v1/%s/service/%s/version/%s", - "readServiceVersionByTags":"api/%s/v1/%s/service/%s/version?%s", - "readConfigVersionByID":"api/%s/v1/%s/config/%s/version/%s" - }, - "acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s&project=%s", - "port":"8005" - }, - "aclProject":{ - "url":"http://%s:%s/api-in/%s/v1/acl?project=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api-in/%s/v1/subusers/%s", - "port":"8005" - }, - "project":{ - "url":"http://%s:%s/api-internal/%s/v1/projectlist", - "port":"8005" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/profiles-kube.json deleted file mode 100644 index 0f3bb1891..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/profiles-kube.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "group":{ - "workerInterval":10 - }, - "mongodb":{ - "db-name":"deploymentmanager", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - }, - "rabbitmq":{ - "mq-protocol":"amqp", - "mq-user":"admin", - "mq-password":"cGFzc3dvcmQ", - "mq-ip":"rabbitmq", - "mq-port":"5672", - "mq-apps-host":"/apps", - "mq-apps-queue":"apps-worker-queue" - }, - "esearch":{ - "es-user":"elastic", - "es-password":"cGFzc3dvcmQ", - "es-endpoints":[ - "http://esearch:9200" - ] - }, - "gopaddleTools":{ - "prometheus":{ - "gatewayEndpoint":"NODE_IP", - "gatewayAPI":"/api/%s/v1/application/datacollector/datapoint", - "influxDBs":{ - "influxDB-1":{ - "dbEndpoint":"http://influxdb:8086", - "dbUser":"admin", - "dbPassword":"cGFzc3dvcmQ", - "maxUserCount":"100", - "isEnabled":true - } - } - }, - "eventHandler":{ - "gatewayEndpoint":"NODE_IP", - "gatewayAPI":"/api/%s/v1/application/datacollector/eventhandler" - } - }, - "deploymentTemplateIconDirectory":{ - "iconDirectory":"/iconPath/%s/deploymentTemplate/", - "iconAPI":"/v1/deploymentTemplate/icon/%s" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/service_directory-kube.json deleted file mode 100644 index cf0d16f3e..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/service_directory-kube.json +++ /dev/null @@ -1,94 +0,0 @@ -{ - "builder.ep":{ - "host":"gpcore", - "port":"8759" - }, - "core.ep": { - "host": "gpcore", - "port": "8759" - }, - "configmanager.ep":{ - "host":"configmanager", - "port":"8001" - }, - "clustermanager.ep": { - "host": "clustermanager", - "port": "8013" - }, - "domainmanager.ep":{ - "host":"domainmanager", - "port":"8004" - }, - "deploymentmanager.ep":{ - "host":"deploymentmanager", - "port":"8003" - }, - "platform.ep": { - "host": "cloudmanager", - "port": "8018" - }, - "registry.ep": { - "host": "cloudmanager", - "port": "8018" - }, - "policy.ep":{ - "host":"configmanager", - "port":"8001" - }, - "user.ep":{ - "host":"usermanager", - "port":"8005" - }, - "notification.ep":{ - "host":"activitymanager", - "port":"8009" - }, - "deploymenttmpl.ep":{ - "host":"deploymentmanager", - "port":"8003" - }, - "servicegroup.ep":{ - "host": "deploymentmanager", - "port": "8003" - }, - "service.ep":{ - "host":"configmanager", - "port":"8001" - }, - "serviceGroup.ep":{ - "host": "deploymentmanager", - "port": "8003" - }, - "config.ep":{ - "host":"configmanager", - "port":"8001" - }, - "gateway.ep":{ - "host":"gateway", - "port":"8006" - }, - "nodechecker.ep":{ - "host":"nodechecker", - "port":"8020" - }, - "billing.ep":{ - "host":"costmanager", - "port":"8011" - }, - "usermanager.ep":{ - "host": "usermanager", - "port": "8005" - }, - "alertmanager.ep":{ - "host": "alertmanager", - "port": "8012" - }, - "release.ep":{ - "host": "gpcore", - "port": "8759" - }, - "cloudaccount.ep":{ - "host":"cloudmanager", - "port":"8018" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/validation.json b/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/validation.json deleted file mode 100644 index c66fc22d3..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/validation.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "application": { - "expectedFields": [ - "name", - "clusterID", - "deploymentTemplateID", - "accessType" - ] - }, - "daemonset": { - "expectedFields": [ - "name", - "clusterID", - "deploymentTemplateID" - ] - }, - "deploymentTemplate": { - "expectedFields": [ - "name", - "services" - ], - "expectedFields_service": [ - "id" - ] - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/versionMatrix.json b/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/versionMatrix.json deleted file mode 100644 index 74aff57bc..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/deploymentmanager/deploymanager/versionMatrix.json +++ /dev/null @@ -1,1792 +0,0 @@ -{ - "supportedVersions": [ - "v1.6", - "v1.7", - "v1.8", - "v1.9", - "v1.10", - "v1.11", - "v1.12", - "v1.13", - "v1.14", - "v1.15", - "v1.16", - "v1.17", - "v1.18", - "v1.19", - "v1.20", - "v1.21", - "v1.22", - "v1.23", - "v1.24", - "v1.25", - "v1.26", - "v1.27" - ], - "v1.6": { - "deployment": [ - "apps/v1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.7": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.8": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.9": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.10": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.11": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.12": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.13": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.14": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.15": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.16": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.17": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.18": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.19": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.20": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.21": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.22": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.23": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.24": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.25": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.26": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - }, - "v1.27": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "apps/v1", - "extensions/v1beta1" - ], - "controllerRevision": [ - "apps/v1", - "apps/v1beta1", - "apps/v1beta2" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1", - "networking.k8s.io/v1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ], - "CustomResourceDefinition":[ - "apiextensions.k8s.io/v1beta1" - ], - "CustomConfigMap":[ - "configurator.gopaddle.io/v1alpha1" - ], - "CustomSecret":[ - "configurator.gopaddle.io/v1alpha1" - ] - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/error_config.json deleted file mode 100644 index 4579f7f97..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/error_config.json +++ /dev/null @@ -1,49 +0,0 @@ -{ - "design":{ - "DESIGN_NOT_FOUND":"Requested design is not found", - "ALREADY_EXIST":"Resource name '%s' already exists. Try using a different name.", - "NAMING_CONVENTION":"'%s' violates the naming convention for design or component. Allowed names should match (^[a-z][a-z0-9-]*[a-z0-9]$)", - "INVALID_OPERATION":"Invalid operation '%s'", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "CYCLIC_LINK":"Cyclic reference is not allowed", - "COMPONENT_NOT_FOUND":"Requested component is not found", - "UNABLE_MODIFY_TYPE":"Unable to delete or modify the component '%s'", - "INVALID_DATA":"Invalid source control project '%s'", - "ENV_ERROR":"Unsupported platform", - "PORT_VALIDATION":"Invalid port format '%s. Allowed ports 1 to 65535", - "MISSING_SCRIPT":"'%s' input is missing in component '%s'", - "NULL_VALUE":"'%s' cannot be empty", - "UNSUPPORTED_FILE":"Given input file format is not supported. Supported formats are TXT, ZIP, TARZ", - "CODE_PUSH":"Publish design failed. Failed to push the service artifacts to source control", - "DESIGN_UPDATE":"Design '%s' update failed", - "TAG_CONVENTION":"Malformed JSON or tag validation failed '%s'. Allowed tags ^[a-zA-Z-_]+(,[a-zA-Z0-9-_]+)*", - "COMPONENT_PENDING":"Component '%s' has some missing mandatory fields", - "COMPONENT_NOT_LINKED":"Component '%s' is not linked", - "SVC_TYPE_MODIFY":"Cannot modify '%s' in service '%s'", - "ROOT_MORE_LINK":"Root node doesn't have more than one link", - "SELF_LINK":"Cannot link component '%s' to itself", - "ALREADY_LINKED":"Cannot link from component '%d' to component '%d'", - "REPO_HANDLE_PATH":"Repository Url '%s' cannot be validated with account '%s'", - "IP_VALIDATION":"Invalid IP Address '%s'", - "SCALE_VALIDATION":"Deployments attributes for '%s' is missing. Allowed values ([0-9]+)", - "UNSUPPORTED_DATA":"Invalid data '%s'; Supported data are [%s]", - "INVALID_AUTO_FACT":"Malformed JSON or Invalid autoscale factor '%s'", - "ALREADY_SCHEDULED":"Publish design '%s' is already in progress", - "REGISTRY_ADD":"Please Select Registry for this Design" - }, - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "RESOURCE_NOT_FOUND_WITHOUT_NAME":"Resource does not exit", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "SOMETHING_WRONG":"Something went wrong", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "INVALID_TYPE":"Token type is invalid", - "INVALID_SCOPE":"Token scope is invalid", - "LIMIT_EXCEED":"Token Creation Limit Exceed" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/internal_api.json deleted file mode 100644 index 6b16848e9..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/internal_api.json +++ /dev/null @@ -1,18 +0,0 @@ -{ -"acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s&project=%s", - "port":"8005" - }, - "aclProject":{ - "url":"http://%s:%s/api-in/%s/v1/acl?project=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api-in/%s/v1/subusers/%s", - "port":"8005" - }, - "project":{ - "url":"http://%s:%s/api-internal/%s/v1/projectlist", - "port":"8005" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/log_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/log_config.json deleted file mode 100644 index 72390d795..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/log_config.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "formatters": { - "domainmanager": { - "format": "%(asctime)s %(levelname)s (%(filename)s:%(lineno)d) %(message)s", - "datefmt": "%Y-%m-%d %H:%M:%S" - } - }, - "handlers": { - "domainmanager": { - "class": "RotatingFileHandler", - "filepath": "./domainmanager.log", - "mode": "O_APPEND", - "bufferSize": 0, - "bufferFlushTime": 30000, - "inputChanSize": 1, - "maxBytes": 104857600, - "backupCount": 9, - "formatter": "domainmanager" - } - }, - "loggers": { - "debug": { - "level": "DEBUG", - "handlers": [ - "domainmanager" - ] - }, - "info": { - "level": "INFO", - "handlers": [ - "domainmanager" - ] - }, - "warn": { - "level": "WARN", - "handlers": [ - "domainmanager" - ] - }, - "error": { - "level": "ERROR", - "handlers": [ - "domainmanager" - ] - }, - "fatal": { - "level": "FATAL", - "handlers": [ - "domainmanager" - ] - } - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/profiles-kube.json deleted file mode 100644 index 199c2b097..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/profiles-kube.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "mongodb": - { - "db-name": "domainmanager", - "db-endpoint": [ - "mongodb:27017" - ], - "db-port": "27017", - "user-db": "admin", - "db-user": "admin", - "db-password": "cGFzc3dvcmQ" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - }, - "logger":{ - "logType":"debug" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/service_directory-kube.json deleted file mode 100644 index 39071fe3c..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/domainmanager/domainmanager/service_directory-kube.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "license.ep": { - "host": "gpcore", - "port": "8759" - }, - "transaction.ep": { - "host": "gpcore", - "port": "8759" - }, - "nodechecker.ep": { - "host":"nodechecker", - "port":"8020" - }, - "usermanager.ep":{ - "host": "usermanager", - "port": "8005" - }, - "clustermanager.ep":{ - "host": "clustermanager", - "port": "8013" - }, - "cloudmanager.ep":{ - "host": "cloudmanager", - "port": "8018" - } - -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/esearch/esearch/esearch.sh b/charts/gopaddle/gopaddle/charts/gp-core/files/esearch/esearch/esearch.sh deleted file mode 100644 index 92a18edbf..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/esearch/esearch/esearch.sh +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/bash -set -x -chown elasticsearch:elasticsearch /usr/share/elasticsearch/data -echo "node.local: true" >> /etc/elasticsearch/elasticsearch.yml -/usr/bin/java -Xms256m -Xmx1g -Djava.awt.headless=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -XX:+DisableExplicitGC -Dfile.encoding=UTF-8 -Delasticsearch -Des.foreground=yes -Des.path.home=/usr/share/elasticsearch -cp :/usr/share/elasticsearch/lib/elasticsearch-1.7.3.jar:/usr/share/elasticsearch/lib/*:/usr/share/elasticsearch/lib/sigar/* org.elasticsearch.bootstrap.Elasticsearch > esearch.log -tail -f esearch.log diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/error_config.json deleted file mode 100644 index 7ab583fe0..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/error_config.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE": "Internal Error; (Failed to store data)", - "DATA_RETRIVE": "Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER": "Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR": "Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND": "Resource '%s' does not exist", - "ERROR_HITTING_EXT_API": "Unable to communicate with external resources", - "SOMETHING_WRONG": "Something went wrong", - "ALREADY_EXIST": "'%s' already exists", - "MISSING_FIELD": "Invalid input or missing mandatory field '%s'" - }, - "user":{ - "EMAIL_ALREADY_EXISTS": "Email already exists. Sign in to continue", - "INVALID_EMAIL": "Given email id is invalid. Please enter a valid email id.", - "PASSWORD_DECRYPTION": "Failed in password decryption", - "PASSWORD_STRENGTH": "Password length should be between 8-16 characters and should contain atleast 1 alphabet, 1 number and 1 special character", - "INCORRECT_USER": "Incorrect username. Please try again.", - "INCORRECT_PASSWORD": "Incorrect password. Please try again.", - "ACCOUNT_UNVERIFIED": "Please verify your account" - }, - "mail":{ - "INVALID_EMAIL_CODE": "Given mail verification code is invalid", - "INVALID_PHONE_CODE": "Given phone verification code is invalid", - "EXPIRED_EMAIL_CODE": "Given mail verification code has already expired", - "EXPIRED_PHONE_CODE": "Given phone verification code has already expired" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/log_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/log_config.json deleted file mode 100644 index 877f72d04..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/log_config.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "formatters": { - "gateway": { - "format": "%(asctime)s %(levelname)s (%(filename)s:%(lineno)d) %(message)s", - "datefmt": "%Y-%m-%d %H:%M:%S" - } - }, - "handlers": { - "gateway": { - "class": "RotatingFileHandler", - "filepath": "./gateway.log", - "mode": "O_APPEND", - "bufferSize": 0, - "bufferFlushTime": 30000, - "inputChanSize": 1, - "maxBytes": 104857600, - "backupCount": 9, - "formatter": "gateway" - } - }, - "loggers": { - "debug": { - "level": "DEBUG", - "handlers": [ - "gateway" - ] - }, - "info": { - "level": "INFO", - "handlers": [ - "gateway" - ] - }, - "warn": { - "level": "WARN", - "handlers": [ - "gateway" - ] - }, - "error": { - "level": "ERROR", - "handlers": [ - "gateway" - ] - }, - "fatal": { - "level": "FATAL", - "handlers": [ - "gateway" - ] - } - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/profiles-kube.json deleted file mode 100644 index 0fa6bb228..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/profiles-kube.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "mongodb":{ - "db-name":"deploy_test", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"JD72KDTJhLhfT7h4" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - }, - "signup-url":"NODE_IP", - "proxy":{ - "helm":"http://deploymentmanager:8003", - "marketplace":"http://marketplace:8023", - "costusage":"http://costmanager:8011", - "userProfile":"http://usermanager:8005", - "build":"http://gpcore:8759", - "codebase":"http://gpcore:8759", - "default":"http://usermanager:8005", - "template":"http://159.89.201.101:8002", - "domain":"http://domainmanager:8004", - "profile":"http://configmanager:8001", - "user":"http://usermanager:8005", - "users":"http://usermanager:8005", - "signup":"http://usermanager:8005", - "signin":"http://usermanager:8005", - "signout":"http://usermanager:8005", - "deploymentTemplate":"http://deploymentmanager:8003", - "application":"http://deploymentmanager:8003", - "volumeClaimPolicy":"http://configmanager:8001", - "volume":"http://configmanager:8001", - "config":"http://configmanager:8001", - "service":"http://configmanager:8001", - "serviceGroup":"http://deploymentmanager:8003", - "deploymentPolicy":"http://configmanager:8001", - "provisioner":"http://configmanager:8001", - "scalingPolicy":"http://configmanager:8001", - "allocationPolicy":"http://configmanager:8001", - "storageClass":"http://configmanager:8001", - "networkpolicy":"http://configmanager:8001", - "goproxy":"http://kube.gopaddle.io:8080", - "activity":"http://activitymanager:8009", - "rule":"http://alertmanager:8012", - "notification":"http://alertmanager:8012", - "cluster":"http://clustermanager:8013", - "noauth":"http://usermanager:8005", - "acl":"http://usermanager:8005", - "subusers":"http://usermanager:8005", - "containerShell":"http://deploymentmanager:8017", - "resentPhoneVerifyCode":"http://usermanager:8005", - "userPhoneVerify":"http://usermanager:8005", - "usersignin":"http://usermanager:8005", - "subscription":"http://costmanager:8011", - "cloudaccount":"http://cloudmanager:8018", - "registry":"http://cloudmanager:8018", - "cloudauth":"http://cloudmanager:8018", - "license":"http://usermanager:8005", - "billing":"http://costmanager:8011", - "stripe":"http://paymentmanager:8021", - "adminLogin":"http://appscanner:8022", - "customer":"http://paymentmanager:8021", - "offers":"http://costmanager:8011", - "userOffers":"http://costmanager:8011", - "appscanner":"http://appscanner:8022", - "terraform":"http://clustertemplatemanager:8050", - "project":"http://usermanager:8005", - "release":"http://gpcore:8759", - "codebaseAcceptor":"http://gpcore:8759", - "codebaseRequestor":"http://gpcore:8759", - "cdelivery":"http://gpcore:8759", - "buildScanList":"http://gpcore:8759", - "clusterMetrics":"http://clustermanager:8013", - "serviceMetrics":"http://deploymentmanager:8003", - "buildMetrics":"http://gpcore:8759", - "volumeMetrics":"http://configmanager:8001", - "albCluster":"http://clustermanager:8013", - "buildStat":"http://gpcore:8759", - "applicationList":"http://deploymentmanager:8003", - "releaseList":"http://gpcore:8759", - "servicePort":"http://deploymentmanager:8003", - "averageBuildDuration":"http://gpcore:8759", - "alert":"http://alertmanager:8012", - "gpctlActivity":"http://activitymanager:8009", - "subnetList":"http://clustermanager:8013", - "subnet":"http://clustermanager:8013", - "series":"http://activitymanager:8009", - "quickstart":"http://quickstart:8002", - "discover":"http://appscanner:8022", - "recursiveDelete":"http://configmanager:8001" - }, - "jwt_params":{ - "PrivateKeyPath":"/settings/keys/private_key", - "PublicKeyPath":"/settings/keys/public_key.pub", - "JWTExpirationDelta":"1" - }, - "logger":{ - "logType":"debug" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/service_directory-kube.json deleted file mode 100644 index d2d5c40e0..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/service_directory-kube.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "license.ep": { - "host": "gpcore", - "port": "8759" - }, - "transaction.ep": { - "host": "gpcore", - "port": "8759" - }, - "usermanager.ep":{ - "host":"usermanager", - "port":"8005" - }, - "nodechecker.ep": { - "host":"nodechecker", - "port":"8020" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/validation.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/validation.json deleted file mode 100644 index ed0ed34bc..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gateway/gateway/validation.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "user": { - "expectedFields": [ - "name", - "emailID", - "password", - "phone", - "country" - ] - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/cft_aws_kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/cft_aws_kube.json deleted file mode 100644 index 03f0aef4d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/cft_aws_kube.json +++ /dev/null @@ -1,1859 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "KubernetesMasterName": { - "Default": "KUBEMASTER_NAME", - "Description": "Enter the name for Kubernetes Master", - "Type": "String", - "MinLength": "1", - "MaxLength": "64", - "AllowedPattern": "[a-zA-Z][a-zA-Z0-9]*", - "ConstraintDescription": "must begin with a letter and contain only alphanumeric characters." - }, - "KubernetesMinionsName": { - "Default": "KubeMinion", - "Description": "Enter the name for Kubernetes Minion", - "Type": "String", - "MinLength": "1", - "MaxLength": "64", - "AllowedPattern": "[a-zA-Z][a-zA-Z0-9]*", - "ConstraintDescription": "must begin with a letter and contain only alphanumeric characters." - }, - "MinionsCount": { - "Default": "MINIONS_COUNT", - "Type": "Number", - "MinValue": "1", - "Description": "Enter the number of Minions you want to create(Default Maximum scaling size is 10):" - }, - "MasterInstanceType": { - "Description": "Enter the instance size for Kubernetes Master", - "Type": "String", - "Default": "MASTER_INSTANCE_TYPE", - "AllowedValues": [ - "t2.nano", - "t2.micro", - "t2.small", - "t2.large", - "t2.medium", - "t2.large", - "m4.large", - "m4.xlarge", - "m3.medium", - "m3.large", - "m3.xlarge" - ], - "ConstraintDescription": "Select EC2 Instance Type from list." - }, - "MinionsInstanceType": { - "Description": "Enter the instance size for Kubernetes Minions", - "Type": "String", - "Default": "MINION_INSTANCE_TYPE", - "AllowedValues": [ - "t2.nano", - "t2.micro", - "t2.small", - "t2.large", - "t2.medium", - "t2.large", - "m4.large", - "m4.xlarge", - "m3.medium", - "m3.large", - "m3.xlarge" - ], - "ConstraintDescription": "Select EC2 Instance Type from list." - }, - "KeyPair": { - "Default": "PUBLIC_KEY", - "Description": "Select the KeyPair(For both Master and Minions)", - "Type": "AWS::EC2::KeyPair::KeyName", - "ConstraintDescription": "Can contain only ASCII characters." - } - }, - "Mappings": { - "RegionMap": { - "us-east-1": { - "masterImage": "ami-d14cefc7", - "nodeImage": "ami-3825852e" - }, - "us-east-2": { - "masterImage": "ami-44725621", - "nodeImage": "ami-07775362" - }, - "us-west-1": { - "masterImage": "ami-feb6ef9e", - "nodeImage": "ami-ce81d8ae" - }, - "us-west-2": { - "masterImage": "ami-9c6de2fc", - "nodeImage": "ami-44ad2224" - }, - "ca-central-1": { - "masterImage": "ami-4557ea21", - "nodeImage": "ami-c35ae7a7" - }, - "eu-west-1": { - "masterImage": "ami-a0281dc6", - "nodeImage": "ami-359db753" - }, - "eu-central-1": { - "masterImage": "ami-1e9c4b71", - "nodeImage": "ami-f877a397" - }, - "eu-west-2": { - "masterImage": "ami-d09287b4", - "nodeImage": "ami-e7918483" - }, - "ap-southeast-1": { - "masterImage": "ami-4765d624", - "nodeImage": "ami-5c83303f" - }, - "ap-southeast-2": { - "masterImage": "ami-639f9d00", - "nodeImage": "ami-9e8785fd" - }, - "ap-northeast-2": { - "masterImage": "ami-c8895aa6", - "nodeImage": "ami-2f825141" - }, - "ap-northeast-1": { - "masterImage": "ami-95cb9bf2", - "nodeImage": "ami-db7121bc" - }, - "ap-south-1": { - "masterImage": "ami-6ba3d304", - "nodeImage": "ami-a8bfcfc7" - }, - "sa-east-1": { - "masterImage": "ami-de5d3cb2", - "nodeImage": "ami-7048291c" - } - } - }, - "Conditions": { - "RegionIsUsEast1": { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - "RegionIsUsGovWest1": { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-gov-west-1" - ] - } - }, - "Resources": { - "MasterRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "ec2.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - }, - "Path": "/" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "062b2a90-29bd-4e7f-8512-2b9d87cd50ac" - } - } - }, - "MasterRolePolicies": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "kubernetes-master", - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "ec2:*" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": [ - "elasticloadbalancing:*" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": "s3:*", - "Resource": [ - "arn:aws:s3:::kubernetes-*" - ] - }, - { - "Effect": "Allow", - "Action": [ - "autoscaling:Describe*", - "cloudwatch:*", - "logs:*", - "sns:*" - ], - "Resource": "*" - }, - { - "Effect": "Allow", - "Action": [ - "autoscaling:*" - ], - "Resource": [ - "*" - ] - } - ] - }, - "Roles": [ - { - "Ref": "MasterRole" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "1660e688-e775-4dcd-809f-ce55b2d8b03d" - } - } - }, - "MasterInstanceProfile": { - "Type": "AWS::IAM::InstanceProfile", - "Properties": { - "Path": "/", - "Roles": [ - { - "Ref": "MasterRole" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "d9051f55-2638-4223-a528-f6bd637d69ce" - } - } - }, - "MinionsRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "ec2.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - }, - "Path": "/" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "34cc30af-a656-4bdf-985e-1cce4c861d0a" - } - } - }, - "MinionsRolePolicies": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "kubernetes-minion", - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": "s3:*", - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": "ec2:Describe*", - "Resource": "*" - }, - { - "Effect": "Allow", - "Action": "ec2:AttachVolume", - "Resource": "*" - }, - { - "Effect": "Allow", - "Action": "ec2:DetachVolume", - "Resource": "*" - }, - { - "Effect": "Allow", - "Action": [ - "autoscaling:TerminateInstanceInAutoScalingGroup" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": [ - "autoscaling:Describe*", - "cloudwatch:*", - "logs:*", - "sns:*" - ], - "Resource": "*" - } - ] - }, - "Roles": [ - { - "Ref": "MinionsRole" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "f8ac3cb8-a0c7-4c09-aa17-7cbc5b714b14" - } - } - }, - "MinionsInstanceProfile": { - "Type": "AWS::IAM::InstanceProfile", - "Properties": { - "Path": "/", - "Roles": [ - { - "Ref": "MinionsRole" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "34090e53-04bc-4369-b851-83b599731685" - } - } - }, - "vpcc54420a1": { - "Type": "AWS::EC2::VPC", - "DeletionPolicy": "Delete", - "Properties": { - "CidrBlock": "172.20.0.0/16", - "InstanceTenancy": "default", - "EnableDnsSupport": "true", - "EnableDnsHostnames": "true", - "Tags": [ - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - }, - { - "Key": "Name", - "Value": "kubernetes-vpc" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "8dba90ed-bf34-433f-a7d9-ab8517543adb" - } - } - }, - "subnet1c9c0378": { - "Type": "AWS::EC2::Subnet", - "Properties": { - "CidrBlock": "172.20.0.0/24", - "AvailabilityZone": { - "Fn::Select": [ - "0", - { - "Fn::GetAZs": "" - } - ] - }, - "VpcId": { - "Ref": "vpcc54420a1" - }, - "Tags": [ - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "b6097bd5-5202-44b7-bff0-21e6c17648f8" - } - } - }, - "igw20b4ac45": { - "Type": "AWS::EC2::InternetGateway", - "Properties": {}, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "f713e70c-1a4d-4680-b4a2-f7b85e7458cc" - } - } - }, - "doptbe33a7db": { - "Type": "AWS::EC2::DHCPOptions", - "Properties": { - "DomainName": { - "Fn::If": [ - "RegionIsUsEast1", - "ec2.internal", - { - "Fn::Join": [ - "", - [ - { - "Ref": "AWS::Region" - }, - ".compute.internal" - ] - ] - } - ] - }, - "DomainNameServers": [ - "AmazonProvidedDNS" - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "acf8dcff-cfab-4941-a7de-9b8e445ae526" - } - } - }, - "aclc90371ad": { - "Type": "AWS::EC2::NetworkAcl", - "Properties": { - "VpcId": { - "Ref": "vpcc54420a1" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "6959c47d-40ad-410b-941f-8b5a5ef18e28" - } - } - }, - "rtb349ed450": { - "Type": "AWS::EC2::RouteTable", - "Properties": { - "VpcId": { - "Ref": "vpcc54420a1" - }, - "Tags": [ - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "9e8c941e-b4aa-4474-b2a4-7951635e0175" - } - } - }, - "asgkubernetesminiongroup": { - "Type": "AWS::AutoScaling::AutoScalingGroup", - "Properties": { - "Cooldown": "600", - "DesiredCapacity": { - "Ref": "MinionsCount" - }, - "HealthCheckGracePeriod": "0", - "HealthCheckType": "EC2", - "MaxSize": "5", - "MinSize": { - "Ref": "MinionsCount" - }, - "VPCZoneIdentifier": [ - { - "Ref": "subnet1c9c0378" - } - ], - "LaunchConfigurationName": { - "Ref": "lckubernetesminiongroup" - }, - "Tags": [ - { - "Key": "KubernetesCluster", - "Value": "kubernetes", - "PropagateAtLaunch": true - }, - { - "Key": "Name", - "Value": { - "Ref": "KubernetesMinionsName" - }, - "PropagateAtLaunch": true - }, - { - "Key": "Role", - "Value": "kubernetes-minion", - "PropagateAtLaunch": true - } - ], - "TerminationPolicies": [ - "NewestInstance" - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "5df835e4-67ed-4967-8841-67a5de2b9cf4" - } - } - }, - "ScaleUpPolicy": { - "Type": "AWS::AutoScaling::ScalingPolicy", - "Properties": { - "AdjustmentType": "ChangeInCapacity", - "AutoScalingGroupName": { - "Ref": "asgkubernetesminiongroup" - }, - "ScalingAdjustment": "1" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "44a31cce-3c69-4cb3-bac2-2bf8fbf0604b" - } - } - }, - "ScaleDownPolicy": { - "Type": "AWS::AutoScaling::ScalingPolicy", - "Properties": { - "AdjustmentType": "ChangeInCapacity", - "AutoScalingGroupName": { - "Ref": "asgkubernetesminiongroup" - }, - "ScalingAdjustment": "-1" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "a190ec41-22f1-4585-bf34-2b1fe903485f" - } - } - }, - "scaleUpMemUtili": { - "Type": "AWS::AutoScaling::ScalingPolicy", - "Properties": { - "AdjustmentType": "ChangeInCapacity", - "AutoScalingGroupName": { - "Ref": "asgkubernetesminiongroup" - }, - "ScalingAdjustment": "1" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "44a31cce-3c69-4cb3-bac2-2bf8fbf0604b" - } - } - }, - "scaleDownMemUtili": { - "Type": "AWS::AutoScaling::ScalingPolicy", - "Properties": { - "AdjustmentType": "ChangeInCapacity", - "AutoScalingGroupName": { - "Ref": "asgkubernetesminiongroup" - }, - "ScalingAdjustment": "-1" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "a190ec41-22f1-4585-bf34-2b1fe903485f" - } - } - }, - "lckubernetesminiongroup": { - "Type": "AWS::AutoScaling::LaunchConfiguration", - "Properties": { - "IamInstanceProfile": { - "Ref": "MinionsInstanceProfile" - }, - "AssociatePublicIpAddress": true, - "ImageId": { - "Fn::FindInMap": [ - "RegionMap", - { - "Ref": "AWS::Region" - }, - "nodeImage" - ] - }, - "InstanceType": { - "Ref": "MinionsInstanceType" - }, - "KeyName": { - "Ref": "KeyPair" - }, - "InstanceMonitoring": "true", - "SecurityGroups": [ - { - "Ref": "sgkubernetesminionkubernetes" - } - ], - "BlockDeviceMappings": [ - { - "DeviceName": "/dev/sda1", - "Ebs": { - "VolumeSize": 50 - } - }, - { - "VirtualName": "ephemeral3", - "DeviceName": "/dev/sdf" - }, - { - "VirtualName": "ephemeral2", - "DeviceName": "/dev/sde" - }, - { - "VirtualName": "ephemeral0", - "DeviceName": "/dev/sdc" - }, - { - "VirtualName": "ephemeral1", - "DeviceName": "/dev/sdd" - } - ], - "UserData": { - "Fn::Base64": { - "Fn::Join": [ - "", - [ - "#!/bin/bash -x \n", - "pid=`ps -ax | grep apt | awk '{ print $1 }'` \n", - "kill -9 $pid \n", - "apt-get update\n", - "apt-get install awscli -y\n", - "# Node monitoring and ScaleDown script \n", - "cd /opt/\n", - "wget https://s3-us-west-2.amazonaws.com/bluemeric-bucket/kubernetes-bucket/v1.5.3/minionsMonitoringAndScaleDown.sh\n", - "sed -i 's/KUBE_MASTER_PASSWORD/REPLACE_MASTER_PASSWORD/g' minionsMonitoringAndScaleDown.sh\n", - "sleep 15\n", - "bash minionsMonitoringAndScaleDown.sh\n", - "echo \"*************************Node monitoring and ScaleDown script Finished\"\n", - "# Kubeadm - Joining your nodes with master \n", - "kubeadm join --token=qwerty.asdfghjklmnbvcxz 172.20.0.9 \n", - "wget https://s3-us-west-2.amazonaws.com/bluemeric-bucket/kubernetes-bucket/setPassword.sh -P /opt/ \n", - "bash -x /opt/setPassword.sh \n", - "# Shell Access1 \n", - "# Shell Access2 \n", - "echo \"*************************Script Finished\"\n" - ] - ] - } - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "01c4d03f-bbaf-4d9f-81c2-9cbe45c12a77" - } - } - }, - "instancei5efd3af1": { - "Type": "AWS::EC2::Instance", - "Properties": { - "IamInstanceProfile": { - "Ref": "MasterInstanceProfile" - }, - "DisableApiTermination": "false", - "InstanceInitiatedShutdownBehavior": "stop", - "ImageId": { - "Fn::FindInMap": [ - "RegionMap", - { - "Ref": "AWS::Region" - }, - "masterImage" - ] - }, - "InstanceType": { - "Ref": "MasterInstanceType" - }, - "KeyName": { - "Ref": "KeyPair" - }, - "Monitoring": "false", - "Tags": [ - { - "Key": "Name", - "Value": { - "Ref": "KubernetesMasterName" - } - }, - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - }, - { - "Key": "Role", - "Value": "kubernetes-master" - } - ], - "Volumes": [ - { - "Device": "/dev/xvdb", - "VolumeId": { - "Ref": "volumevol05ecfdb3" - } - } - ], - "NetworkInterfaces": [ - { - "DeleteOnTermination": "true", - "DeviceIndex": 0, - "SubnetId": { - "Ref": "subnet1c9c0378" - }, - "PrivateIpAddresses": [ - { - "PrivateIpAddress": "172.20.0.9", - "Primary": "true" - } - ], - "GroupSet": [ - { - "Ref": "sgkubernetesmasterkubernetes" - } - ], - "AssociatePublicIpAddress": "true" - } - ], - "UserData": { - "Fn::Base64": { - "Fn::Join": [ - "", - [ - "#!/bin/bash -x \n", - "pid=`ps -ax | grep apt | awk '{ print $1 }'` \n", - "kill -9 $pid \n", - "apt-get update\n", - "apt-get install awscli -y\n", - "#Initializing your master \n", - "kubeadm init --token=qwerty.asdfghjklmnbvcxz --use-kubernetes-version=v1.5.3 \n", - "#Deploying the calico Network \n", - "kubectl apply -f https://s3-us-west-2.amazonaws.com/bluemeric-bucket/kubernetes-bucket/kubeadm/calico.yaml \n", - "#Deploying the Dashboard \n", - "kubectl create -f https://s3-us-west-2.amazonaws.com/bluemeric-bucket/kubernetes-bucket/kubeadm/dashboard.yaml \n", - "#Heapster for Monitoring\n", - "kubectl create -f https://s3-us-west-2.amazonaws.com/bluemeric-bucket/kubernetes-bucket/kubeadm/Monitoring/heapster-controller.yaml \n", - "kubectl create -f https://s3-us-west-2.amazonaws.com/bluemeric-bucket/kubernetes-bucket/kubeadm/Monitoring/heapster-service.yaml \n", - "#Setting K8s Master Password\n", - "rm -rf /etc/kubernetes/pass.csv \n", - "echo \"REPLACE_MASTER_PASSWORD,admin,admin\" >> /etc/kubernetes/pass.csv\n", - "sed -i 's|\"--insecure-bind-address=127.0.0.1\",|\"--insecure-bind-address=127.0.0.1\",\\n\\t \"--basic-auth-file=/etc/kubernetes/pass.csv\",|g' /etc/kubernetes/manifests/kube-apiserver.json \n", - "# Monitoring - Scaleup Script \n", - "cd /opt/\n", - "rm -rf scaleUp.sh \n", - "wget https://s3-us-west-2.amazonaws.com/bluemeric-bucket/kubernetes-bucket/v1.5.3/scaleUp.sh\n", - "wget https://s3-us-west-2.amazonaws.com/bluemeric-bucket/kubernetes-bucket/v1.5.3/nodeDelete.sh\n", - "autoScalingGroupName=", - { - "Ref": "asgkubernetesminiongroup" - }, - "\n", - "autoScalingPolicyName=", - { - "Ref": "scaleUpMemUtili" - }, - "\n", - "regionName=", - { - "Ref": "AWS::Region" - }, - "\n", - "asg_policy=(${autoScalingPolicyName//policyName\\// })\n", - "sed -i \"s/AUTOSCALING_GROUP/$autoScalingGroupName/g\" /opt/scaleUp.sh\n", - "sed -i \"s/AUTOSCALING_GROUP/$autoScalingGroupName/g\" /opt/nodeDelete.sh\n", - "sed -i \"s|POLICY_NAME|${asg_policy[1]}|g\" /opt/scaleUp.sh\n", - "sed -i \"s/REGION_ID/$regionName/g\" /opt/scaleUp.sh\n", - "sed -i \"s/REGION_ID/$regionName/g\" /opt/nodeDelete.sh\n", - "crontab -r\n", - "crontab -l > mycron\n", - "echo \"*/5 * * * * bash -x /opt/scaleUp.sh >> /tmp/scaleupScript.log\" >> mycron\n", - "echo \"*/2 * * * * bash -x /opt/nodeDelete.sh >> /tmp/nodeDelete.log\" >> mycron\n", - "crontab mycron\n", - "rm mycron\n", - "/etc/init.d/cron restart\n", - "sleep 10\n", - "date\n", - "echo \"*************************Script for Finished\"\n" - ] - ] - } - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "e3ec9de7-4bb2-452d-a623-a6c94e9414ba" - } - } - }, - "volumevol05ecfdb3": { - "Type": "AWS::EC2::Volume", - "Properties": { - "AvailabilityZone": { - "Fn::Select": [ - "0", - { - "Fn::GetAZs": "" - } - ] - }, - "Size": "20", - "VolumeType": "gp2", - "Tags": [ - { - "Key": "Name", - "Value": "kubernetes-master-pd" - }, - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "d75a7952-3adb-42bc-9364-b41cbd62f694" - } - } - }, - "sgkubernetesmasterkubernetes": { - "Type": "AWS::EC2::SecurityGroup", - "Properties": { - "GroupDescription": "Kubernetes security group applied to master nodes", - "VpcId": { - "Ref": "vpcc54420a1" - }, - "Tags": [ - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "fed17564-3011-40cc-9f3d-81672947e416" - } - } - }, - "sgkubernetesminionkubernetes": { - "Type": "AWS::EC2::SecurityGroup", - "Properties": { - "GroupDescription": "Kubernetes security group applied to minion nodes", - "VpcId": { - "Ref": "vpcc54420a1" - }, - "Tags": [ - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "f4e18814-35bc-494a-91e6-fafb0ec705ff" - } - } - }, - "alarmScaleDown30": { - "Type": "AWS::CloudWatch::Alarm", - "Properties": { - "ActionsEnabled": "true", - "ComparisonOperator": "LessThanOrEqualToThreshold", - "EvaluationPeriods": "1", - "MetricName": "CPUUtilization", - "Namespace": "AWS/EC2", - "Period": "60", - "Statistic": "Average", - "Threshold": "5.0", - "AlarmActions": [ - { - "Ref": "ScaleDownPolicy" - } - ], - "Dimensions": [ - { - "Name": "AutoScalingGroupName", - "Value": { - "Ref": "asgkubernetesminiongroup" - } - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "9306acfd-ce94-4e5b-9a0b-abdf6978be27" - } - } - }, - "alarmScaleUp90": { - "Type": "AWS::CloudWatch::Alarm", - "Properties": { - "ActionsEnabled": "true", - "ComparisonOperator": "GreaterThanOrEqualToThreshold", - "EvaluationPeriods": "1", - "MetricName": "CPUUtilization", - "Namespace": "AWS/EC2", - "Period": "60", - "Statistic": "Average", - "Threshold": "90.0", - "AlarmActions": [ - { - "Ref": "ScaleUpPolicy" - } - ], - "Dimensions": [ - { - "Name": "AutoScalingGroupName", - "Value": { - "Ref": "asgkubernetesminiongroup" - } - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "5e4d5136-5e00-43f2-88ca-21e30deece4e" - } - } - }, - "memoryScaleDown35": { - "Type": "AWS::CloudWatch::Alarm", - "Properties": { - "ActionsEnabled": "true", - "ComparisonOperator": "LessThanOrEqualToThreshold", - "EvaluationPeriods": "1", - "MetricName": "MemoryUtilization", - "Namespace": "System/Linux", - "Period": "60", - "Statistic": "Average", - "Threshold": "5.0", - "AlarmActions": [ - { - "Ref": "scaleDownMemUtili" - } - ], - "Dimensions": [ - { - "Name": "AutoScalingGroupName", - "Value": { - "Ref": "asgkubernetesminiongroup" - } - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "9306acfd-ce94-4e5b-9a0b-abdf6978be27" - } - } - }, - "memoryScaleUp85": { - "Type": "AWS::CloudWatch::Alarm", - "Properties": { - "ActionsEnabled": "true", - "ComparisonOperator": "GreaterThanOrEqualToThreshold", - "EvaluationPeriods": "1", - "MetricName": "MemoryUtilization", - "Namespace": "System/Linux", - "Period": "60", - "Statistic": "Average", - "Threshold": "85.0", - "AlarmActions": [ - { - "Ref": "scaleUpMemUtili" - } - ], - "Dimensions": [ - { - "Name": "AutoScalingGroupName", - "Value": { - "Ref": "asgkubernetesminiongroup" - } - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "5e4d5136-5e00-43f2-88ca-21e30deece4e" - } - } - }, - "acl1": { - "Type": "AWS::EC2::NetworkAclEntry", - "Properties": { - "CidrBlock": "0.0.0.0/0", - "Egress": "true", - "Protocol": "-1", - "RuleAction": "allow", - "RuleNumber": "100", - "NetworkAclId": { - "Ref": "aclc90371ad" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "706f95a5-fb5e-428c-aa73-f9d3c56d4e50" - } - } - }, - "acl2": { - "Type": "AWS::EC2::NetworkAclEntry", - "Properties": { - "CidrBlock": "0.0.0.0/0", - "Protocol": "-1", - "RuleAction": "allow", - "RuleNumber": "100", - "NetworkAclId": { - "Ref": "aclc90371ad" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "a78ed404-1093-4861-b6f4-69aa2239c66e" - } - } - }, - "subnetacl1": { - "Type": "AWS::EC2::SubnetNetworkAclAssociation", - "Properties": { - "NetworkAclId": { - "Ref": "aclc90371ad" - }, - "SubnetId": { - "Ref": "subnet1c9c0378" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "4f4dff08-c6e1-4a40-a9b6-9f4cc01aeb1e" - } - } - }, - "gw1": { - "Type": "AWS::EC2::VPCGatewayAttachment", - "DeletionPolicy": "Delete", - "Properties": { - "VpcId": { - "Ref": "vpcc54420a1" - }, - "InternetGatewayId": { - "Ref": "igw20b4ac45" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "ca7bd359-c1e1-4bb5-9072-72863dda115f" - } - } - }, - "subnetroute2": { - "Type": "AWS::EC2::SubnetRouteTableAssociation", - "Properties": { - "RouteTableId": { - "Ref": "rtb349ed450" - }, - "SubnetId": { - "Ref": "subnet1c9c0378" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "21432f55-5655-4510-9808-5f41c2038c45" - } - } - }, - "route2": { - "Type": "AWS::EC2::Route", - "Properties": { - "DestinationCidrBlock": "10.246.0.0/24", - "RouteTableId": { - "Ref": "rtb349ed450" - }, - "InstanceId": { - "Ref": "instancei5efd3af1" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "8116d1ab-9a68-4e1b-9285-760066ae1093" - } - } - }, - "route4": { - "Type": "AWS::EC2::Route", - "Properties": { - "DestinationCidrBlock": "0.0.0.0/0", - "RouteTableId": { - "Ref": "rtb349ed450" - }, - "GatewayId": { - "Ref": "igw20b4ac45" - } - }, - "DependsOn": "gw1", - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "8da01726-6a8e-4e82-a06b-70625b5c229f" - } - } - }, - "dchpassoc1": { - "Type": "AWS::EC2::VPCDHCPOptionsAssociation", - "Properties": { - "VpcId": { - "Ref": "vpcc54420a1" - }, - "DhcpOptionsId": { - "Ref": "doptbe33a7db" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "498bfac2-d655-40b5-a7b5-0aa042a544ce" - } - } - }, - "ingress1": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "-1", - "SourceSecurityGroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "SourceSecurityGroupOwnerId": "473641303166" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "7daf34f8-5dbd-4881-b65a-dfc596013f26" - } - } - }, - "ingress2": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "-1", - "SourceSecurityGroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "SourceSecurityGroupOwnerId": "473641303166" - } - }, - "ingress3": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "tcp", - "FromPort": "22", - "ToPort": "22", - "CidrIp": "0.0.0.0/0" - } - }, - "ingress4": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "tcp", - "FromPort": "443", - "ToPort": "443", - "CidrIp": "0.0.0.0/0" - } - }, - "ingress5": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "IpProtocol": "-1", - "SourceSecurityGroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "SourceSecurityGroupOwnerId": "473641303166" - } - }, - "ingress6": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "IpProtocol": "-1", - "SourceSecurityGroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "SourceSecurityGroupOwnerId": "473641303166" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "ba908a72-6c66-47f3-8cf0-f545febc44be" - } - } - }, - "ingress7": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "IpProtocol": "tcp", - "FromPort": "22", - "ToPort": "22", - "CidrIp": "0.0.0.0/0" - } - }, - "ingress8": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "tcp", - "FromPort": "8080", - "ToPort": "8080", - "CidrIp": "0.0.0.0/0" - } - }, - "ingress9": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "tcp", - "FromPort": "6443", - "ToPort": "6443", - "CidrIp": "0.0.0.0/0" - } - }, - "ingress10": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "IpProtocol": "tcp", - "FromPort": "4200", - "ToPort": "4200", - "CidrIp": "0.0.0.0/0" - } - }, - "egress1": { - "Type": "AWS::EC2::SecurityGroupEgress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "-1", - "CidrIp": "0.0.0.0/0" - } - }, - "egress2": { - "Type": "AWS::EC2::SecurityGroupEgress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "IpProtocol": "-1", - "CidrIp": "0.0.0.0/0" - } - } - }, - "Description": "Kubernetes Cluster Creation Template using AWS CloudFormation", - "Outputs": { - "K8sURL": { - "Value": { - "Fn::Join": [ - "", - [ - "https://", - { - "Fn::GetAtt": [ - "instancei5efd3af1", - "PublicIp" - ] - }, - ":6443/ui" - ] - ] - }, - "Description": "Kubernetes Cluster Master IP Address" - }, - "MasterIP": { - "Description": "Master IP Address", - "Value": { - "Fn::Join": [ - "", - [ - "", - { - "Fn::GetAtt": [ - "instancei5efd3af1", - "PublicIp" - ] - } - ] - ] - } - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "5e4d5136-5e00-43f2-88ca-21e30deece4e": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 90 - }, - "z": 1, - "embeds": [], - "isrelatedto": [ - "44a31cce-3c69-4cb3-bac2-2bf8fbf0604b", - "5df835e4-67ed-4967-8841-67a5de2b9cf4" - ] - }, - "9306acfd-ce94-4e5b-9a0b-abdf6978be27": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 210 - }, - "z": 1, - "embeds": [], - "isrelatedto": [ - "a190ec41-22f1-4585-bf34-2b1fe903485f", - "5df835e4-67ed-4967-8841-67a5de2b9cf4" - ] - }, - "d75a7952-3adb-42bc-9364-b41cbd62f694": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 330 - }, - "z": 1, - "embeds": [] - }, - "acf8dcff-cfab-4941-a7de-9b8e445ae526": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 450 - }, - "z": 1, - "embeds": [] - }, - "f713e70c-1a4d-4680-b4a2-f7b85e7458cc": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 570 - }, - "z": 1, - "embeds": [] - }, - "8dba90ed-bf34-433f-a7d9-ab8517543adb": { - "size": { - "width": 780, - "height": 780 - }, - "position": { - "x": 60, - "y": 90 - }, - "z": 1, - "embeds": [ - "f4e18814-35bc-494a-91e6-fafb0ec705ff", - "fed17564-3011-40cc-9f3d-81672947e416", - "9e8c941e-b4aa-4474-b2a4-7951635e0175", - "6959c47d-40ad-410b-941f-8b5a5ef18e28", - "b6097bd5-5202-44b7-bff0-21e6c17648f8" - ] - }, - "498bfac2-d655-40b5-a7b5-0aa042a544ce": { - "source": { - "id": "acf8dcff-cfab-4941-a7de-9b8e445ae526" - }, - "target": { - "id": "8dba90ed-bf34-433f-a7d9-ab8517543adb" - }, - "z": 1 - }, - "ca7bd359-c1e1-4bb5-9072-72863dda115f": { - "source": { - "id": "f713e70c-1a4d-4680-b4a2-f7b85e7458cc" - }, - "target": { - "id": "8dba90ed-bf34-433f-a7d9-ab8517543adb" - }, - "z": 1 - }, - "f4e18814-35bc-494a-91e6-fafb0ec705ff": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 690, - "y": 450 - }, - "z": 2, - "parent": "8dba90ed-bf34-433f-a7d9-ab8517543adb", - "embeds": [] - }, - "01c4d03f-bbaf-4d9f-81c2-9cbe45c12a77": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 690 - }, - "z": 1, - "embeds": [], - "ismemberof": [ - "f4e18814-35bc-494a-91e6-fafb0ec705ff" - ], - "isrelatedto": [ - "34090e53-04bc-4369-b851-83b599731685" - ] - }, - "fed17564-3011-40cc-9f3d-81672947e416": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 690, - "y": 570 - }, - "z": 2, - "parent": "8dba90ed-bf34-433f-a7d9-ab8517543adb", - "embeds": [] - }, - "ba908a72-6c66-47f3-8cf0-f545febc44be": { - "source": { - "id": "f4e18814-35bc-494a-91e6-fafb0ec705ff" - }, - "target": { - "id": "fed17564-3011-40cc-9f3d-81672947e416" - }, - "z": 2 - }, - "7daf34f8-5dbd-4881-b65a-dfc596013f26": { - "source": { - "id": "fed17564-3011-40cc-9f3d-81672947e416" - }, - "target": { - "id": "f4e18814-35bc-494a-91e6-fafb0ec705ff" - }, - "z": 2 - }, - "9e8c941e-b4aa-4474-b2a4-7951635e0175": { - "size": { - "width": 330, - "height": 330 - }, - "position": { - "x": 90, - "y": 150 - }, - "z": 2, - "parent": "8dba90ed-bf34-433f-a7d9-ab8517543adb", - "embeds": [ - "8da01726-6a8e-4e82-a06b-70625b5c229f", - "8116d1ab-9a68-4e1b-9285-760066ae1093" - ] - }, - "8da01726-6a8e-4e82-a06b-70625b5c229f": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 120, - "y": 210 - }, - "z": 3, - "parent": "9e8c941e-b4aa-4474-b2a4-7951635e0175", - "embeds": [], - "references": [ - "f713e70c-1a4d-4680-b4a2-f7b85e7458cc" - ], - "dependson": [ - "ca7bd359-c1e1-4bb5-9072-72863dda115f" - ] - }, - "6778df45-dbc1-460f-afef-073126f855c3": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 240, - "y": 210 - }, - "z": 3, - "parent": "9e8c941e-b4aa-4474-b2a4-7951635e0175", - "embeds": [], - "references": [ - "f713e70c-1a4d-4680-b4a2-f7b85e7458cc" - ] - }, - "e91552bd-fc54-4bf7-b77a-70ba6e0a4ad1": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 120, - "y": 150 - }, - "z": 3, - "parent": "9e8c941e-b4aa-4474-b2a4-7951635e0175", - "embeds": [], - "references": [ - "f713e70c-1a4d-4680-b4a2-f7b85e7458cc" - ] - }, - "6959c47d-40ad-410b-941f-8b5a5ef18e28": { - "size": { - "width": 330, - "height": 180 - }, - "position": { - "x": 90, - "y": 540 - }, - "z": 2, - "parent": "8dba90ed-bf34-433f-a7d9-ab8517543adb", - "embeds": [ - "a78ed404-1093-4861-b6f4-69aa2239c66e", - "706f95a5-fb5e-428c-aa73-f9d3c56d4e50" - ] - }, - "a78ed404-1093-4861-b6f4-69aa2239c66e": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 120, - "y": 600 - }, - "z": 3, - "parent": "6959c47d-40ad-410b-941f-8b5a5ef18e28", - "embeds": [] - }, - "706f95a5-fb5e-428c-aa73-f9d3c56d4e50": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 120, - "y": 600 - }, - "z": 3, - "parent": "6959c47d-40ad-410b-941f-8b5a5ef18e28", - "embeds": [] - }, - "b6097bd5-5202-44b7-bff0-21e6c17648f8": { - "size": { - "width": 240, - "height": 240 - }, - "position": { - "x": 480, - "y": 150 - }, - "z": 2, - "parent": "8dba90ed-bf34-433f-a7d9-ab8517543adb", - "embeds": [ - "e3ec9de7-4bb2-452d-a623-a6c94e9414ba" - ] - }, - "21432f55-5655-4510-9808-5f41c2038c45": { - "source": { - "id": "9e8c941e-b4aa-4474-b2a4-7951635e0175" - }, - "target": { - "id": "b6097bd5-5202-44b7-bff0-21e6c17648f8" - }, - "z": 2 - }, - "4f4dff08-c6e1-4a40-a9b6-9f4cc01aeb1e": { - "source": { - "id": "6959c47d-40ad-410b-941f-8b5a5ef18e28" - }, - "target": { - "id": "b6097bd5-5202-44b7-bff0-21e6c17648f8" - }, - "z": 2 - }, - "e3ec9de7-4bb2-452d-a623-a6c94e9414ba": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 510, - "y": 210 - }, - "z": 3, - "parent": "b6097bd5-5202-44b7-bff0-21e6c17648f8", - "embeds": [], - "isconnectedto": [ - "d75a7952-3adb-42bc-9364-b41cbd62f694" - ], - "isrelatedto": [ - "fed17564-3011-40cc-9f3d-81672947e416", - "d9051f55-2638-4223-a528-f6bd637d69ce", - "5df835e4-67ed-4967-8841-67a5de2b9cf4", - "44a31cce-3c69-4cb3-bac2-2bf8fbf0604b" - ] - }, - "8116d1ab-9a68-4e1b-9285-760066ae1093": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 120, - "y": 150 - }, - "z": 3, - "parent": "9e8c941e-b4aa-4474-b2a4-7951635e0175", - "embeds": [], - "references": [ - "e3ec9de7-4bb2-452d-a623-a6c94e9414ba" - ] - }, - "5df835e4-67ed-4967-8841-67a5de2b9cf4": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 810 - }, - "z": 1, - "embeds": [], - "isconnectedto": [ - "b6097bd5-5202-44b7-bff0-21e6c17648f8" - ], - "isassociatedwith": [ - "01c4d03f-bbaf-4d9f-81c2-9cbe45c12a77" - ] - }, - "0295532e-d02f-457a-b66f-bf885a676894": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 990, - "y": 90 - }, - "z": 1, - "embeds": [], - "references": [ - "a7b57808-5d45-43b0-bf47-aad86ca4c28e" - ], - "dependson": [ - "e3ec9de7-4bb2-452d-a623-a6c94e9414ba" - ] - }, - "a7b57808-5d45-43b0-bf47-aad86ca4c28e": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 1080, - "y": 90 - }, - "z": 1, - "embeds": [] - }, - "a190ec41-22f1-4585-bf34-2b1fe903485f": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 990, - "y": 90 - }, - "z": 1, - "embeds": [], - "isassociatedwith": [ - "5df835e4-67ed-4967-8841-67a5de2b9cf4" - ] - }, - "44a31cce-3c69-4cb3-bac2-2bf8fbf0604b": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 1110, - "y": 90 - }, - "z": 1, - "embeds": [], - "isassociatedwith": [ - "5df835e4-67ed-4967-8841-67a5de2b9cf4" - ] - }, - "34cc30af-a656-4bdf-985e-1cce4c861d0a": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 1200, - "y": 90 - }, - "z": 1, - "embeds": [] - }, - "34090e53-04bc-4369-b851-83b599731685": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 1320, - "y": 90 - }, - "z": 1, - "embeds": [], - "isassociatedwith": [ - "34cc30af-a656-4bdf-985e-1cce4c861d0a" - ] - }, - "f8ac3cb8-a0c7-4c09-aa17-7cbc5b714b14": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 1440, - "y": 90 - }, - "z": 1, - "embeds": [], - "isassociatedwith": [ - "34cc30af-a656-4bdf-985e-1cce4c861d0a" - ] - }, - "062b2a90-29bd-4e7f-8512-2b9d87cd50ac": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 640, - "y": -10 - }, - "z": 1, - "embeds": [] - }, - "d9051f55-2638-4223-a528-f6bd637d69ce": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 510, - "y": -10 - }, - "z": 1, - "embeds": [], - "isassociatedwith": [ - "062b2a90-29bd-4e7f-8512-2b9d87cd50ac" - ] - }, - "1660e688-e775-4dcd-809f-ce55b2d8b03d": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 750, - "y": -10 - }, - "z": 1, - "embeds": [], - "isassociatedwith": [ - "062b2a90-29bd-4e7f-8512-2b9d87cd50ac" - ] - } - } - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/cft_aws_kube_v2.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/cft_aws_kube_v2.json deleted file mode 100644 index 536a040cf..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/cft_aws_kube_v2.json +++ /dev/null @@ -1,1753 +0,0 @@ -{ - "AWSTemplateFormatVersion": "2010-09-09", - "Parameters": { - "KubernetesMasterName": { - "Default": "KUBEMASTER_NAME", - "Description": "Enter the name for Kubernetes Master", - "Type": "String", - "MinLength": "1", - "MaxLength": "64", - "AllowedPattern": "[a-zA-Z][a-zA-Z0-9]*", - "ConstraintDescription": "must begin with a letter and contain only alphanumeric characters." - }, - "KubernetesMinionsName": { - "Default": "KubeMinion", - "Description": "Enter the name for Kubernetes Minion", - "Type": "String", - "MinLength": "1", - "MaxLength": "64", - "AllowedPattern": "[a-zA-Z][a-zA-Z0-9]*", - "ConstraintDescription": "must begin with a letter and contain only alphanumeric characters." - }, - "MinionsCount": { - "Default": "MINIONS_COUNT", - "Type": "Number", - "MinValue": "1", - "Description": "Enter the number of Minions you want to create(Default Maximum scaling size is 10):" - }, - "MasterInstanceType": { - "Description": "Enter the instance size for Kubernetes Master", - "Type": "String", - "Default": "MASTER_INSTANCE_TYPE", - "AllowedValues": [ - "t2.nano", - "t2.micro", - "t2.small", - "t2.large", - "t2.medium", - "t2.large", - "m4.large", - "m4.xlarge", - "m3.medium", - "m3.large", - "m3.xlarge" - ], - "ConstraintDescription": "Select EC2 Instance Type from list." - }, - "MinionsInstanceType": { - "Description": "Enter the instance size for Kubernetes Minions", - "Type": "String", - "Default": "MINION_INSTANCE_TYPE", - "AllowedValues": [ - "t2.nano", - "t2.micro", - "t2.small", - "t2.large", - "t2.medium", - "t2.large", - "m4.large", - "m4.xlarge", - "m3.medium", - "m3.large", - "m3.xlarge" - ], - "ConstraintDescription": "Select EC2 Instance Type from list." - }, - "KeyPair": { - "Default": "PUBLIC_KEY", - "Description": "Select the KeyPair(For both Master and Minions)", - "Type": "AWS::EC2::KeyPair::KeyName", - "ConstraintDescription": "Can contain only ASCII characters." - } - }, - "Mappings": { - "RegionMap": { - "us-east-1": { - "masterImage": "ami-d14cefc7", - "nodeImage": "ami-3825852e" - }, - "us-east-2": { - "masterImage": "ami-44725621", - "nodeImage": "ami-07775362" - }, - "us-west-1": { - "masterImage": "ami-feb6ef9e", - "nodeImage": "ami-ce81d8ae" - }, - "us-west-2": { - "masterImage": "ami-9c6de2fc", - "nodeImage": "ami-44ad2224" - }, - "ca-central-1": { - "masterImage": "ami-4557ea21", - "nodeImage": "ami-c35ae7a7" - }, - "eu-west-1": { - "masterImage": "ami-a0281dc6", - "nodeImage": "ami-359db753" - }, - "eu-central-1": { - "masterImage": "ami-1e9c4b71", - "nodeImage": "ami-f877a397" - }, - "eu-west-2": { - "masterImage": "ami-d09287b4", - "nodeImage": "ami-e7918483" - }, - "ap-southeast-1": { - "masterImage": "ami-08233021b7701c399", - "nodeImage": "ami-0e4ef4cb6b69cbb19" - }, - "ap-southeast-2": { - "masterImage": "ami-0f49491506e8848c1", - "nodeImage": "ami-01ae776fb5018f463" - }, - "ap-northeast-2": { - "masterImage": "ami-c8895aa6", - "nodeImage": "ami-2f825141" - }, - "ap-northeast-1": { - "masterImage": "ami-95cb9bf2", - "nodeImage": "ami-db7121bc" - }, - "ap-south-1": { - "masterImage": "ami-6ba3d304", - "nodeImage": "ami-a8bfcfc7" - }, - "sa-east-1": { - "masterImage": "ami-de5d3cb2", - "nodeImage": "ami-7048291c" - } - } - }, - "Conditions": { - "RegionIsUsEast1": { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-east-1" - ] - }, - "RegionIsUsGovWest1": { - "Fn::Equals": [ - { - "Ref": "AWS::Region" - }, - "us-gov-west-1" - ] - } - }, - "Resources": { - "MasterRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "ec2.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - }, - "Path": "/" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "062b2a90-29bd-4e7f-8512-2b9d87cd50ac" - } - } - }, - "MasterRolePolicies": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "kubernetes-master", - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": [ - "ec2:*" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": [ - "elasticloadbalancing:*" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": "s3:*", - "Resource": [ - "arn:aws:s3:::kubernetes-*" - ] - }, - { - "Effect": "Allow", - "Action": [ - "autoscaling:Describe*", - "cloudwatch:*", - "logs:*", - "sns:*" - ], - "Resource": "*" - }, - { - "Effect": "Allow", - "Action": [ - "autoscaling:*" - ], - "Resource": [ - "*" - ] - } - ] - }, - "Roles": [ - { - "Ref": "MasterRole" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "1660e688-e775-4dcd-809f-ce55b2d8b03d" - } - } - }, - "MasterInstanceProfile": { - "Type": "AWS::IAM::InstanceProfile", - "Properties": { - "Path": "/", - "Roles": [ - { - "Ref": "MasterRole" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "d9051f55-2638-4223-a528-f6bd637d69ce" - } - } - }, - "MinionsRole": { - "Type": "AWS::IAM::Role", - "Properties": { - "AssumeRolePolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Principal": { - "Service": [ - "ec2.amazonaws.com" - ] - }, - "Action": [ - "sts:AssumeRole" - ] - } - ] - }, - "Path": "/" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "34cc30af-a656-4bdf-985e-1cce4c861d0a" - } - } - }, - "MinionsRolePolicies": { - "Type": "AWS::IAM::Policy", - "Properties": { - "PolicyName": "kubernetes-minion", - "PolicyDocument": { - "Version": "2012-10-17", - "Statement": [ - { - "Effect": "Allow", - "Action": "s3:*", - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": "ec2:Describe*", - "Resource": "*" - }, - { - "Effect": "Allow", - "Action": "ec2:AttachVolume", - "Resource": "*" - }, - { - "Effect": "Allow", - "Action": "ec2:DetachVolume", - "Resource": "*" - }, - { - "Effect": "Allow", - "Action": [ - "autoscaling:TerminateInstanceInAutoScalingGroup" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": [ - "autoscaling:DescribeAutoScalingGroups" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": [ - "autoscaling:DescribeAutoScalingInstances" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": [ - "autoscaling:SetDesiredCapacity" - ], - "Resource": [ - "*" - ] - }, - { - "Effect": "Allow", - "Action": [ - "autoscaling:Describe*", - "cloudwatch:*", - "logs:*", - "sns:*" - ], - "Resource": "*" - } - ] - }, - "Roles": [ - { - "Ref": "MinionsRole" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "f8ac3cb8-a0c7-4c09-aa17-7cbc5b714b14" - } - } - }, - "MinionsInstanceProfile": { - "Type": "AWS::IAM::InstanceProfile", - "Properties": { - "Path": "/", - "Roles": [ - { - "Ref": "MinionsRole" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "34090e53-04bc-4369-b851-83b599731685" - } - } - }, - "vpcc54420a1": { - "Type": "AWS::EC2::VPC", - "DeletionPolicy": "Delete", - "Properties": { - "CidrBlock": "172.20.0.0/16", - "InstanceTenancy": "default", - "EnableDnsSupport": "true", - "EnableDnsHostnames": "true", - "Tags": [ - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - }, - { - "Key": "Name", - "Value": "kubernetes-vpc" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "8dba90ed-bf34-433f-a7d9-ab8517543adb" - } - } - }, - "subnet1c9c0378": { - "Type": "AWS::EC2::Subnet", - "Properties": { - "CidrBlock": "172.20.0.0/24", - "AvailabilityZone": { - "Fn::Select": [ - "0", - { - "Fn::GetAZs": "" - } - ] - }, - "VpcId": { - "Ref": "vpcc54420a1" - }, - "Tags": [ - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "b6097bd5-5202-44b7-bff0-21e6c17648f8" - } - } - }, - "igw20b4ac45": { - "Type": "AWS::EC2::InternetGateway", - "Properties": {}, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "f713e70c-1a4d-4680-b4a2-f7b85e7458cc" - } - } - }, - "doptbe33a7db": { - "Type": "AWS::EC2::DHCPOptions", - "Properties": { - "DomainName": { - "Fn::If": [ - "RegionIsUsEast1", - "ec2.internal", - { - "Fn::Join": [ - "", - [ - { - "Ref": "AWS::Region" - }, - ".compute.internal" - ] - ] - } - ] - }, - "DomainNameServers": [ - "AmazonProvidedDNS" - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "acf8dcff-cfab-4941-a7de-9b8e445ae526" - } - } - }, - "aclc90371ad": { - "Type": "AWS::EC2::NetworkAcl", - "Properties": { - "VpcId": { - "Ref": "vpcc54420a1" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "6959c47d-40ad-410b-941f-8b5a5ef18e28" - } - } - }, - "rtb349ed450": { - "Type": "AWS::EC2::RouteTable", - "Properties": { - "VpcId": { - "Ref": "vpcc54420a1" - }, - "Tags": [ - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "9e8c941e-b4aa-4474-b2a4-7951635e0175" - } - } - }, - "asgkubernetesminiongroup": { - "Type": "AWS::AutoScaling::AutoScalingGroup", - "Properties": { - "Cooldown": "600", - "DesiredCapacity": { - "Ref": "MinionsCount" - }, - "HealthCheckGracePeriod": "0", - "HealthCheckType": "EC2", - "MaxSize": "5", - "MinSize": { - "Ref": "MinionsCount" - }, - "VPCZoneIdentifier": [ - { - "Ref": "subnet1c9c0378" - } - ], - "LaunchConfigurationName": { - "Ref": "lckubernetesminiongroup" - }, - "Tags": [ - { - "Key": "KubernetesCluster", - "Value": "kubernetes", - "PropagateAtLaunch": true - }, - { - "Key": "Name", - "Value": { - "Ref": "KubernetesMinionsName" - }, - "PropagateAtLaunch": true - }, - { - "Key": "Role", - "Value": "kubernetes-minion", - "PropagateAtLaunch": true - } - ], - "TerminationPolicies": [ - "NewestInstance" - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "5df835e4-67ed-4967-8841-67a5de2b9cf4" - } - } - }, - "scaleUpMemUtili": { - "Type": "AWS::AutoScaling::ScalingPolicy", - "Properties": { - "AdjustmentType": "ChangeInCapacity", - "AutoScalingGroupName": { - "Ref": "asgkubernetesminiongroup" - }, - "ScalingAdjustment": "1" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "44a31cce-3c69-4cb3-bac2-2bf8fbf0604b" - } - } - }, - "lckubernetesminiongroup": { - "Type": "AWS::AutoScaling::LaunchConfiguration", - "Properties": { - "IamInstanceProfile": { - "Ref": "MinionsInstanceProfile" - }, - "AssociatePublicIpAddress": true, - "ImageId": { - "Fn::FindInMap": [ - "RegionMap", - { - "Ref": "AWS::Region" - }, - "nodeImage" - ] - }, - "InstanceType": { - "Ref": "MinionsInstanceType" - }, - "KeyName": { - "Ref": "KeyPair" - }, - "InstanceMonitoring": "true", - "SecurityGroups": [ - { - "Ref": "sgkubernetesminionkubernetes" - } - ], - "BlockDeviceMappings": [ - { - "DeviceName": "/dev/sda1", - "Ebs": { - "VolumeSize": 50 - } - }, - { - "VirtualName": "ephemeral3", - "DeviceName": "/dev/sdf" - }, - { - "VirtualName": "ephemeral2", - "DeviceName": "/dev/sde" - }, - { - "VirtualName": "ephemeral0", - "DeviceName": "/dev/sdc" - }, - { - "VirtualName": "ephemeral1", - "DeviceName": "/dev/sdd" - } - ], - "UserData": { - "Fn::Base64": { - "Fn::Join": [ - "", - [ - "#!/bin/bash -x \n", - "apt-get update\n", - "# Kubeadm - Joining your nodes with master \n", - "kubeadm join --token=REPLACE_TOKEN --node-name=$(hostname -f) 172.20.0.9:6443 \n", - "bash -x /opt/gp/setPassword.sh \n", - "sed -i 's/MASTER_PASSWORD/REPLACE_MASTER_PASSWORD/g' /opt/gp/scaleDown.sh" - ] - ] - } - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "01c4d03f-bbaf-4d9f-81c2-9cbe45c12a77" - } - } - }, - "instancei5efd3af1": { - "Type": "AWS::EC2::Instance", - "Properties": { - "IamInstanceProfile": { - "Ref": "MasterInstanceProfile" - }, - "DisableApiTermination": "true", - "InstanceInitiatedShutdownBehavior": "stop", - "ImageId": { - "Fn::FindInMap": [ - "RegionMap", - { - "Ref": "AWS::Region" - }, - "masterImage" - ] - }, - "InstanceType": { - "Ref": "MasterInstanceType" - }, - "KeyName": { - "Ref": "KeyPair" - }, - "Monitoring": "false", - "Tags": [ - { - "Key": "Name", - "Value": { - "Ref": "KubernetesMasterName" - } - }, - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - }, - { - "Key": "Role", - "Value": "kubernetes-master" - } - ], - "Volumes": [ - { - "Device": "/dev/xvdb", - "VolumeId": { - "Ref": "volumevol05ecfdb3" - } - } - ], - "NetworkInterfaces": [ - { - "DeleteOnTermination": "true", - "DeviceIndex": 0, - "SubnetId": { - "Ref": "subnet1c9c0378" - }, - "PrivateIpAddresses": [ - { - "PrivateIpAddress": "172.20.0.9", - "Primary": "true" - } - ], - "GroupSet": [ - { - "Ref": "sgkubernetesmasterkubernetes" - } - ], - "AssociatePublicIpAddress": "true" - } - ], - "UserData": { - "Fn::Base64": { - "Fn::Join": [ - "", - [ - "#!/bin/bash -x \n", - "apt-get update\n", - "apt-get install awscli -y\n", - "#Initializing your master \n", - "touch /etc/kubernetes/pki/pass.csv \n", - "chmod 600 /etc/kubernetes/pki/pass.csv \n", - "sed -i 's/TOKEN/REPLACE_TOKEN/g' /opt/gp/masterConfiguration.sh \n", - "sed -i 's/pass/pki\\/pass/g' /opt/gp/masterConfiguration.sh \n", - "bash /opt/gp/masterConfiguration.sh \n", - "echo \"REPLACE_MASTER_PASSWORD,gopaddle-monitor,gopaddle-monitor\" >> /etc/kubernetes/pki/pass.csv \n", - "kubeadm init --config=/opt/gp/kubeadm.yml \n", - "#Creating kube dir and copying config file \n", - "cp -i /etc/kubernetes/admin.conf /root/.kube/config \n", - "chown $(id -u):$(id -g) /root/.kube/config \n", - "aws s3 mb s3://kubernetes-ORGID-ACCID-KUBENAME --region=BUCKETREG \n", - "aws s3 cp /etc/kubernetes/admin.conf s3://kubernetes-ORGID-ACCID-KUBENAME --region=BUCKETREG \n", - "autoScalingGroupName=", - { - "Ref": "asgkubernetesminiongroup" - }, - "\n", - "autoScalingPolicyName=", - { - "Ref": "scaleUpMemUtili" - }, - "\n", - "regionName=", - { - "Ref": "AWS::Region" - }, - "\n", - "echo autoScalingGroupName: $autoScalingGroupName \n", - "#asg_policy=(${autoScalingPolicyName//policyName\\// })\n", - "#echo asg_policy: $asg_policy \n", - "sed -i \"s/AUTOSCALING-GROUP-NAME/$autoScalingGroupName/g\" /opt/gp/autoscaler.yml\n", - "#sed -i \"s/AUTOSCALING_GROUP/$autoScalingGroupName/g\" /opt/gp/nodeDelete.sh\n", - "#sed -i \"s|POLICY_NAME|${asg_policy[1]}|g\" /opt/gp/scaleUp.sh\n", - "#sed -i \"s/REGION_ID/$regionName/g\" /opt/gp/scaleUp.sh\n", - "sed -i \"s/AWS-REGION/$regionName/g\" /opt/gp/autoscaler.yml\n", - "#Creating Read only Role for gopaddle-monitor\n", - "bash /opt/gp/gopaddleAddons.sh \n" - ] - ] - } - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "e3ec9de7-4bb2-452d-a623-a6c94e9414ba" - } - } - }, - "volumevol05ecfdb3": { - "Type": "AWS::EC2::Volume", - "Properties": { - "AvailabilityZone": { - "Fn::Select": [ - "0", - { - "Fn::GetAZs": "" - } - ] - }, - "Size": "20", - "VolumeType": "gp2", - "Tags": [ - { - "Key": "Name", - "Value": "kubernetes-master-pd" - }, - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "d75a7952-3adb-42bc-9364-b41cbd62f694" - } - } - }, - "sgkubernetesmasterkubernetes": { - "Type": "AWS::EC2::SecurityGroup", - "Properties": { - "GroupDescription": "Kubernetes security group applied to master nodes", - "VpcId": { - "Ref": "vpcc54420a1" - }, - "Tags": [ - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "fed17564-3011-40cc-9f3d-81672947e416" - } - } - }, - "sgkubernetesminionkubernetes": { - "Type": "AWS::EC2::SecurityGroup", - "Properties": { - "GroupDescription": "Kubernetes security group applied to minion nodes", - "VpcId": { - "Ref": "vpcc54420a1" - }, - "Tags": [ - { - "Key": "KubernetesCluster", - "Value": "kubernetes" - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "f4e18814-35bc-494a-91e6-fafb0ec705ff" - } - } - }, - "memoryScaleUp90": { - "Type": "AWS::CloudWatch::Alarm", - "Properties": { - "ActionsEnabled": "true", - "ComparisonOperator": "GreaterThanOrEqualToThreshold", - "EvaluationPeriods": "1", - "MetricName": "MemoryUtilization", - "Namespace": "System/Linux", - "Period": "300", - "Statistic": "Average", - "Threshold": "90.0", - "AlarmActions": [ - { - "Ref": "scaleUpMemUtili" - } - ], - "Dimensions": [ - { - "Name": "AutoScalingGroupName", - "Value": { - "Ref": "asgkubernetesminiongroup" - } - } - ] - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "5e4d5136-5e00-43f2-88ca-21e30deece4e" - } - } - }, - "acl1": { - "Type": "AWS::EC2::NetworkAclEntry", - "Properties": { - "CidrBlock": "0.0.0.0/0", - "Egress": "true", - "Protocol": "-1", - "RuleAction": "allow", - "RuleNumber": "100", - "NetworkAclId": { - "Ref": "aclc90371ad" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "706f95a5-fb5e-428c-aa73-f9d3c56d4e50" - } - } - }, - "acl2": { - "Type": "AWS::EC2::NetworkAclEntry", - "Properties": { - "CidrBlock": "0.0.0.0/0", - "Protocol": "-1", - "RuleAction": "allow", - "RuleNumber": "100", - "NetworkAclId": { - "Ref": "aclc90371ad" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "a78ed404-1093-4861-b6f4-69aa2239c66e" - } - } - }, - "subnetacl1": { - "Type": "AWS::EC2::SubnetNetworkAclAssociation", - "Properties": { - "NetworkAclId": { - "Ref": "aclc90371ad" - }, - "SubnetId": { - "Ref": "subnet1c9c0378" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "4f4dff08-c6e1-4a40-a9b6-9f4cc01aeb1e" - } - } - }, - "gw1": { - "Type": "AWS::EC2::VPCGatewayAttachment", - "DeletionPolicy": "Delete", - "Properties": { - "VpcId": { - "Ref": "vpcc54420a1" - }, - "InternetGatewayId": { - "Ref": "igw20b4ac45" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "ca7bd359-c1e1-4bb5-9072-72863dda115f" - } - } - }, - "subnetroute2": { - "Type": "AWS::EC2::SubnetRouteTableAssociation", - "Properties": { - "RouteTableId": { - "Ref": "rtb349ed450" - }, - "SubnetId": { - "Ref": "subnet1c9c0378" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "21432f55-5655-4510-9808-5f41c2038c45" - } - } - }, - "route2": { - "Type": "AWS::EC2::Route", - "Properties": { - "DestinationCidrBlock": "10.246.0.0/24", - "RouteTableId": { - "Ref": "rtb349ed450" - }, - "InstanceId": { - "Ref": "instancei5efd3af1" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "8116d1ab-9a68-4e1b-9285-760066ae1093" - } - } - }, - "route4": { - "Type": "AWS::EC2::Route", - "Properties": { - "DestinationCidrBlock": "0.0.0.0/0", - "RouteTableId": { - "Ref": "rtb349ed450" - }, - "GatewayId": { - "Ref": "igw20b4ac45" - } - }, - "DependsOn": "gw1", - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "8da01726-6a8e-4e82-a06b-70625b5c229f" - } - } - }, - "dchpassoc1": { - "Type": "AWS::EC2::VPCDHCPOptionsAssociation", - "Properties": { - "VpcId": { - "Ref": "vpcc54420a1" - }, - "DhcpOptionsId": { - "Ref": "doptbe33a7db" - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "498bfac2-d655-40b5-a7b5-0aa042a544ce" - } - } - }, - "ingress1": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "-1", - "SourceSecurityGroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "SourceSecurityGroupOwnerId": "473641303166" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "7daf34f8-5dbd-4881-b65a-dfc596013f26" - } - } - }, - "ingress2": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "-1", - "SourceSecurityGroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "SourceSecurityGroupOwnerId": "473641303166" - } - }, - "ingress3": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "tcp", - "FromPort": "22", - "ToPort": "22", - "CidrIp": "0.0.0.0/0" - } - }, - "ingress4": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "tcp", - "FromPort": "443", - "ToPort": "443", - "CidrIp": "0.0.0.0/0" - } - }, - "ingress5": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "IpProtocol": "-1", - "SourceSecurityGroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "SourceSecurityGroupOwnerId": "473641303166" - } - }, - "ingress6": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "IpProtocol": "-1", - "SourceSecurityGroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "SourceSecurityGroupOwnerId": "473641303166" - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "id": "ba908a72-6c66-47f3-8cf0-f545febc44be" - } - } - }, - "ingress7": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "IpProtocol": "tcp", - "FromPort": "22", - "ToPort": "22", - "CidrIp": "0.0.0.0/0" - } - }, - "ingress8": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "tcp", - "FromPort": "8080", - "ToPort": "8080", - "CidrIp": "0.0.0.0/0" - } - }, - "ingress9": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "tcp", - "FromPort": "6443", - "ToPort": "6443", - "CidrIp": "0.0.0.0/0" - } - }, - "ingress10": { - "Type": "AWS::EC2::SecurityGroupIngress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "IpProtocol": "tcp", - "FromPort": "4200", - "ToPort": "4200", - "CidrIp": "0.0.0.0/0" - } - }, - "egress1": { - "Type": "AWS::EC2::SecurityGroupEgress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesmasterkubernetes" - }, - "IpProtocol": "-1", - "CidrIp": "0.0.0.0/0" - } - }, - "egress2": { - "Type": "AWS::EC2::SecurityGroupEgress", - "Properties": { - "GroupId": { - "Ref": "sgkubernetesminionkubernetes" - }, - "IpProtocol": "-1", - "CidrIp": "0.0.0.0/0" - } - } - }, - "Description": "Kubernetes Cluster Creation Template using AWS CloudFormation", - "Outputs": { - "K8sURL": { - "Value": { - "Fn::Join": [ - "", - [ - "https://", - { - "Fn::GetAtt": [ - "instancei5efd3af1", - "PublicIp" - ] - }, - ":6443/ui" - ] - ] - }, - "Description": "Kubernetes Cluster Master IP Address" - }, - "MasterIP": { - "Description": "Master IP Address", - "Value": { - "Fn::Join": [ - "", - [ - "", - { - "Fn::GetAtt": [ - "instancei5efd3af1", - "PublicIp" - ] - } - ] - ] - } - }, - "MinionsRoleName": { - "Description": "Name of MinionsRole", - "Value": { - "Fn::Join": [ - "", - [ - "", - { - "Fn::GetAtt": [ - "MinionsRole", - "Arn" - ] - } - ] - ] - } - }, - "VpcID": { - "Description": "ID of VPC", - "Value": { - "Fn::Join": [ - "", - [ - "", - { - "Ref": "vpcc54420a1" - } - ] - ] - } - } - }, - "Metadata": { - "AWS::CloudFormation::Designer": { - "5e4d5136-5e00-43f2-88ca-21e30deece4e": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 90 - }, - "z": 1, - "embeds": [], - "isrelatedto": [ - "44a31cce-3c69-4cb3-bac2-2bf8fbf0604b", - "5df835e4-67ed-4967-8841-67a5de2b9cf4" - ] - }, - "9306acfd-ce94-4e5b-9a0b-abdf6978be27": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 210 - }, - "z": 1, - "embeds": [], - "isrelatedto": [ - "a190ec41-22f1-4585-bf34-2b1fe903485f", - "5df835e4-67ed-4967-8841-67a5de2b9cf4" - ] - }, - "d75a7952-3adb-42bc-9364-b41cbd62f694": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 330 - }, - "z": 1, - "embeds": [] - }, - "acf8dcff-cfab-4941-a7de-9b8e445ae526": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 450 - }, - "z": 1, - "embeds": [] - }, - "f713e70c-1a4d-4680-b4a2-f7b85e7458cc": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 570 - }, - "z": 1, - "embeds": [] - }, - "8dba90ed-bf34-433f-a7d9-ab8517543adb": { - "size": { - "width": 780, - "height": 780 - }, - "position": { - "x": 60, - "y": 90 - }, - "z": 1, - "embeds": [ - "f4e18814-35bc-494a-91e6-fafb0ec705ff", - "fed17564-3011-40cc-9f3d-81672947e416", - "9e8c941e-b4aa-4474-b2a4-7951635e0175", - "6959c47d-40ad-410b-941f-8b5a5ef18e28", - "b6097bd5-5202-44b7-bff0-21e6c17648f8" - ] - }, - "498bfac2-d655-40b5-a7b5-0aa042a544ce": { - "source": { - "id": "acf8dcff-cfab-4941-a7de-9b8e445ae526" - }, - "target": { - "id": "8dba90ed-bf34-433f-a7d9-ab8517543adb" - }, - "z": 1 - }, - "ca7bd359-c1e1-4bb5-9072-72863dda115f": { - "source": { - "id": "f713e70c-1a4d-4680-b4a2-f7b85e7458cc" - }, - "target": { - "id": "8dba90ed-bf34-433f-a7d9-ab8517543adb" - }, - "z": 1 - }, - "f4e18814-35bc-494a-91e6-fafb0ec705ff": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 690, - "y": 450 - }, - "z": 2, - "parent": "8dba90ed-bf34-433f-a7d9-ab8517543adb", - "embeds": [] - }, - "01c4d03f-bbaf-4d9f-81c2-9cbe45c12a77": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 690 - }, - "z": 1, - "embeds": [], - "ismemberof": [ - "f4e18814-35bc-494a-91e6-fafb0ec705ff" - ], - "isrelatedto": [ - "34090e53-04bc-4369-b851-83b599731685" - ] - }, - "fed17564-3011-40cc-9f3d-81672947e416": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 690, - "y": 570 - }, - "z": 2, - "parent": "8dba90ed-bf34-433f-a7d9-ab8517543adb", - "embeds": [] - }, - "ba908a72-6c66-47f3-8cf0-f545febc44be": { - "source": { - "id": "f4e18814-35bc-494a-91e6-fafb0ec705ff" - }, - "target": { - "id": "fed17564-3011-40cc-9f3d-81672947e416" - }, - "z": 2 - }, - "7daf34f8-5dbd-4881-b65a-dfc596013f26": { - "source": { - "id": "fed17564-3011-40cc-9f3d-81672947e416" - }, - "target": { - "id": "f4e18814-35bc-494a-91e6-fafb0ec705ff" - }, - "z": 2 - }, - "9e8c941e-b4aa-4474-b2a4-7951635e0175": { - "size": { - "width": 330, - "height": 330 - }, - "position": { - "x": 90, - "y": 150 - }, - "z": 2, - "parent": "8dba90ed-bf34-433f-a7d9-ab8517543adb", - "embeds": [ - "8da01726-6a8e-4e82-a06b-70625b5c229f", - "8116d1ab-9a68-4e1b-9285-760066ae1093" - ] - }, - "8da01726-6a8e-4e82-a06b-70625b5c229f": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 120, - "y": 210 - }, - "z": 3, - "parent": "9e8c941e-b4aa-4474-b2a4-7951635e0175", - "embeds": [], - "references": [ - "f713e70c-1a4d-4680-b4a2-f7b85e7458cc" - ], - "dependson": [ - "ca7bd359-c1e1-4bb5-9072-72863dda115f" - ] - }, - "6778df45-dbc1-460f-afef-073126f855c3": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 240, - "y": 210 - }, - "z": 3, - "parent": "9e8c941e-b4aa-4474-b2a4-7951635e0175", - "embeds": [], - "references": [ - "f713e70c-1a4d-4680-b4a2-f7b85e7458cc" - ] - }, - "e91552bd-fc54-4bf7-b77a-70ba6e0a4ad1": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 120, - "y": 150 - }, - "z": 3, - "parent": "9e8c941e-b4aa-4474-b2a4-7951635e0175", - "embeds": [], - "references": [ - "f713e70c-1a4d-4680-b4a2-f7b85e7458cc" - ] - }, - "6959c47d-40ad-410b-941f-8b5a5ef18e28": { - "size": { - "width": 330, - "height": 180 - }, - "position": { - "x": 90, - "y": 540 - }, - "z": 2, - "parent": "8dba90ed-bf34-433f-a7d9-ab8517543adb", - "embeds": [ - "a78ed404-1093-4861-b6f4-69aa2239c66e", - "706f95a5-fb5e-428c-aa73-f9d3c56d4e50" - ] - }, - "a78ed404-1093-4861-b6f4-69aa2239c66e": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 120, - "y": 600 - }, - "z": 3, - "parent": "6959c47d-40ad-410b-941f-8b5a5ef18e28", - "embeds": [] - }, - "706f95a5-fb5e-428c-aa73-f9d3c56d4e50": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 120, - "y": 600 - }, - "z": 3, - "parent": "6959c47d-40ad-410b-941f-8b5a5ef18e28", - "embeds": [] - }, - "b6097bd5-5202-44b7-bff0-21e6c17648f8": { - "size": { - "width": 240, - "height": 240 - }, - "position": { - "x": 480, - "y": 150 - }, - "z": 2, - "parent": "8dba90ed-bf34-433f-a7d9-ab8517543adb", - "embeds": [ - "e3ec9de7-4bb2-452d-a623-a6c94e9414ba" - ] - }, - "21432f55-5655-4510-9808-5f41c2038c45": { - "source": { - "id": "9e8c941e-b4aa-4474-b2a4-7951635e0175" - }, - "target": { - "id": "b6097bd5-5202-44b7-bff0-21e6c17648f8" - }, - "z": 2 - }, - "4f4dff08-c6e1-4a40-a9b6-9f4cc01aeb1e": { - "source": { - "id": "6959c47d-40ad-410b-941f-8b5a5ef18e28" - }, - "target": { - "id": "b6097bd5-5202-44b7-bff0-21e6c17648f8" - }, - "z": 2 - }, - "e3ec9de7-4bb2-452d-a623-a6c94e9414ba": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 510, - "y": 210 - }, - "z": 3, - "parent": "b6097bd5-5202-44b7-bff0-21e6c17648f8", - "embeds": [], - "isconnectedto": [ - "d75a7952-3adb-42bc-9364-b41cbd62f694" - ], - "isrelatedto": [ - "fed17564-3011-40cc-9f3d-81672947e416", - "d9051f55-2638-4223-a528-f6bd637d69ce", - "5df835e4-67ed-4967-8841-67a5de2b9cf4", - "44a31cce-3c69-4cb3-bac2-2bf8fbf0604b" - ] - }, - "8116d1ab-9a68-4e1b-9285-760066ae1093": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 120, - "y": 150 - }, - "z": 3, - "parent": "9e8c941e-b4aa-4474-b2a4-7951635e0175", - "embeds": [], - "references": [ - "e3ec9de7-4bb2-452d-a623-a6c94e9414ba" - ] - }, - "5df835e4-67ed-4967-8841-67a5de2b9cf4": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 900, - "y": 810 - }, - "z": 1, - "embeds": [], - "isconnectedto": [ - "b6097bd5-5202-44b7-bff0-21e6c17648f8" - ], - "isassociatedwith": [ - "01c4d03f-bbaf-4d9f-81c2-9cbe45c12a77" - ] - }, - "0295532e-d02f-457a-b66f-bf885a676894": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 990, - "y": 90 - }, - "z": 1, - "embeds": [], - "references": [ - "a7b57808-5d45-43b0-bf47-aad86ca4c28e" - ], - "dependson": [ - "e3ec9de7-4bb2-452d-a623-a6c94e9414ba" - ] - }, - "a7b57808-5d45-43b0-bf47-aad86ca4c28e": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 1080, - "y": 90 - }, - "z": 1, - "embeds": [] - }, - "a190ec41-22f1-4585-bf34-2b1fe903485f": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 990, - "y": 90 - }, - "z": 1, - "embeds": [], - "isassociatedwith": [ - "5df835e4-67ed-4967-8841-67a5de2b9cf4" - ] - }, - "44a31cce-3c69-4cb3-bac2-2bf8fbf0604b": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 1110, - "y": 90 - }, - "z": 1, - "embeds": [], - "isassociatedwith": [ - "5df835e4-67ed-4967-8841-67a5de2b9cf4" - ] - }, - "34cc30af-a656-4bdf-985e-1cce4c861d0a": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 1200, - "y": 90 - }, - "z": 1, - "embeds": [] - }, - "34090e53-04bc-4369-b851-83b599731685": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 1320, - "y": 90 - }, - "z": 1, - "embeds": [], - "isassociatedwith": [ - "34cc30af-a656-4bdf-985e-1cce4c861d0a" - ] - }, - "f8ac3cb8-a0c7-4c09-aa17-7cbc5b714b14": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 1440, - "y": 90 - }, - "z": 1, - "embeds": [], - "isassociatedwith": [ - "34cc30af-a656-4bdf-985e-1cce4c861d0a" - ] - }, - "062b2a90-29bd-4e7f-8512-2b9d87cd50ac": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 640, - "y": -10 - }, - "z": 1, - "embeds": [] - }, - "d9051f55-2638-4223-a528-f6bd637d69ce": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 510, - "y": -10 - }, - "z": 1, - "embeds": [], - "isassociatedwith": [ - "062b2a90-29bd-4e7f-8512-2b9d87cd50ac" - ] - }, - "1660e688-e775-4dcd-809f-ce55b2d8b03d": { - "size": { - "width": 60, - "height": 60 - }, - "position": { - "x": 750, - "y": -10 - }, - "z": 1, - "embeds": [], - "isassociatedwith": [ - "062b2a90-29bd-4e7f-8512-2b9d87cd50ac" - ] - } - } - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/error_config.json deleted file mode 100644 index 87f816280..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/error_config.json +++ /dev/null @@ -1,154 +0,0 @@ -{ - "user":{ - "ACTIVATE_RESOURCE":"Please Activate Google Google Identity and Access Management API for your project under Google Developers Console" - }, - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "RESOURCE_NOT_FOUND_WITHOUT_NAME":"Resource does not exit", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "INVALID_TYPE":"Token type is invalid", - "INVALID_SCOPE":"Token scope is invalid", - "LIMIT_EXCEED":"Token Creation Limit Exceed", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type", - "DEPENDENCY_EXIST_RESOURCE":"This Resource has dependency", - "SOMETHING_WRONG": "Internal Error", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "MARSHAL_ERROR":"Error in marshaling '%s'" - }, - "gke_infrastructure":{ - "NO_CLUSTERS":"No kubernetes Clusters are available", - "RESOURCE_NOT_FOUND_WITHOUT_NAME":"kubernetes Cluster is not found", - "RESOURCE_NOT_FOUND":"kubernetes Cluster '%s' is not found", - "NO_CLUSTERS_AVAILABLE":"kubernetes Cluster not Enabled for this Account", - "ALREADY_EXIST":"kubernetes Cluster '%s' already exists", - "ERROR_HITTING_EXT_API":"Unable to communicate with Google Cloud", - "ERROR_HITTING_EXT_API_AZURE":"Unable to communicate with Azure Cloud", - "ACTIVATE_RESOURCE":"Please activate Google Cloud Resource Manager APIs", - "ACTIVATE_AZURE_RESOURCE":"Please activate your Azure Subscriptons", - "SSHKEY_ACTIVATE":"Please Save Your Public SSH Key in General Settings Page", - "REX_VALIDATION":"%s should be in the format of %s" - }, - "cDelivery":{ - "RESOURCE_NOT_FOUND":"Source Control Account '%s' does not exist", - "RESOURCE_NOT_FOUND_WITHOUT_NAME":"Source Control Account does not exist", - "ALREADY_EXIST":"Continuous Delivery for repository '%s' is already enabled", - "WEBHOOK_FAILED":"Error in injecting the webhook for '%s'" - }, - "codebase":{ - "NO_CODEBASE":"No Source Control accounts are available", - "RESOURCE_NOT_FOUND":"Source Control account '%s' does not exist", - "RESOURCE_NOT_FOUND_WITHOUT_NAME":"Source Control account does not exist", - "URL_NOT_FOUND":"Repository Url '%s' cannot be identified", - "NOT_AUTHENTICATED":"Repository Url '%s' cannot be authenticated with account '%s'", - "ALREADY_EXIST":"Source Control account '%s' already exists", - "ERROR_HITTING_EXT_API":"Unable to communicate with codebase service", - "BAD_CREDENTIALS":"Bad credentials; Source control Access Token may have been revoked for account '%s'", - "INVALID_CREDENTIALS":"Spefied repository does not seems to be public. You donot have permission to access it.", - "EMPTY_REPO":"Specified repository is empty", - "TAG_NOT_FOUND":"Specified tag not found. Please enter valid Tag '%s'.", - "PRIVATE_URL":"It may be Private Url '%s'", - "INVALID_URL":"Invalid Repository Url '%s'" - }, - "release_build":{ - "ERROR_HITTING_INT_API":"Unable to communicate with Internal Service", - "ERROR_HITTING_EXT_API":"Unable to communicate with External Service", - "NOT_FOUND":"There is no Result Found", - "INVALID_RELEASE":"Invalid Release '%s'", - "INVALID_BUILD":"Invalid Build '%s'", - "INVALID_PIPELINE":"Invalid Pipeline '%s'", - "INVALID_OPERATION":"Invalid operation '%s'", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'" - }, - "platform":{ - "ERROR_HITTING_INT_API":"Unable to communicate with Internal Service", - "ERROR_HITTING_EXT_API":"Unable to communicate with External Service", - "NOT_FOUND":"There is no Result Found", - "INVALID_RELEASE":"Invalid Release '%s'", - "INVALID_BUILD":"Invalid Build '%s'", - "INVALID_PIPELINE":"Invalid Pipeline '%s'", - "INVALID_OPERATION":"Invalid operation '%s'", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'" - }, - "Metrics":{ - "METRICS_NOTFOUND":"Requested projectID '%s' is not found" - }, - "All":{ - "SOMETHING_WRONG": "Internal Error", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "INVALID_ID":"Requested resource id '%s' is invalid format", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type", - "PAGESIZE_NEGAVE":"Page or Size can not be a negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'" - }, - "Build":{ - "BUILD_NOTFOUND":"The requested build '%s' is not found", - "INVALID_ARTIFACTTYPE":"The given service's artifact type is incompatible to build '%s'", - "BUILDAGENT_NOTRESPOND":"Build agent is not responding to Build server", - "ARTIFACT_EMPTY":"Artifacts is not configured for the service '%s' with version '%d'", - "BUILDLOG_NOTFOUND":"The build log is not available for the requested build id '%s'", - "BUILDSCANLOG_NOTFOUND":"The build scan log is not available for the requested build id '%s'", - "10MB_HEADER_MISSING":"The header value should be to set to header 'Content-Type' with 'application/octet-stream' if log size more than 10 MB", - "CLUSTER_ID_MISSING":"Cluster ID cannot be empty", - "ALLOCATION_POLICY_MISSING":"Alloctation Policy ID cannot be empty", - "MAX_LIMIT":"Maximum build limit reached please try later", - "CONNECT_QUEUE":"Cannot connect into queue", - "PLACE_QUEUE":"Cannot place the build into queue" - }, - "cb":{ - "DEP_REF_ALREADY_EXISTS":"This Depency Reference Id '%s' version '%s' is already exists", - "CODEBASE_EXISTS":"CODEBASE_EXISTS", - "KEY_EXISTS":"This Key '%s' is already exists.please use another Key", - "NAME_EXISTS":"This Name '%s' is already exists.please use another Name", - "MANAGED_TYPE":"User cannot delete Managed CodeBaseAuth", - "CODEBASE_NOTFOUND":"The requested codebase '%s' is not found", - "INVALID_ARTIFACTTYPE":"The given service's artifact type is incompatible to build '%s'", - "BUILDAGENT_NOTRESPOND":"Build agent is not responding to Build server", - "ARTIFACT_EMPTY":"Artifacts is not configured for the service '%s' with version '%d'", - "BUILDLOG_NOTFOUND":"The build log is not available to requested build id '%s'", - "10MB_HEADER_MISSING":"The header value should be to set to header 'Content-Type' with 'application/octet-stream' if log size more than 10 MB" - }, - "Topup":{ - "TOPUP_NOTFOUND":"Requested accountID '%s' is not found" - }, - "Release":{ - "RELEASE_NOTFOUND": "Requested releaseID '%s' is not found", - "PROFILE_NAME_NOT_FOUND":"Requested ProfileID '%s' is not found", - "PROFILE_NAME_EXISTS":"This Profile Name '%s' already exists", - "CONTAINER_EXISITS":"This containerID '%s' already exists", - "REPO_CONTAINER_EXISITS":"This containerID '%s' already exists on releaseID '%s'", - "REPO_NOT_SUPPORTED":"This containerID '%s' is imagebased. Repository is only supported for 'dockerfileBased,codeBased'", - "ACCOUNT_NOT_ACTIVE": "Not an active account", - "MISMATCHED_ARTIFACTS":"Given update type '%s' is not matched with the existing service artifact type '%s'", - "ARTIFACT_UPDATE_EMPTY":"artifactConfig.%s field can not be empty if update type is %s", - "RELEASE_NAME_EXISTS":"This release Name '%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "REGISTRY_VALIDATION_FAILED":"Failed in registry validation: %s", - "CI_NOT_APPLICABLE":"CI is enabled.But CI not applicable for Unregistered CodeBase Repository", - "CODEBASE_VALIDATION":"artifactConfig.CodebaseRepo.RegisteredCodebase is selected. So ServiceConfig.ArtifactConfig.CodebaseRepo.CodebaseID cannot be empty", - "PRIVATE_SCM": "Requested SCM type is not supported for deck subscription type '%s'", - "VULNERABILITY_UPDATE_EXITSCAN":"vulnerabilityScan.ExitScan value is '%s' is not matched with existing vulnerabilityScan values '%s'", - "REPO_UPDATE_EMPTY":"%s field can not be empty", - "REPO_NOTFOUND":"Requested repo '%s' is not found in release '%s'", - "PROFILE_NOTFOUND":"Requested profile '%s' is not found in the distribution '%s'", - "DISTRIBUTION_SERVICE_NOTFOUND":"Requested service '%s' is not found in distribution '%s'", - "DISTRIBUTION_NOTFOUND":"Requested distribution '%s' is not found in release '%s'", - "REPO_VALIDATION_FAILED":"Failed in repo validation: %s", - "DISTRIBUTION_NAME_EXISTS":"This distribution Name '%s' already exists", - "CANT_DELETE_DISTRIBUTION":"Gopaddle's default distribution can't be removed", - "CANT_DELETE_PROFILE":"Gopaddle's default profile can't be removed", - "CANT_UPDATE_RELEASE":"Gopaddle's default release can't be updated", - "DISTRIBUTION_SERVICE_EXISTS": "Container '%s' already exists in distribution '%s'" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/internal_api.json deleted file mode 100644 index a8a5e8bfb..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/internal_api.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s&project=%s", - "port":"8005" - }, - "aclProject":{ - "url":"http://%s:%s/api-in/%s/v1/acl?project=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api-in/%s/v1/subusers/%s", - "port":"8005" - }, - "project":{ - "url":"http://%s:%s/api-internal/%s/v1/projectlist", - "port":"8005" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/log_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/log_config.json deleted file mode 100644 index 8f71fa297..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/log_config.json +++ /dev/null @@ -1,74 +0,0 @@ -{ - "formatters": { - "server": { - "format": "%(asctime)s %(levelname)s (%(filename)s:%(lineno)d) %(message)s", - "datefmt": "%Y-%m-%d %H:%M:%S" - }, - "application": { - "format": "%(asctime)s %(message)s", - "datefmt": "%Y-%m-%d %H:%M:%S" - } - }, - "handlers": { - "server": { - "class": "RotatingFileHandler", - "filepath": "./core.log", - "mode": "O_APPEND", - "bufferSize": 0, - "bufferFlushTime": 30000, - "inputChanSize": 1, - "maxBytes": 104857600, - "backupCount": 9, - "formatter": "server" - }, - "application": { - "class": "RotatingFileHandler", - "filepath": "./test.log", - "mode": "O_APPEND", - "bufferSize": 0, - "bufferFlushTime": 30000, - "inputChanSize": 1, - "maxBytes": 104857600, - "backupCount": 9, - "formatter": "application" - } - }, - "loggers": { - "debug": { - "level": "DEBUG", - "handlers": [ - "server" - ] - }, - "info": { - "level": "INFO", - "handlers": [ - "server" - ] - }, - "warn": { - "level": "WARN", - "handlers": [ - "server" - ] - }, - "error": { - "level": "ERROR", - "handlers": [ - "server" - ] - }, - "fatal": { - "level": "FATAL", - "handlers": [ - "server" - ] - }, - "application": { - "level": "INFO", - "handlers": [ - "application" - ] - } - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/profiles-kube.json deleted file mode 100644 index 9727a9bba..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/profiles-kube.json +++ /dev/null @@ -1,272 +0,0 @@ -{ - "mongodb":{ - "db-name":"gpcore", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - }, - "rabbitmq":{ - "mq-protocol":"amqp", - "mq-user":"admin", - "mq-password":"cGFzc3dvcmQ", - "mq-ip":"NODE_IP", - "mq-port":"NODE_PORT", - "mq-default-host":"/build", - "mq-worker-queue":"worker-queue" - }, - "rabbitmq-agent":{ - "agentmq-protocol":"amqp", - "agentmq-user":"admin", - "agentmq-password":"cGFzc3dvcmQ", - "agentmq-ip":"NODE_IP", - "agentmq-port":"NODE_PORT", - "agentmq-default-host":"/build", - "agentmq-worker-queue":"worker-queue" - }, - "mqMaxAttempt":"5", - "build":{ - "buildLogDir":"/buildlog", - "buildScanLogDir":"/buildscanlog", - "buildImage":"611260657835.dkr.ecr.ap-southeast-2.amazonaws.com/buildagent-v1:agent-1.14", - "buildImage-arm64":"611260657835.dkr.ecr.ap-southeast-2.amazonaws.com/buildagent-v1:agent-arm64-1.14", - "kaniko-default":"611260657835.dkr.ecr.ap-southeast-2.amazonaws.com/kaniko:v1.3.0", - "kaniko-amd64":"611260657835.dkr.ecr.ap-southeast-2.amazonaws.com/kaniko:amd64-v1.3.0", - "kaniko-arm64":"611260657835.dkr.ecr.ap-southeast-2.amazonaws.com/kaniko:arm64-v1.3.0", - "kaniko-multi-arch":"611260657835.dkr.ecr.ap-southeast-2.amazonaws.com/kaniko:multi-arch-v1.3.0", - "trivyImage":"611260657835.dkr.ecr.ap-southeast-2.amazonaws.com/trivy:0.18.3", - "trivyImage-arm64":"611260657835.dkr.ecr.ap-southeast-2.amazonaws.com/trivy:0.18.3-arm64", - "craneImage":"611260657835.dkr.ecr.ap-southeast-2.amazonaws.com/crane:debug", - "craneImage-arm64":"611260657835.dkr.ecr.ap-southeast-2.amazonaws.com/crane:debug-arm64" - }, - "signup-url":"DOMAIN_NAME", - "github":{ - "github_endpoints":{ - "webhookURL":"WEBHOOK_NODE_IP", - "webhook_config_url":"/api/gwebhook" - }, - "repo_create_payload":{ - "description":"This is repository created by Gopaddle", - "homepage":"DOMAIN_NAME", - "private":false, - "has_issues":true, - "has_wiki":true, - "has_downloads":true - } - }, - "bitbucket":{ - "bitbucket_endpoints":{ - "webhookURL":"WEBHOOK_NODE_IP", - "webhook_config_url":"/api/bwebhook" - }, - "repo_create_payload":{ - "scm":"git", - "description":"This is repository created by Gopaddle", - "is_private":false, - "has_issues":true, - "has_wiki":true, - "fork_policy":"allow_forks" - } - }, - "gitlab":{ - "github_endpoints":{ - "webhookURL":"WEBHOOK_NODE_IP", - "webhook_config_url":"/api/gitlabWebhook" - }, - "repo_create_payload":{ - "description":"This is repository created by Gopaddle", - "visibility_level":10, - "issues_enabled":true, - "wiki_enabled":true, - "archived":true - } - }, - "endpoints":{ - "google_endpoints":{ - "refresh_token":"https://www.googleapis.com/oauth2/v3/token", - "cluster_details":"https://console.developers.google.com/kubernetes/clusters/details" - }, - "github":{ - "endpoints":{ - "host":"https://github.com", - "host_api":"https://api.github.com" - }, - "saas_suffix":{ - "access_token":"/login/oauth/access_token", - "user_data":"/user", - "create_repo":"/user/repos", - "getrepo":"/repos/:username/:reponame", - "getcommit":"/repos/:username/:reponame/commits", - "push_content":"/repos/:username/:reponame/contents/:path", - "tags":"/repos/:username/:reponame/tags", - "branches":"/repos/:username/:reponame/branches", - "listing_repos":"/user/repos", - "pull_tarball":"/repos/:username/:reponame/tarball", - "webhook":"/repos/:username/:reponame/hooks", - "webhook_get":"/repos/:username/:reponame/hooks/:hookID", - "Remove_Git_Webhook":"/repos/:username/:reponame/hooks/:hookID" - }, - "onprem_suffix":{ - "access_token":"/login/oauth/access_token", - "user_data":"/api/v3/user", - "tags":"/api/v3/repos/:username/:reponame/tags", - "getrepo":"/api/v3/repos/:username/:reponame", - "getcommit":"/api/v3/repos/:username/:reponame/commits", - "branches":"/api/v3/repos/:username/:reponame/branches", - "listing_repos":"/api/v3/user/repos", - "pull_tarball":"/api/v3/repos/:username/:reponame/tarball", - "webhook":"/api/v3/repos/:username/:reponame/hooks", - "webhook_get":"/api/v3/repos/:username/:reponame/hooks/:hookID", - "Remove_Git_Webhook":"/api/v3/repos/:username/:reponame/hooks/:hookID" - }, - "urlvalidation":[ - "https://:hostname/.*/(.*)\\.git", - "git@:hostname:.*/(.*)\\.git", - "https://:hostname/(.*)/.*\\.git", - "git@:hostname:(.*)/.*\\.git" - ] - }, - "gitlab":{ - "endpoints":{ - "host":"https://gitlab.com", - "host_api":"https://gitlab.com" - }, - "saas_suffix":{ - "access_token":"/oauth/token", - "user_data":"/api/v4/user", - "create_repo":"/api/v3/projects", - "getrepo":"/api/v4/projects/:id", - "getcommit":"/api/v4/projects/:id/repository/commits", - "push_content":"/api/v3/projects/:id/repository/files", - "tags":"/api/v4/projects/:id/repository/tags", - "branches":"/api/v4/projects/:id/repository/branches", - "listing_repos":"/user/repos", - "pull_tarball":"git clone -b 'branch' https://oauth2:access_token@:clone_url", - "webhook":"/api/v4/projects/:id/hooks", - "webhook_get":"/api/v4/projects/:id/hooks/:hookID", - "Remove_Git_Webhook":"/api/v4/projects/:id/hooks/:hookID" - }, - "onprem_suffix":{ - "access_token":"/oauth/token", - "user_data":"/api/v4/user", - "tags":"/api/v4/projects/:id/repository/tags", - "getrepo":"/api/v4/projects/:id", - "getcommit":"/api/v4/projects/:id/repository/commits", - "branches":"/api/v4/projects/:id/repository/branches", - "listing_repos":"/user/repos", - "pull_tarball":"git clone -b 'branch' https://oauth2:access_token@:clone_url", - "webhook":"/api/v4/projects/:id/hooks", - "webhook_get":"/api/v4/projects/:id/hooks/:hookID", - "Remove_Git_Webhook":"/api/v4/projects/:id/hooks/:hookID" - }, - "urlvalidation":[ - "https://:hostname/(.*?)/(.*?)\\.git", - "git@:hostname:(.*)/(.*)\\.git" - ] - }, - "bitbucket":{ - "endpoints":{ - "host":"https://bitbucket.org", - "host_api":"https://api.bitbucket.org" - }, - "saas_suffix":{ - "access_token":"/site/oauth2/access_token", - "user_data":"/2.0/user", - "user_email":"/2.0/user/emails", - "create_repo":"/2.0/repositories/:username/:reponame", - "getrepo":"/api/2.0/repositories/:username/:reponame", - "getcommit":"/api/2.0/repositories/:username/:reponame/commits", - "tags":"/api/2.0/repositories/:username/:reponame/refs/tags", - "branches":"/api/2.0/repositories/:username/:reponame/refs/branches", - "listing_repos":"/!api/2.0/repositories/:username", - "pull_tarball":"/:username/:reponame/get/:origin.tar.gz", - "webhook":"/2.0/repositories/:username/:reponame/hooks", - "webhook_get":"/2.0/repositories/:username/:reponame/hooks/:hookID", - "Remove_Git_Webhook":"/2.0/repositories/:username/:reponame/hooks/:hookID" - }, - "onprem_suffix":{ - "access_token":"/site/oauth2/access_token", - "user_data":"/2.0/user", - "user_email":"/2.0/user/emails", - "getrepo":"/api/2.0/repositories/:username/:reponame", - "tags":"/api/2.0/repositories/:username/:reponame/refs/tags", - "branches":"/api/2.0/repositories/:username/:reponame/refs/branches", - "listing_repos":"/!api/2.0/repositories/:username", - "pull_tarball":"/:username/:reponame/get/:origin.tar.gz", - "webhook":"/api/v3/repos/:username/:reponame/hooks", - "webhook_get":"/2.0/repositories/:username/:reponame/hooks/:hookID", - "Remove_Git_Webhook":"/2.0/repositories/:username/:reponame/hooks/:hookID" - }, - "urlvalidation":[ - "https://.*@:hostname/(.*?)/(.*?)\\.git", - "https://:hostname/(.*?)/(.*?)\\.git", - "git@:hostname:(.*)/(.*)\\.git" - ] - }, - "github_endpoints":{ - "access_token":"https://github.com/login/oauth/access_token", - "user_data":"https://api.github.com/user", - "create_repo":"https://api.github.com/user/repos", - "push_content":"https://api.github.com/repos/:username/:reponame/contents/:path", - "listing_tags":"https://api.github.com/repos/:username/:reponame/tags", - "listing_branches":"https://api.github.com/repos/:username/:reponame/branches", - "listing_repos":"https://api.github.com/user/repos", - "pull_tarball":"https://api.github.com/repos/:username/:reponame/tarball", - "webhook":"https://api.github.com/repos/:username/:reponame/hooks", - "webhook_get":"https://api.github.com/repos/:username/:reponame/hooks/:hookID", - "Remove_Git_Webhook":"https://api.github.com/repos/:username/:reponame/hooks/:hookID" - }, - "bitbucket_endpoints":{ - "access_token":"https://bitbucket.org/site/oauth2/access_token", - "user_data":"https://api.bitbucket.org/2.0/user", - "user_email":"https://api.bitbucket.org/2.0/user/emails", - "create_repo":"https://api.bitbucket.org/2.0/repositories/:username/:reponame", - "push_content":"", - "listing_tags":"https://bitbucket.org/api/2.0/repositories/:username/:reponame//refs/tags", - "listing_branches":"https://bitbucket.org/api/2.0/repositories/:username/:reponame/refs/branches", - "listing_repos":"https://bitbucket.org/!api/2.0/repositories/:username", - "pull_tarball":"https://bitbucket.org/:username/:reponame/get/:origin.tar.gz", - "webhook_get":"https://api.bitbucket.org/2.0/repositories/:username/:reponame/hooks/:hookID", - "webhook":"https://api.bitbucket.org/2.0/repositories/:username/:reponame/hooks", - "Remove_Git_Webhook":"https://api.bitbucket.org/2.0/repositories/:username/:reponame/hooks/:hookID" - }, - "gitlab_endpoints":{ - "access_token":"https://gitlab.com/oauth/token", - "user_data":"https://gitlab.com/api/v4/user", - "create_repo":"https://gitlab.com/api/v4/projects", - "push_content":"https://gitlab.com/api/v4/projects/:id/repository/files", - "listing_tags":"https://gitlab.com/api/v4/projects/:id/repository/tags", - "listing_branches":"https://gitlab.com/api/v4/projects/:id/repository/branches", - "listing_repos":"https://api.github.com/user/repos", - "pull_tarball":"git clone :b https://oauth2:access_token@:clone_url", - "webhook":"https://gitlab.com/api/v4/projects/:id/hooks", - "webhook_get":"https://gitlab.com/api/v4/projects/:id/hooks/:hookID", - "Remove_Git_Webhook":"https://gitlab.com/api/v4/projects/:id/hooks/:hookID" - }, - "repo_create_payload":{ - "scm":"git", - "description":"This is repository created by Gopaddle", - "is_private":false, - "has_issues":true, - "has_wiki":true, - "fork_policy":"allow_forks" - } - }, - "google":{ - "google_endpoints":{ - "refresh_token":"https://www.googleapis.com/oauth2/v3/token", - "cluster_details":"https://console.developers.google.com/kubernetes/clusters/details" - } - }, - "logger":{ - "logType":"debug" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/script.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/script.json deleted file mode 100644 index 5f64ccdb9..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/script.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "registry": { - "GetAccessToken": "#!/bin/bash\n\nexport AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID\nexport AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY\nexport REGION=$REGION\n\naws ecr get-authorization-token --region us-east-1 --output text \\\n --query authorizationData[].authorizationToken | base64 -d | cut -d: -f2\n" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/service_directory-kube.json deleted file mode 100644 index 727707eea..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/service_directory-kube.json +++ /dev/null @@ -1,90 +0,0 @@ -{ - "user.ep":{ - "host":"usermanager", - "port":"8005" - }, - "server.ep":{ - "host":"gpcore", - "port":"8759" - }, - "kube.ep":{ - "host":"gpcore", - "port":"8759" - }, - "codebase.ep":{ - "host":"gpcore", - "port":"8759" - }, - "builder.ep":{ - "host":"gpcore", - "port":"8759" - }, - "build_agent.ep":{ - "host":"buildagent", - "port":"8000" - }, - "failed_build_access.ep":{ - "host":"beta.gopaddle.io", - "port":"4200" - }, - "registry.ep":{ - "host":"cloudmanager", - "port":"8018" - }, - "platform.ep":{ - "host":"cloudmanager", - "port":"8018" - }, - "template.ep":{ - "host":"deploymentmanager", - "port":"8003" - }, - "tx.ep":{ - "host":"gpcore", - "port":"8759" - }, - "configmanager.ep":{ - "host":"configmanager", - "port":"8001" - }, - "notification.ep":{ - "host":"activitymanager", - "port":"8009" - }, - "clustermanager.ep":{ - "host":"clustermanager", - "port":"8013" - }, - "allocationpolicy.ep":{ - "host":"configmanager", - "port":"8001" - }, - "nodechecker.ep": { - "host":"nodechecker", - "port":"8020" - }, - "billing.ep":{ - "host":"costmanager", - "port":"8011" - }, - "release.ep":{ - "host":"gpcore", - "port":"8759" - }, - "allocationpolicy.ep":{ - "host":"configmanager", - "port":"8001" - }, - "usermanager.ep":{ - "host":"usermanager", - "port":"8005" - }, - "cloudaccount.ep":{ - "host":"cloudmanager", - "port":"8018" - }, -"build.ep":{ - "host":"gpcore", - "port":"8759" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/versionMatrix.json b/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/versionMatrix.json deleted file mode 100644 index 4c764dd7b..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/gpcore/core/versionMatrix.json +++ /dev/null @@ -1,1593 +0,0 @@ -{ - "supportedVersions": [ - "v1.6", - "v1.7", - "v1.8", - "v1.9", - "v1.10", - "v1.11", - "v1.12", - "v1.13", - "v1.14", - "v1.15", - "v1.16", - "v1.17", - "v1.18", - "v1.19", - "v1.20", - "v1.21", - "v1.22", - "v1.23", - "v1.24", - "v1.25", - "v1.26", - "v1.27" - ], - "v1.6": { - "deployment": [ - "apps/v1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.7": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.8": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.9": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.10": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "job":[ - "batch/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.11": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.12": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.13": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.14": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, -"v1.15": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.16": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.17": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.18": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.19": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.20": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.21": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.22": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.23": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.24": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.25": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.26": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - }, - "v1.27": { - "deployment": [ - "apps/v1", - "apps/v1beta1" - ], - "rollBack": [ - "extensions/v1beta1" - ], - "statefulSet": [ - "apps/v1", - "apps/v1beta1" - ], - "daemonSet": [ - "apps/v1" - ], - "replicaSet": [ - "extensions/v1beta1" - ], - "namespace": [ - "v1" - ], - "serviceAccount": [ - "v1" - ], - "networking": [ - "networking.k8s.io/v1" - ], - "service": [ - "v1" - ], - "pod": [ - "v1" - ], - "config": [ - "v1" - ], - "secret": [ - "v1" - ], - "ingress": [ - "extensions/v1beta1" - ], - "persistentVolume": [ - "v1" - ], - "persistentVolumeClaim": [ - "v1" - ], - "storageClass": [ - "storage.k8s.io/v1" - ], - "CSIDriver":[ - "storage.k8s.io/v1beta1" - ], - "job":[ - "batch/v1" - ], - "autoscaling": [ - "autoscaling/v1" - ], - "role": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "clusterRole": [ - "rbac.authorization.k8s.io/v1beta1", - "rbac.authorization.k8s.io/v1" - ], - "node": [ - "v1" - ] - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/influxdb/influxdb/influxdb.conf b/charts/gopaddle/gopaddle/charts/gp-core/files/influxdb/influxdb/influxdb.conf deleted file mode 100644 index 25272bfd0..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/influxdb/influxdb/influxdb.conf +++ /dev/null @@ -1,593 +0,0 @@ -### Welcome to the InfluxDB configuration file. - -# The values in this file override the default values used by the system if -# a config option is not specified. The commented out lines are the configuration -# field and the default value used. Uncommenting a line and changing the value -# will change the value used at runtime when the process is restarted. - -# Once every 24 hours InfluxDB will report usage data to usage.influxdata.com -# The data includes a random ID, os, arch, version, the number of series and other -# usage data. No data from user databases is ever transmitted. -# Change this option to true to disable reporting. -# reporting-disabled = false - -# Bind address to use for the RPC service for backup and restore. -# bind-address = "127.0.0.1:8088" - -### -### [meta] -### -### Controls the parameters for the Raft consensus group that stores metadata -### about the InfluxDB cluster. -### - -[meta] - # Where the metadata/raft database is stored - dir = "/var/lib/influxdb/meta" - - # Automatically create a default retention policy when creating a database. - retention-autocreate = false - - # If log messages are printed for the meta service - # logging-enabled = true - -### -### [data] -### -### Controls where the actual shard data for InfluxDB lives and how it is -### flushed from the WAL. "dir" may need to be changed to a suitable place -### for your system, but the WAL settings are an advanced configuration. The -### defaults should work for most systems. -### - -[data] - # The directory where the TSM storage engine stores TSM files. - dir = "/var/lib/influxdb/data" - - # The directory where the TSM storage engine stores WAL files. - wal-dir = "/var/lib/influxdb/wal" - - # The amount of time that a write will wait before fsyncing. A duration - # greater than 0 can be used to batch up multiple fsync calls. This is useful for slower - # disks or when WAL write contention is seen. A value of 0s fsyncs every write to the WAL. - # Values in the range of 0-100ms are recommended for non-SSD disks. - # wal-fsync-delay = "0s" - - - # The type of shard index to use for new shards. The default is an in-memory index that is - # recreated at startup. A value of "tsi1" will use a disk based index that supports higher - # cardinality datasets. - # index-version = "inmem" - - # Trace logging provides more verbose output around the tsm engine. Turning - # this on can provide more useful output for debugging tsm engine issues. - # trace-logging-enabled = false - - # Whether queries should be logged before execution. Very useful for troubleshooting, but will - # log any sensitive data contained within a query. - # query-log-enabled = true - - # Validates incoming writes to ensure keys only have valid unicode characters. - # This setting will incur a small overhead because every key must be checked. - # validate-keys = false - - # Settings for the TSM engine - - # CacheMaxMemorySize is the maximum size a shard's cache can - # reach before it starts rejecting writes. - # Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k). - # Values without a size suffix are in bytes. - # cache-max-memory-size = "1g" - - # CacheSnapshotMemorySize is the size at which the engine will - # snapshot the cache and write it to a TSM file, freeing up memory - # Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k). - # Values without a size suffix are in bytes. - cache-snapshot-memory-size = "25m" - - # CacheSnapshotWriteColdDuration is the length of time at - # which the engine will snapshot the cache and write it to - # a new TSM file if the shard hasn't received writes or deletes - # cache-snapshot-write-cold-duration = "10m" - - # CompactFullWriteColdDuration is the duration at which the engine - # will compact all TSM files in a shard if it hasn't received a - # write or delete - # compact-full-write-cold-duration = "4h" - - # The maximum number of concurrent full and level compactions that can run at one time. A - # value of 0 results in 50% of runtime.GOMAXPROCS(0) used at runtime. Any number greater - # than 0 limits compactions to that value. This setting does not apply - # to cache snapshotting. - # max-concurrent-compactions = 0 - - # CompactThroughput is the rate limit in bytes per second that we - # will allow TSM compactions to write to disk. Note that short bursts are allowed - # to happen at a possibly larger value, set by CompactThroughputBurst - # compact-throughput = "48m" - - # CompactThroughputBurst is the rate limit in bytes per second that we - # will allow TSM compactions to write to disk. - # compact-throughput-burst = "48m" - - # If true, then the mmap advise value MADV_WILLNEED will be provided to the kernel with respect to - # TSM files. This setting has been found to be problematic on some kernels, and defaults to off. - # It might help users who have slow disks in some cases. - # tsm-use-madv-willneed = false - - # Settings for the inmem index - - # The maximum series allowed per database before writes are dropped. This limit can prevent - # high cardinality issues at the database level. This limit can be disabled by setting it to - # 0. - # max-series-per-database = 1000000 - - # The maximum number of tag values per tag that are allowed before writes are dropped. This limit - # can prevent high cardinality tag values from being written to a measurement. This limit can be - # disabled by setting it to 0. - # max-values-per-tag = 100000 - - # Settings for the tsi1 index - - # The threshold, in bytes, when an index write-ahead log file will compact - # into an index file. Lower sizes will cause log files to be compacted more - # quickly and result in lower heap usage at the expense of write throughput. - # Higher sizes will be compacted less frequently, store more series in-memory, - # and provide higher write throughput. - # Valid size suffixes are k, m, or g (case insensitive, 1024 = 1k). - # Values without a size suffix are in bytes. - # max-index-log-file-size = "1m" - - # The size of the internal cache used in the TSI index to store previously - # calculated series results. Cached results will be returned quickly from the cache rather - # than needing to be recalculated when a subsequent query with a matching tag key/value - # predicate is executed. Setting this value to 0 will disable the cache, which may - # lead to query performance issues. - # This value should only be increased if it is known that the set of regularly used - # tag key/value predicates across all measurements for a database is larger than 100. An - # increase in cache size may lead to an increase in heap usage. - series-id-set-cache-size = 100 - -### -### [coordinator] -### -### Controls the clustering service configuration. -### - -[coordinator] - # The default time a write request will wait until a "timeout" error is returned to the caller. - # write-timeout = "10s" - - # The maximum number of concurrent queries allowed to be executing at one time. If a query is - # executed and exceeds this limit, an error is returned to the caller. This limit can be disabled - # by setting it to 0. - # max-concurrent-queries = 0 - - # The maximum time a query will is allowed to execute before being killed by the system. This limit - # can help prevent run away queries. Setting the value to 0 disables the limit. - # query-timeout = "0s" - - # The time threshold when a query will be logged as a slow query. This limit can be set to help - # discover slow or resource intensive queries. Setting the value to 0 disables the slow query logging. - # log-queries-after = "0s" - - # The maximum number of points a SELECT can process. A value of 0 will make - # the maximum point count unlimited. This will only be checked every second so queries will not - # be aborted immediately when hitting the limit. - # max-select-point = 0 - - # The maximum number of series a SELECT can run. A value of 0 will make the maximum series - # count unlimited. - # max-select-series = 0 - - # The maximum number of group by time bucket a SELECT can create. A value of zero will max the maximum - # number of buckets unlimited. - # max-select-buckets = 0 - -### -### [retention] -### -### Controls the enforcement of retention policies for evicting old data. -### - -[retention] - # Determines whether retention policy enforcement enabled. - # enabled = true - - # The interval of time when retention policy enforcement checks run. - # check-interval = "30m" - -### -### [shard-precreation] -### -### Controls the precreation of shards, so they are available before data arrives. -### Only shards that, after creation, will have both a start- and end-time in the -### future, will ever be created. Shards are never precreated that would be wholly -### or partially in the past. - -[shard-precreation] - # Determines whether shard pre-creation service is enabled. - # enabled = true - - # The interval of time when the check to pre-create new shards runs. - # check-interval = "10m" - - # The default period ahead of the endtime of a shard group that its successor - # group is created. - # advance-period = "30m" - -### -### Controls the system self-monitoring, statistics and diagnostics. -### -### The internal database for monitoring data is created automatically if -### if it does not already exist. The target retention within this database -### is called 'monitor' and is also created with a retention period of 7 days -### and a replication factor of 1, if it does not exist. In all cases the -### this retention policy is configured as the default for the database. - -[monitor] - # Whether to record statistics internally. - # store-enabled = true - - # The destination database for recorded statistics - # store-database = "_internal" - - # The interval at which to record statistics - # store-interval = "10s" - -### -### [http] -### -### Controls how the HTTP endpoints are configured. These are the primary -### mechanism for getting data into and out of InfluxDB. -### - -[http] - # Determines whether HTTP endpoint is enabled. - # enabled = true - - # Determines whether the Flux query endpoint is enabled. - # flux-enabled = false - - # Determines whether the Flux query logging is enabled. - # flux-log-enabled = false - - # The bind address used by the HTTP service. - # bind-address = ":8086" - - # Determines whether user authentication is enabled over HTTP/HTTPS. - # auth-enabled = false - - # The default realm sent back when issuing a basic auth challenge. - # realm = "InfluxDB" - - # Determines whether HTTP request logging is enabled. - # log-enabled = true - - # Determines whether the HTTP write request logs should be suppressed when the log is enabled. - # suppress-write-log = false - - # When HTTP request logging is enabled, this option specifies the path where - # log entries should be written. If unspecified, the default is to write to stderr, which - # intermingles HTTP logs with internal InfluxDB logging. - # - # If influxd is unable to access the specified path, it will log an error and fall back to writing - # the request log to stderr. - # access-log-path = "" - - # Filters which requests should be logged. Each filter is of the pattern NNN, NNX, or NXX where N is - # a number and X is a wildcard for any number. To filter all 5xx responses, use the string 5xx. - # If multiple filters are used, then only one has to match. The default is to have no filters which - # will cause every request to be printed. - # access-log-status-filters = [] - - # Determines whether detailed write logging is enabled. - # write-tracing = false - - # Determines whether the pprof endpoint is enabled. This endpoint is used for - # troubleshooting and monitoring. - # pprof-enabled = true - - # Enables authentication on pprof endpoints. Users will need admin permissions - # to access the pprof endpoints when this setting is enabled. This setting has - # no effect if either auth-enabled or pprof-enabled are set to false. - # pprof-auth-enabled = false - - # Enables a pprof endpoint that binds to localhost:6060 immediately on startup. - # This is only needed to debug startup issues. - # debug-pprof-enabled = false - - # Enables authentication on the /ping, /metrics, and deprecated /status - # endpoints. This setting has no effect if auth-enabled is set to false. - # ping-auth-enabled = false - - # Determines whether HTTPS is enabled. - # https-enabled = false - - # The SSL certificate to use when HTTPS is enabled. - # https-certificate = "/etc/ssl/influxdb.pem" - - # Use a separate private key location. - # https-private-key = "" - - # The JWT auth shared secret to validate requests using JSON web tokens. - # shared-secret = "" - - # The default chunk size for result sets that should be chunked. - # max-row-limit = 0 - - # The maximum number of HTTP connections that may be open at once. New connections that - # would exceed this limit are dropped. Setting this value to 0 disables the limit. - # max-connection-limit = 0 - - # Enable http service over unix domain socket - # unix-socket-enabled = false - - # The path of the unix domain socket. - # bind-socket = "/var/run/influxdb.sock" - - # The maximum size of a client request body, in bytes. Setting this value to 0 disables the limit. - # max-body-size = 25000000 - - # The maximum number of writes processed concurrently. - # Setting this to 0 disables the limit. - # max-concurrent-write-limit = 0 - - # The maximum number of writes queued for processing. - # Setting this to 0 disables the limit. - # max-enqueued-write-limit = 0 - - # The maximum duration for a write to wait in the queue to be processed. - # Setting this to 0 or setting max-concurrent-write-limit to 0 disables the limit. - # enqueued-write-timeout = 0 - - # User supplied HTTP response headers - # - # [http.headers] - # X-Header-1 = "Header Value 1" - # X-Header-2 = "Header Value 2" - -### -### [logging] -### -### Controls how the logger emits logs to the output. -### - -[logging] - # Determines which log encoder to use for logs. Available options - # are auto, logfmt, and json. auto will use a more a more user-friendly - # output format if the output terminal is a TTY, but the format is not as - # easily machine-readable. When the output is a non-TTY, auto will use - # logfmt. - # format = "auto" - - # Determines which level of logs will be emitted. The available levels - # are error, warn, info, and debug. Logs that are equal to or above the - # specified level will be emitted. - # level = "info" - - # Suppresses the logo output that is printed when the program is started. - # The logo is always suppressed if STDOUT is not a TTY. - # suppress-logo = false - -### -### [subscriber] -### -### Controls the subscriptions, which can be used to fork a copy of all data -### received by the InfluxDB host. -### - -[subscriber] - # Determines whether the subscriber service is enabled. - # enabled = true - - # The default timeout for HTTP writes to subscribers. - # http-timeout = "30s" - - # Allows insecure HTTPS connections to subscribers. This is useful when testing with self- - # signed certificates. - # insecure-skip-verify = false - - # The path to the PEM encoded CA certs file. If the empty string, the default system certs will be used - # ca-certs = "" - - # The number of writer goroutines processing the write channel. - # write-concurrency = 40 - - # The number of in-flight writes buffered in the write channel. - # write-buffer-size = 1000 - - -### -### [[graphite]] -### -### Controls one or many listeners for Graphite data. -### - -[[graphite]] - # Determines whether the graphite endpoint is enabled. - # enabled = false - # database = "graphite" - # retention-policy = "" - # bind-address = ":2003" - # protocol = "tcp" - # consistency-level = "one" - - # These next lines control how batching works. You should have this enabled - # otherwise you could get dropped metrics or poor performance. Batching - # will buffer points in memory if you have many coming in. - - # Flush if this many points get buffered - # batch-size = 5000 - - # number of batches that may be pending in memory - # batch-pending = 10 - - # Flush at least this often even if we haven't hit buffer limit - # batch-timeout = "1s" - - # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max. - # udp-read-buffer = 0 - - ### This string joins multiple matching 'measurement' values providing more control over the final measurement name. - # separator = "." - - ### Default tags that will be added to all metrics. These can be overridden at the template level - ### or by tags extracted from metric - # tags = ["region=us-east", "zone=1c"] - - ### Each template line requires a template pattern. It can have an optional - ### filter before the template and separated by spaces. It can also have optional extra - ### tags following the template. Multiple tags should be separated by commas and no spaces - ### similar to the line protocol format. There can be only one default template. - # templates = [ - # "*.app env.service.resource.measurement", - # # Default template - # "server.*", - # ] - -### -### [collectd] -### -### Controls one or many listeners for collectd data. -### - -[[collectd]] - # enabled = false - # bind-address = ":25826" - # database = "collectd" - # retention-policy = "" - # - # The collectd service supports either scanning a directory for multiple types - # db files, or specifying a single db file. - # typesdb = "/usr/local/share/collectd" - # - # security-level = "none" - # auth-file = "/etc/collectd/auth_file" - - # These next lines control how batching works. You should have this enabled - # otherwise you could get dropped metrics or poor performance. Batching - # will buffer points in memory if you have many coming in. - - # Flush if this many points get buffered - # batch-size = 5000 - - # Number of batches that may be pending in memory - # batch-pending = 10 - - # Flush at least this often even if we haven't hit buffer limit - # batch-timeout = "10s" - - # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max. - # read-buffer = 0 - - # Multi-value plugins can be handled two ways. - # "split" will parse and store the multi-value plugin data into separate measurements - # "join" will parse and store the multi-value plugin as a single multi-value measurement. - # "split" is the default behavior for backward compatibility with previous versions of influxdb. - # parse-multivalue-plugin = "split" -### -### [opentsdb] -### -### Controls one or many listeners for OpenTSDB data. -### - -[[opentsdb]] - # enabled = false - # bind-address = ":4242" - # database = "opentsdb" - # retention-policy = "" - # consistency-level = "one" - # tls-enabled = false - # certificate= "/etc/ssl/influxdb.pem" - - # Log an error for every malformed point. - # log-point-errors = true - - # These next lines control how batching works. You should have this enabled - # otherwise you could get dropped metrics or poor performance. Only points - # metrics received over the telnet protocol undergo batching. - - # Flush if this many points get buffered - # batch-size = 1000 - - # Number of batches that may be pending in memory - # batch-pending = 5 - - # Flush at least this often even if we haven't hit buffer limit - # batch-timeout = "1s" - -### -### [[udp]] -### -### Controls the listeners for InfluxDB line protocol data via UDP. -### - -[[udp]] - # enabled = false - # bind-address = ":8089" - # database = "udp" - # retention-policy = "" - - # InfluxDB precision for timestamps on received points ("" or "n", "u", "ms", "s", "m", "h") - # precision = "" - - # These next lines control how batching works. You should have this enabled - # otherwise you could get dropped metrics or poor performance. Batching - # will buffer points in memory if you have many coming in. - - # Flush if this many points get buffered - # batch-size = 5000 - - # Number of batches that may be pending in memory - # batch-pending = 10 - - # Will flush at least this often even if we haven't hit buffer limit - # batch-timeout = "1s" - - # UDP Read buffer size, 0 means OS default. UDP listener will fail if set above OS max. - # read-buffer = 0 - -### -### [continuous_queries] -### -### Controls how continuous queries are run within InfluxDB. -### - -[continuous_queries] - # Determines whether the continuous query service is enabled. - # enabled = true - - # Controls whether queries are logged when executed by the CQ service. - # log-enabled = true - - # Controls whether queries are logged to the self-monitoring data store. - # query-stats-enabled = false - - # interval for how often continuous queries will be checked if they need to run - # run-interval = "1s" - -### -### [tls] -### -### Global configuration settings for TLS in InfluxDB. -### - -[tls] - # Determines the available set of cipher suites. See https://golang.org/pkg/crypto/tls/#pkg-constants - # for a list of available ciphers, which depends on the version of Go (use the query - # SHOW DIAGNOSTICS to see the version of Go used to build InfluxDB). If not specified, uses - # the default settings from Go's crypto/tls package. - # ciphers = [ - # "TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305", - # "TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305", - # ] - - # Minimum version of the tls protocol that will be negotiated. If not specified, uses the - # default settings from Go's crypto/tls package. - # min-version = "tls1.2" - - # Maximum version of the tls protocol that will be negotiated. If not specified, uses the - # default settings from Go's crypto/tls package. - # max-version = "tls1.3" - diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/marketplace/marketplace/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/marketplace/marketplace/error_config.json deleted file mode 100644 index 3994711ea..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/marketplace/marketplace/error_config.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "SOMETHING_WRONG":"Something went wrong", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED": "Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type" - }, - "notification":{ - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "NFC_NOTFOUND":"Requested notificaiton channel '%s' is not found", - "NFC_ALREADY_EXIST":"Requested notificaiton channel '%s' is already exist", - "INVALID_NOTIFICATIONID_FMT":"Requested notification id '%s' is invalid formate" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/marketplace/marketplace/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/marketplace/marketplace/internal_api.json deleted file mode 100644 index 4fccb1c8d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/marketplace/marketplace/internal_api.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "allAPI":{ - "readUserByID":"api/%s/user?organizationID=%s" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/marketplace/marketplace/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/marketplace/marketplace/profiles-kube.json deleted file mode 100644 index 0468ec23d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/marketplace/marketplace/profiles-kube.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "mongodb":{ - "db-name":"marketplace", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "marketplace":"https://devmarketplace.gopaddle.io/" - } \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/marketplace/marketplace/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/marketplace/marketplace/service_directory-kube.json deleted file mode 100644 index 496807995..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/marketplace/marketplace/service_directory-kube.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "configmanager.ep": { - "host": "configmanager", - "port": "8001" - }, - "deploymentmanager.ep": { - "host": "deploymentmanager", - "port": "8003" - }, - "gpcore.ep": { - "host": "gpcore", - "port": "8759" - }, - "usermanager.ep":{ - "host":"usermanager", - "port":"8005" - }, - "notification.ep":{ - "host":"activitymanager", - "port":"8009" - }, - "appscanner.ep":{ - "host":"appscanner", - "port":"8022" - }, - "nodechecker.ep":{ - "host":"nodechecker", - "port":"8020" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo-init/onprem-mongobackup.sh b/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo-init/onprem-mongobackup.sh deleted file mode 100644 index 4c17e64ca..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo-init/onprem-mongobackup.sh +++ /dev/null @@ -1,13 +0,0 @@ -#/bin/bash -sh -x -echo "Creating Dump Script" -export PATH=$PATH:./root/.local/bin/ -mongodump -u admin -p cGFzc3dvcmQ -tar -cvzf onprem-mongo.tar.gz dump -rm -rf dump -export dateFormat=`date +%m-%d-%Y` -export PATH=$PATH:/root/.local/bin/ -which aws -aws s3 cp onprem-mongo.tar.gz s3://onprem-mongodb-dump/`date +%m-%d-%Y`/onprem-mongo.tar.gz --sse aws:kms -rm onprem-mongo.tar.gz - diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo/db.js b/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo/db.js deleted file mode 100644 index c7151cc42..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo/db.js +++ /dev/null @@ -1,442 +0,0 @@ -#!/usr/bin/mongo -conn = new Mongo(); -// Authentication -client = conn.getDB("admin") -client.auth(USERNAME,PASSWORD) -mongodb = client.getMongo() - -////////////////////////////////////////////////////////// -// Project -usermanager_db = mongodb.getDB('userdb') -usermanager_db.createCollection("project") -usermanager_db.project.createIndex( {"id":1}, { unique: true } ) -usermanager_db.project.insert({ - "accountID":"1", - "id":"prj9e510b72e6738e4635e8541e2681143a5de1", - "name":"default", - "organization":"gopaddle", - "createdTime": new Date(), - "updatedTime": new Date(), - "defaultProject":true -} -) - - -//////////////////////////////////////////////////////// -// Release -gpcore_db = mongodb.getDB('gpcore') -gpcore_db.createCollection("Release") -gpcore_db.Release.createIndex( {"id":1}, { unique: true } ) -gpcore_db.Release.insert({ - "accountID":"1", - "id" : "rel42aa4e1de98ffe4325eb9e4e01fd7212e31", - "project":[ - "prj9e510b72e6738e4635e8541e2681143a5de1" - ], - "name":"default", - "releaseTag":"default", - "createdTime": new Date(), - "updatedTime": new Date(), - "defaultRelease":true -} -) - -///////////////////////////////////////////////////////// -// Distribution -gpcore_db = mongodb.getDB('gpcore') -gpcore_db.createCollection("Distribution") -gpcore_db.Distribution.createIndex( {"id":1}, { unique: true } ) -gpcore_db.Distribution.insert({ - - "accountID" : "1", - "project" : [ - "prj9e510b72e6738e4635e8541e2681143a5de1" - ], - "releaseID" : "rel42aa4e1de98ffe4325eb9e4e01fd7212e31", - "id" : "disf0ae2269e981ce4cd3e9693e488317487b3", - "name" : "default", - "distributionTag" : "default", - "createdtime": new Date(), - "updatedtime": new Date(), - "isDefaultDistribution" : true -} -) - - -/////////////////////////////////////////////////////////// -// Profile -gpcore_db = mongodb.getDB('gpcore') -gpcore_db.createCollection("Profile") -gpcore_db.Profile.createIndex( {"id":1}, { unique: true } ) -gpcore_db.Profile.insert({ - - "accountID" : "1", - "project" : [ - "prj9e510b72e6738e4635e8541e2681143a5de1" - ], - "releaseID" : "rel42aa4e1de98ffe4325eb9e4e01fd7212e31", - "distributionID" : "disf0ae2269e981ce4cd3e9693e488317487b3", - "id" : "pro6fa8031feae5ee4577e804ae5b73cc46475", - "createdtime": new Date(), - "updatedtime": new Date(), - "name" : "default", - "defaultProfile" : true -} -) - - -/////////////////////////////////////////////////////////////////////////////////////////// -// Initialize deployment manager -deploymentmanager_db = mongodb.getDB('deploymentmanager') -var testCollection = deploymentmanager_db.getCollectionNames() -if ( testCollection.length != 0 ) { - print("Database configuration has been done already") - quit() -} - - - -/////////////////////////////////////////////////////////////////////////////////////////// -// Initialize configmanager -configmanager_db = mongodb.getDB('configmanager') - -// Allocation policy -configmanager_db.createCollection("allocationPolicy") -configmanager_db.allocationPolicy.createIndex( {"id":1}, { unique: true } ) -configmanager_db.allocationPolicy.insert({ - "accountID":"1", - "id":"apff99b7adapf6b3ap46c8ap8c66ap2820a10cd123", - "project" : [ - "prj9e510b72e6738e4635e8541e2681143a5de1" - ], - "createdTime": new Date(), - "updatedTime": new Date(), - "defaultPolicy":true, - "name":"default", - "displayName":"default", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IGFsbG9jYXRpb25Qb2xpY3k=", - "resources":{ - "limits":{ - "memory":"500M", - "cpu":"500m" - }, - "requests":{ - "memory":"200M", - "cpu":"200m" - } - }, - "tags":[ - { - "key":"default", - "value":"default" - } - ] -}) - -// Deployment policy -configmanager_db.createCollection("deploymentPolicy") -configmanager_db.deploymentPolicy.createIndex( {"id":1}, { unique: true } ) -configmanager_db.deploymentPolicy.insert({ - "accountID" : "1", - "project" : [ - "prj9e510b72e6738e4635e8541e2681143a5de1" - ], - "id":"dp4bb676e9dp25eedp44d1dpa31cdp2fe8f9e39123", - "createdTime": new Date(), - "updatedTime": new Date(), - "name":"default-stateless", - "displayName":"default-stateless", - "type":"deployment", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IHN0YXRlbGVzcyBkZXBsb3ltZW50UG9saWN5", - "property":{ - "revisionHistory":10, - "deployment":{ - "updateMethod":"rollingUpdate", - "replicas":1, - "rollingUpdate":{ - "maxUnavailable":{ - "type":0, - "intVal":0 - }, - "maxSurge":{ - "type":0, - "intVal":1 - } - } - } - }, - "tags":[ - { - "key":"default", - "value":"default" - } - ] -}) -configmanager_db.deploymentPolicy.insert({ - "accountID":"1", - "id":"dp4bb676e9dp25eedp44d1dpa31cdp2fe8f9e31234", - "project" : [ - "prj9e510b72e6738e4635e8541e2681143a5de1" - ], - "createdTime": new Date(), - "updatedTime": new Date(), - "defaultPolicy":true, - "name":"default-stateful", - "displayName":"default-stateful", - "type":"stateful-set", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IHN0YXRlZnVsIGRlcGxveW1lbnRQb2xpY3k=", - "property":{ - "revisionHistory":2, - "statefulset":{ - "replicas":1, - "updateMethod":"rollingUpdate", - "rollingUpdate":{ - "partition":0 - } - } - }, - "tags":[ - { - "key":"default-stateful", - "value":"default-stateful" - } - ] -}) - - - -// NW policy -configmanager_db.createCollection("nwpolicy") -configmanager_db.nwpolicy.createIndex( {"id":1}, { unique: true } ) -configmanager_db.nwpolicy.insert({ - "accountID":"1", - "project" : [ - "prj9e510b72e6738e4635e8541e2681143a5de1" - ], - "id":"np_0a11f0ddpdd84p42d9p93a0p484ae72bc123", - "createdtime": new Date(), - "updatedtime": new Date(), - "defaultPolicy":true, - "name":"default", - "displayName":"default", - "ingress":[ - { - "ports":[ - { - "protocol":"TCP", - "port":22 - } - ], - "networkPolicyPeer":[ - { - "IPBlock":{ - "CIDR":"0.0.0.0/0" - } - } - ] - } - ], - "egress":[ - { - "ports":[ - { - "protocol":"TCP", - "port":22 - } - ], - "networkPolicyPeer":[ - { - "IPBlock":{ - "CIDR":"0.0.0.0/0" - } - } - ] - } - ] -}) - -// scaling policy -configmanager_db.createCollection("scalingPolicy") -configmanager_db.scalingPolicy.createIndex( {"id":1}, { unique: true } ) -configmanager_db.scalingPolicy.insert({ - "accountID":"1", - "id":"sp043128dcsp5e65sp433espaa57sp1b7dfb22b123", - "project" : [ - "prj9e510b72e6738e4635e8541e2681143a5de1" - ], - "createdTime": new Date(), - "updatedTime": new Date(), - "defaultPolicy":true, - "name":"default", - "displayName":"default", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IHNjYWxpbmdQb2xpY3k=", - "minReplicas":2, - "maxReplicas":4, - "metric":[ - { - "type":"resource", - "resource":{ - "name":"cpu", - "targetAverageUtilization":70 - } - }, - { - "type":"resource", - "resource":{ - "name":"memory", - "targetAverageUtilization":70 - } - } - ] -}) - - -// NW policy -configmanager_db.createCollection("storageClass") -configmanager_db.storageClass.createIndex( {"id":1}, { unique: true } ) -configmanager_db.storageClass.insert({ - "accountID":"1", - "id":"pvb8796e65pv3f62pv4a28pv9538pvc8d8e0397123", - "project" : [ - "prj9e510b72e6738e4635e8541e2681143a5de1" - ], - "createdTime": new Date(), - "updatedTime": new Date(), - "defaultPolicy":true, - "name":"default-aws", - "displayName":"default-aws", - "type":"aws", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IGF3cyBwcm92aXNpb25Qb2xpY3k=", - "parameter":{ - "awsEBS":{ - "type":"io1", - "zones":[ - "ap-southeast-1a" - ], - "fsType":"ext4" - } - }, - "reclaimPolicy":"delete", - "tags":[ - { - "key":"default", - "value":"default" - } - ] -}) -configmanager_db.storageClass.insert({ - "accountID":"1", - "id":"pvb8796e65pv3f62pv4a28pv9538pvc8d8e0391234", - "project" : [ - "prj9e510b72e6738e4635e8541e2681143a5de1" - ], - "createdTime": new Date(), - "updatedTime": new Date(), - "defaultPolicy":true, - "name":"default-gce", - "displayName":"default-gce", - "type":"gce", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IGdjZSBwcm92aXNpb25Qb2xpY3k=", - "parameter":{ - "gcePD":{ - "type":"pd-standard", - "zones":[ - "us-central1-a" - ], - "replicationType":"none", - "fsType":"ext4" - } - }, - "reclaimPolicy":"delete", - "tags":[ - { - "key":"default", - "value":"default" - } - ] -}) -configmanager_db.storageClass.insert({ - "accountID":"1", - "project" : [ - "prj9e510b72e6738e4635e8541e2681143a5de1" - ], - "id":"pvb8796e65pv3f62pv4a28pv9538pvc8d8e0312345", - "createdTime": new Date(), - "updatedTime": new Date(), - "internalTrigger":true, - "type":"azure", - "name":"default-azure", - "displayName":"default-azure", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IGF6dXJlIHByb3Zpc2lvblBvbGljeQ==", - "parameter":{ - "azureDISK":{ - "storageAccountType":"Standard_LRS", - "kind":"Managed" - } - }, - "reclaimPolicy":"delete", - "defaultPolicy":true, - "tags":[ - { - "key":"default", - "value":"default" - } - ] -}) - -// Volume claim policy -configmanager_db.createCollection("volumeClaimPolicy") -configmanager_db.volumeClaimPolicy.createIndex( {"id":1}, { unique: true } ) -configmanager_db.volumeClaimPolicy.insert({ - "accountid":"1", - "project" : [ - "prj9e510b72e6738e4635e8541e2681143a5de1" - ], - "id":"efcd9e6dgd545g4ae1gb432gb32340592123", - "createdtime": new Date(), - "updatedtime": new Date(), - "defaultPolicy":true, - "name":"default", - "displayName":"default", - "accessMode":"ReadWriteOnce", - "volumeMode":"Filesystem", - "resources":{ - "limits":"50Gi", - "requests":"10Gi" - } -}) - - -// User manager -userdb_db = mongodb.getDB('userdb') -// user table -userdb_db.createCollection("user") -userdb_db.user.createIndex( {"id":1}, { unique: true } ) -var passwordexpirydate = new Date() -userdb_db.user.insert({ - "accountid": "1", - "username": "admin", - "emailid": "admin@gopaddle.io", - "phonenumber": "+91 9886024530", - "isactive":true, - "isverified":true, - "createdtime": new Date(), - "updatedtime": new Date(), - "authprovider":"gopaddle", - "subscription" : { - "userdeploymentcount" : "15", - "userbuildcount" : "1" - }, - "authdata":{ - "password":"oxZn+bc7PUL/kdiBbPqD+yfyxKYOywQsPgIE7GonDpH+OG8rqD8HhyigiB9GHGk/G6c6BHHzUvvJ1IBWv30ziq93OPu6OpIPa4DDsoU+h/2Ct+F+AzHdEsXrkSR+pduSHUJd0DBo8z82s7tjzfdatpTYMWn6XdspwPMBGzzBSqk=", - "lastlogin": new Date(), - "passwordexpirydate": new Date(passwordexpirydate.getTime() + 1000 * 3600 * 24 * 30), - "resetpasswordtoken":"", - }, -}) - -//creating index in deploymentmanager -deploy_db=mongodb.getDB('deploymentmanager') -//SGResourceLock table -deploy_db.createCollection('SGResourceLock') -deploy_db.SGResourceLock.createIndex({"appID":1,"deploymentID":1,"deploymentVersion":1,"serviceGroupID":1,"serviceGroupVersion":1},{unique:true}); diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo/dblite.js b/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo/dblite.js deleted file mode 100644 index 19d15ade8..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo/dblite.js +++ /dev/null @@ -1,22 +0,0 @@ -#!/usr/bin/mongo -conn = new Mongo(); -// Authentication -client = conn.getDB("admin") -client.auth(USERNAME,PASSWORD) -mongodb = client.getMongo() - -/////////////////////////////////////////////////////////////////////////////////////////// -// Initialize deployment manager -deploymentmanager_db = mongodb.getDB('deploymentmanager') -var testCollection = deploymentmanager_db.getCollectionNames() -if ( testCollection.length != 0 ) { - print("Database configuration has been done already") - quit() -} - - -//creating index in deploymentmanager -deploy_db=mongodb.getDB('deploymentmanager') -//SGResourceLock table -deploy_db.createCollection('SGResourceLock') -deploy_db.SGResourceLock.createIndex({"appID":1,"deploymentID":1,"deploymentVersion":1,"serviceGroupID":1,"serviceGroupVersion":1},{unique:true}); \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo/init.sh b/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo/init.sh deleted file mode 100644 index 773c897db..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo/init.sh +++ /dev/null @@ -1,23 +0,0 @@ -#/bin/bash -sh -x -ls /initscript - if [[ ! -f "{{ .Values.dataDir }}/init-done" ]]; then - nohup /usr/local/bin/docker-entrypoint.sh mongod > /var/log/mongodb/mongodb.log 2>&1 & - sleep 30 - if [ "$GP_EDITION" = "Enterprise" ]; then - mongo --eval "var USERNAME = '$MONGO_INITDB_ROOT_USERNAME'; var PASSWORD = '$MONGO_INITDB_ROOT_PASSWORD';" /initscript/db.js - else - mongo --eval "var USERNAME = '$MONGO_INITDB_ROOT_USERNAME'; var PASSWORD = '$MONGO_INITDB_ROOT_PASSWORD';" /initscript/dblite.js - fi - touch "/data/db/init-done" - sleep 10 - fi - echo "Mongodb has been initialized!" - # sleep 300 - - -tail -f /var/log/mongodb/mongodb.log - - - - diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo/mongod.conf b/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo/mongod.conf deleted file mode 100644 index b88c49044..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/mongodb/mongo/mongod.conf +++ /dev/null @@ -1,45 +0,0 @@ - # mongod.conf - - # for documentation of all options, see: - # http://docs.mongodb.org/manual/reference/configuration-options/ - - # Where and how to store data. - storage: - dbPath: /data/db - journal: - enabled: true - # engine: - # mmapv1: - # wiredTiger: - - # where to write logging data. - systemLog: - destination: file - logAppend: true - path: /var/log/mongodb/mongod.log - - # network interfaces - net: - port: 27017 - bindIp: 0.0.0.0 - - - # how the process runs - processManagement: - timeZoneInfo: /usr/share/zoneinfo - - security: - authorization: "enabled" - - #operationProfiling: - - #replication: - - #sharding: - - ## Enterprise-Only Options: - - #auditLog: - - #snmp: - diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/nodechecker/nodechecker/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/nodechecker/nodechecker/error_config.json deleted file mode 100644 index b386275ee..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/nodechecker/nodechecker/error_config.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "SOMETHING_WRONG":"Something went wrong", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED": "Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type" - }, - "nodevalidator":{ - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "NV_NOTFOUND":"Requested nodevalidator channel '%s' is not found", - "NV_ALREADY_EXIST":"Requested nodevalidator channel '%s' is already exist", - "INVALID_NODEVALIDATOR_FMT":"Requested nodevalidator id '%s' is invalid formate" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/nodechecker/nodechecker/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/nodechecker/nodechecker/profiles-kube.json deleted file mode 100644 index a7d5f82c8..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/nodechecker/nodechecker/profiles-kube.json +++ /dev/null @@ -1,12 +0,0 @@ -{ -"mongodb":{ - "db-name":"nodechecker", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/nodechecker/nodechecker/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/nodechecker/nodechecker/service_directory-kube.json deleted file mode 100644 index ace2038d5..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/nodechecker/nodechecker/service_directory-kube.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "usermanager.ep":{ - "host":"usermanager", - "port":"8005" - }, - "nodechecker.ep":{ - "host":"nodechecker", - "port":"8020" - }, - "licensemanager.ep":{ - "host": "license.gopaddle.io", - "port": "8010" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/paymentmanager/paymentmanager/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/paymentmanager/paymentmanager/error_config.json deleted file mode 100644 index f84659db5..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/paymentmanager/paymentmanager/error_config.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE":"Internal Error; (Failed to store data)", - "DATA_RETRIVE":"Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER":"Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR":"Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND":"Resource '%s' does not exist", - "ERROR_HITTING_EXT_API":"Unable to communicate with external resources", - "SOMETHING_WRONG": "Internal Error", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "INPUT_PAYLOAD_ERROR":"Input payload have error: %s", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "ALREADY_EXIST":"'%s' already exists", - "MISSING_FIELD":"Invalid input or missing mandatory field '%s'", - "MISSING_FIELD_INSIDE":"Invalid input or missing mandatory field '%s' inside '%s'", - "INVALID_VALUE":"Invalid input for field '%s'", - "INVALID_TYPE":"Invalid input type for '%s'", - "INPUT_MISMATCH":"Given input JSON structure is mismatched", - "KEY_NOT_FOUND":" '%s' Key not found in Json", - "VALUE_NOT_FOUND":" '%s' Value not found in Json", - "UNSUPPORTED": "Given %s is not supported", - "UNMARSHAL_ERROR":"The field '%s' is a '%s' type, but the given value is '%s' type", - "UNKNOWN_UNMARSHAL_ERROR":"The expected type is a '%s', but the given value is '%s' type" - }, - "stripe":{ - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'", - "NFC_NOTFOUND":"Requested notificaiton channel '%s' is not found", - "NFC_ALREADY_EXIST":"Requested notificaiton channel '%s' is already exist", - "INVALID_NOTIFICATIONID_FMT":"Requested notification id '%s' is invalid formate" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/paymentmanager/paymentmanager/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/paymentmanager/paymentmanager/internal_api.json deleted file mode 100644 index 85a6ba339..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/paymentmanager/paymentmanager/internal_api.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "allAPI":{ - "readUserByID":"api/%s/user?organizationID=%s" - }, - "acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api/%s/v1/subusers/%s", - "port":"8005" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/paymentmanager/paymentmanager/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/paymentmanager/paymentmanager/profiles-kube.json deleted file mode 100644 index 6c12be38d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/paymentmanager/paymentmanager/profiles-kube.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "mongodb":{ - "db-name":"paymentmanager", - "db-endpoint":[ - "mongodb:27017" - ], - "db-port":"27017", - "user-db":"admin", - "db-user":"admin", - "db-password":"cGFzc3dvcmQ" - }, - "redis":{ - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/paymentmanager/paymentmanager/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/paymentmanager/paymentmanager/service_directory-kube.json deleted file mode 100644 index 9ca34074a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/paymentmanager/paymentmanager/service_directory-kube.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "configmanager.ep": { - "host": "configmanager", - "port": "8001" - }, - - "costmanager.ep": { - "host": "costmanager", - "port": "8011" - }, - "usermanager.ep": { - "host": "usermanager", - "port": "8005" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/rabbitmq/rabbitmq/rabbitmq.sh b/charts/gopaddle/gopaddle/charts/gp-core/files/rabbitmq/rabbitmq/rabbitmq.sh deleted file mode 100644 index 070cb587f..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/rabbitmq/rabbitmq/rabbitmq.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash -set -x -apt-get update -y -apt-get install jq -y -rabbitmq-server > /var/log/rabbitmq/rabbitmq.log & -sleep 60 -rabbitmqctl add_vhost /activity -rabbitmqctl add_vhost /apps -rabbitmqctl add_vhost /build -rabbitmqctl add_vhost /billing -rabbitmqctl list_users -present = `rabbitmqctl list_users --formatter json | jq '.[] .user' | grep "admin"` -export present -if [ -z "$present" ] -then -echo "admin user doesnt exist." -else -echo "admin user already exists. deleting the user." -rabbitmqctl delete_user admin -fi -rabbitmqctl add_user admin 'cGFzc3dvcmQ' -rabbitmqctl set_user_tags admin none -rabbitmqctl set_permissions -p /activity admin ".*" ".*" ".*" -rabbitmqctl set_permissions -p /apps admin ".*" ".*" ".*" -rabbitmqctl set_permissions -p /build admin ".*" ".*" ".*" -rabbitmqctl set_permissions -p /billing admin ".*" ".*" ".*" -tail -f /var/log/rabbitmq/rabbitmq.log - diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/redis/redis/redis.conf b/charts/gopaddle/gopaddle/charts/gp-core/files/redis/redis/redis.conf deleted file mode 100644 index 5107a3c2d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/redis/redis/redis.conf +++ /dev/null @@ -1,1055 +0,0 @@ -# Redis configuration file example. -# -# Note that in order to read the configuration file, Redis must be -# started with the file path as first argument: -# -# ./redis-server /path/to/redis.conf - -# Note on units: when memory size is needed, it is possible to specify -# it in the usual form of 1k 5GB 4M and so forth: -# -# 1k => 1000 bytes -# 1kb => 1024 bytes -# 1m => 1000000 bytes -# 1mb => 1024*1024 bytes -# 1g => 1000000000 bytes -# 1gb => 1024*1024*1024 bytes -# -# units are case insensitive so 1GB 1Gb 1gB are all the same. - -################################## INCLUDES ################################### - -# Include one or more other config files here. This is useful if you -# have a standard template that goes to all Redis servers but also need -# to customize a few per-server settings. Include files can include -# other files, so use this wisely. -# -# Notice option "include" won't be rewritten by command "CONFIG REWRITE" -# from admin or Redis Sentinel. Since Redis always uses the last processed -# line as value of a configuration directive, you'd better put includes -# at the beginning of this file to avoid overwriting config change at runtime. -# -# If instead you are interested in using includes to override configuration -# options, it is better to use include as the last line. -# -# include /path/to/local.conf -# include /path/to/other.conf - -################################## NETWORK ##################################### - -# By default, if no "bind" configuration directive is specified, Redis listens -# for connections from all the network interfaces available on the server. -# It is possible to listen to just one or multiple selected interfaces using -# the "bind" configuration directive, followed by one or more IP addresses. -# -# Examples: -# -# bind 192.168.1.100 10.0.0.1 -# bind 127.0.0.1 ::1 -# -# ~~~ WARNING ~~~ If the computer running Redis is directly exposed to the -# internet, binding to all the interfaces is dangerous and will expose the -# instance to everybody on the internet. So by default we uncomment the -# following bind directive, that will force Redis to listen only into -# the IPv4 lookback interface address (this means Redis will be able to -# accept connections only from clients running into the same computer it -# is running). -# -# IF YOU ARE SURE YOU WANT YOUR INSTANCE TO LISTEN TO ALL THE INTERFACES -# JUST COMMENT THE FOLLOWING LINE. -# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -bind 0.0.0.0 - -# Protected mode is a layer of security protection, in order to avoid that -# Redis instances left open on the internet are accessed and exploited. -# -# When protected mode is on and if: -# -# 1) The server is not binding explicitly to a set of addresses using the -# "bind" directive. -# 2) No password is configured. -# -# The server only accepts connections from clients connecting from the -# IPv4 and IPv6 loopback addresses 127.0.0.1 and ::1, and from Unix domain -# sockets. -# -# By default protected mode is enabled. You should disable it only if -# you are sure you want clients from other hosts to connect to Redis -# even if no authentication is configured, nor a specific set of interfaces -# are explicitly listed using the "bind" directive. -protected-mode yes - -# Accept connections on the specified port, default is 6379 (IANA #815344). -# If port 0 is specified Redis will not listen on a TCP socket. -port 6379 - -# TCP listen() backlog. -# -# In high requests-per-second environments you need an high backlog in order -# to avoid slow clients connections issues. Note that the Linux kernel -# will silently truncate it to the value of /proc/sys/net/core/somaxconn so -# make sure to raise both the value of somaxconn and tcp_max_syn_backlog -# in order to get the desired effect. -tcp-backlog 511 - -# Unix socket. -# -# Specify the path for the Unix socket that will be used to listen for -# incoming connections. There is no default, so Redis will not listen -# on a unix socket when not specified. -# -# unixsocket /tmp/redis.sock -# unixsocketperm 700 - -# Close the connection after a client is idle for N seconds (0 to disable) -timeout 0 - -# TCP keepalive. -# -# If non-zero, use SO_KEEPALIVE to send TCP ACKs to clients in absence -# of communication. This is useful for two reasons: -# -# 1) Detect dead peers. -# 2) Take the connection alive from the point of view of network -# equipment in the middle. -# -# On Linux, the specified value (in seconds) is the period used to send ACKs. -# Note that to close the connection the double of the time is needed. -# On other kernels the period depends on the kernel configuration. -# -# A reasonable value for this option is 300 seconds, which is the new -# Redis default starting with Redis 3.2.1. -tcp-keepalive 300 - -################################# GENERAL ##################################### - -# By default Redis does not run as a daemon. Use 'yes' if you need it. -# Note that Redis will write a pid file in /var/run/redis.pid when daemonized. -daemonize no - -# If you run Redis from upstart or systemd, Redis can interact with your -# supervision tree. Options: -# supervised no - no supervision interaction -# supervised upstart - signal upstart by putting Redis into SIGSTOP mode -# supervised systemd - signal systemd by writing READY=1 to $NOTIFY_SOCKET -# supervised auto - detect upstart or systemd method based on -# UPSTART_JOB or NOTIFY_SOCKET environment variables -# Note: these supervision methods only signal "process is ready." -# They do not enable continuous liveness pings back to your supervisor. -supervised no - -# If a pid file is specified, Redis writes it where specified at startup -# and removes it at exit. -# -# When the server runs non daemonized, no pid file is created if none is -# specified in the configuration. When the server is daemonized, the pid file -# is used even if not specified, defaulting to "/var/run/redis.pid". -# -# Creating a pid file is best effort: if Redis is not able to create it -# nothing bad happens, the server will start and run normally. -pidfile /var/run/redis_6379.pid - -# Specify the server verbosity level. -# This can be one of: -# debug (a lot of information, useful for development/testing) -# verbose (many rarely useful info, but not a mess like the debug level) -# notice (moderately verbose, what you want in production probably) -# warning (only very important / critical messages are logged) -loglevel notice - -# Specify the log file name. Also the empty string can be used to force -# Redis to log on the standard output. Note that if you use standard -# output for logging but daemonize, logs will be sent to /dev/null -logfile /var/log/redis/redis.log - -# To enable logging to the system logger, just set 'syslog-enabled' to yes, -# and optionally update the other syslog parameters to suit your needs. -# syslog-enabled no - -# Specify the syslog identity. -# syslog-ident redis - -# Specify the syslog facility. Must be USER or between LOCAL0-LOCAL7. -# syslog-facility local0 - -# Set the number of databases. The default database is DB 0, you can select -# a different one on a per-connection basis using SELECT where -# dbid is a number between 0 and 'databases'-1 -databases 16 - -################################ SNAPSHOTTING ################################ -# -# Save the DB on disk: -# -# save -# -# Will save the DB if both the given number of seconds and the given -# number of write operations against the DB occurred. -# -# In the example below the behaviour will be to save: -# after 900 sec (15 min) if at least 1 key changed -# after 300 sec (5 min) if at least 10 keys changed -# after 60 sec if at least 10000 keys changed -# -# Note: you can disable saving completely by commenting out all "save" lines. -# -# It is also possible to remove all the previously configured save -# points by adding a save directive with a single empty string argument -# like in the following example: -# -# save "" - -save 900 1 -save 300 10 -save 60 10000 - -# By default Redis will stop accepting writes if RDB snapshots are enabled -# (at least one save point) and the latest background save failed. -# This will make the user aware (in a hard way) that data is not persisting -# on disk properly, otherwise chances are that no one will notice and some -# disaster will happen. -# -# If the background saving process will start working again Redis will -# automatically allow writes again. -# -# However if you have setup your proper monitoring of the Redis server -# and persistence, you may want to disable this feature so that Redis will -# continue to work as usual even if there are problems with disk, -# permissions, and so forth. -stop-writes-on-bgsave-error yes - -# Compress string objects using LZF when dump .rdb databases? -# For default that's set to 'yes' as it's almost always a win. -# If you want to save some CPU in the saving child set it to 'no' but -# the dataset will likely be bigger if you have compressible values or keys. -rdbcompression yes - -# Since version 5 of RDB a CRC64 checksum is placed at the end of the file. -# This makes the format more resistant to corruption but there is a performance -# hit to pay (around 10%) when saving and loading RDB files, so you can disable it -# for maximum performances. -# -# RDB files created with checksum disabled have a checksum of zero that will -# tell the loading code to skip the check. -rdbchecksum yes - -# The filename where to dump the DB -dbfilename dump.rdb - -# The working directory. -# -# The DB will be written inside this directory, with the filename specified -# above using the 'dbfilename' configuration directive. -# -# The Append Only File will also be created inside this directory. -# -# Note that you must specify a directory here, not a file name. -dir /var/lib/redis - -################################# REPLICATION ################################# - -# Master-Slave replication. Use slaveof to make a Redis instance a copy of -# another Redis server. A few things to understand ASAP about Redis replication. -# -# 1) Redis replication is asynchronous, but you can configure a master to -# stop accepting writes if it appears to be not connected with at least -# a given number of slaves. -# 2) Redis slaves are able to perform a partial resynchronization with the -# master if the replication link is lost for a relatively small amount of -# time. You may want to configure the replication backlog size (see the next -# sections of this file) with a sensible value depending on your needs. -# 3) Replication is automatic and does not need user intervention. After a -# network partition slaves automatically try to reconnect to masters -# and resynchronize with them. -# -# slaveof - -# If the master is password protected (using the "requirepass" configuration -# directive below) it is possible to tell the slave to authenticate before -# starting the replication synchronization process, otherwise the master will -# refuse the slave request. -# -# masterauth - -# When a slave loses its connection with the master, or when the replication -# is still in progress, the slave can act in two different ways: -# -# 1) if slave-serve-stale-data is set to 'yes' (the default) the slave will -# still reply to client requests, possibly with out of date data, or the -# data set may just be empty if this is the first synchronization. -# -# 2) if slave-serve-stale-data is set to 'no' the slave will reply with -# an error "SYNC with master in progress" to all the kind of commands -# but to INFO and SLAVEOF. -# -slave-serve-stale-data yes - -# You can configure a slave instance to accept writes or not. Writing against -# a slave instance may be useful to store some ephemeral data (because data -# written on a slave will be easily deleted after resync with the master) but -# may also cause problems if clients are writing to it because of a -# misconfiguration. -# -# Since Redis 2.6 by default slaves are read-only. -# -# Note: read only slaves are not designed to be exposed to untrusted clients -# on the internet. It's just a protection layer against misuse of the instance. -# Still a read only slave exports by default all the administrative commands -# such as CONFIG, DEBUG, and so forth. To a limited extent you can improve -# security of read only slaves using 'rename-command' to shadow all the -# administrative / dangerous commands. -slave-read-only yes - -# Replication SYNC strategy: disk or socket. -# -# ------------------------------------------------------- -# WARNING: DISKLESS REPLICATION IS EXPERIMENTAL CURRENTLY -# ------------------------------------------------------- -# -# New slaves and reconnecting slaves that are not able to continue the replication -# process just receiving differences, need to do what is called a "full -# synchronization". An RDB file is transmitted from the master to the slaves. -# The transmission can happen in two different ways: -# -# 1) Disk-backed: The Redis master creates a new process that writes the RDB -# file on disk. Later the file is transferred by the parent -# process to the slaves incrementally. -# 2) Diskless: The Redis master creates a new process that directly writes the -# RDB file to slave sockets, without touching the disk at all. -# -# With disk-backed replication, while the RDB file is generated, more slaves -# can be queued and served with the RDB file as soon as the current child producing -# the RDB file finishes its work. With diskless replication instead once -# the transfer starts, new slaves arriving will be queued and a new transfer -# will start when the current one terminates. -# -# When diskless replication is used, the master waits a configurable amount of -# time (in seconds) before starting the transfer in the hope that multiple slaves -# will arrive and the transfer can be parallelized. -# -# With slow disks and fast (large bandwidth) networks, diskless replication -# works better. -repl-diskless-sync no - -# When diskless replication is enabled, it is possible to configure the delay -# the server waits in order to spawn the child that transfers the RDB via socket -# to the slaves. -# -# This is important since once the transfer starts, it is not possible to serve -# new slaves arriving, that will be queued for the next RDB transfer, so the server -# waits a delay in order to let more slaves arrive. -# -# The delay is specified in seconds, and by default is 5 seconds. To disable -# it entirely just set it to 0 seconds and the transfer will start ASAP. -repl-diskless-sync-delay 5 - -# Slaves send PINGs to server in a predefined interval. It's possible to change -# this interval with the repl_ping_slave_period option. The default value is 10 -# seconds. -# -# repl-ping-slave-period 10 - -# The following option sets the replication timeout for: -# -# 1) Bulk transfer I/O during SYNC, from the point of view of slave. -# 2) Master timeout from the point of view of slaves (data, pings). -# 3) Slave timeout from the point of view of masters (REPLCONF ACK pings). -# -# It is important to make sure that this value is greater than the value -# specified for repl-ping-slave-period otherwise a timeout will be detected -# every time there is low traffic between the master and the slave. -# -# repl-timeout 60 - -# Disable TCP_NODELAY on the slave socket after SYNC? -# -# If you select "yes" Redis will use a smaller number of TCP packets and -# less bandwidth to send data to slaves. But this can add a delay for -# the data to appear on the slave side, up to 40 milliseconds with -# Linux kernels using a default configuration. -# -# If you select "no" the delay for data to appear on the slave side will -# be reduced but more bandwidth will be used for replication. -# -# By default we optimize for low latency, but in very high traffic conditions -# or when the master and slaves are many hops away, turning this to "yes" may -# be a good idea. -repl-disable-tcp-nodelay no - -# Set the replication backlog size. The backlog is a buffer that accumulates -# slave data when slaves are disconnected for some time, so that when a slave -# wants to reconnect again, often a full resync is not needed, but a partial -# resync is enough, just passing the portion of data the slave missed while -# disconnected. -# -# The bigger the replication backlog, the longer the time the slave can be -# disconnected and later be able to perform a partial resynchronization. -# -# The backlog is only allocated once there is at least a slave connected. -# -# repl-backlog-size 1mb - -# After a master has no longer connected slaves for some time, the backlog -# will be freed. The following option configures the amount of seconds that -# need to elapse, starting from the time the last slave disconnected, for -# the backlog buffer to be freed. -# -# A value of 0 means to never release the backlog. -# -# repl-backlog-ttl 3600 - -# The slave priority is an integer number published by Redis in the INFO output. -# It is used by Redis Sentinel in order to select a slave to promote into a -# master if the master is no longer working correctly. -# -# A slave with a low priority number is considered better for promotion, so -# for instance if there are three slaves with priority 10, 100, 25 Sentinel will -# pick the one with priority 10, that is the lowest. -# -# However a special priority of 0 marks the slave as not able to perform the -# role of master, so a slave with priority of 0 will never be selected by -# Redis Sentinel for promotion. -# -# By default the priority is 100. -slave-priority 100 - -# It is possible for a master to stop accepting writes if there are less than -# N slaves connected, having a lag less or equal than M seconds. -# -# The N slaves need to be in "online" state. -# -# The lag in seconds, that must be <= the specified value, is calculated from -# the last ping received from the slave, that is usually sent every second. -# -# This option does not GUARANTEE that N replicas will accept the write, but -# will limit the window of exposure for lost writes in case not enough slaves -# are available, to the specified number of seconds. -# -# For example to require at least 3 slaves with a lag <= 10 seconds use: -# -# min-slaves-to-write 3 -# min-slaves-max-lag 10 -# -# Setting one or the other to 0 disables the feature. -# -# By default min-slaves-to-write is set to 0 (feature disabled) and -# min-slaves-max-lag is set to 10. - -# A Redis master is able to list the address and port of the attached -# slaves in different ways. For example the "INFO replication" section -# offers this information, which is used, among other tools, by -# Redis Sentinel in order to discover slave instances. -# Another place where this info is available is in the output of the -# "ROLE" command of a masteer. -# -# The listed IP and address normally reported by a slave is obtained -# in the following way: -# -# IP: The address is auto detected by checking the peer address -# of the socket used by the slave to connect with the master. -# -# Port: The port is communicated by the slave during the replication -# handshake, and is normally the port that the slave is using to -# list for connections. -# -# However when port forwarding or Network Address Translation (NAT) is -# used, the slave may be actually reachable via different IP and port -# pairs. The following two options can be used by a slave in order to -# report to its master a specific set of IP and port, so that both INFO -# and ROLE will report those values. -# -# There is no need to use both the options if you need to override just -# the port or the IP address. -# -# slave-announce-ip 5.5.5.5 -# slave-announce-port 1234 - -################################## SECURITY ################################### - -# Require clients to issue AUTH before processing any other -# commands. This might be useful in environments in which you do not trust -# others with access to the host running redis-server. -# -# This should stay commented out for backward compatibility and because most -# people do not need auth (e.g. they run their own servers). -# -# Warning: since Redis is pretty fast an outside user can try up to -# 150k passwords per second against a good box. This means that you should -# use a very strong password otherwise it will be very easy to break. -# -# requirepass foobared -requirepass avraj - -# Command renaming. -# -# It is possible to change the name of dangerous commands in a shared -# environment. For instance the CONFIG command may be renamed into something -# hard to guess so that it will still be available for internal-use tools -# but not available for general clients. -# -# Example: -# -# rename-command CONFIG b840fc02d524045429941cc15f59e41cb7be6c52 -# -# It is also possible to completely kill a command by renaming it into -# an empty string: -# -# rename-command CONFIG "" -# -# Please note that changing the name of commands that are logged into the -# AOF file or transmitted to slaves may cause problems. - -################################### LIMITS #################################### - -# Set the max number of connected clients at the same time. By default -# this limit is set to 10000 clients, however if the Redis server is not -# able to configure the process file limit to allow for the specified limit -# the max number of allowed clients is set to the current file limit -# minus 32 (as Redis reserves a few file descriptors for internal uses). -# -# Once the limit is reached Redis will close all the new connections sending -# an error 'max number of clients reached'. -# -# maxclients 10000 - -# Don't use more memory than the specified amount of bytes. -# When the memory limit is reached Redis will try to remove keys -# according to the eviction policy selected (see maxmemory-policy). -# -# If Redis can't remove keys according to the policy, or if the policy is -# set to 'noeviction', Redis will start to reply with errors to commands -# that would use more memory, like SET, LPUSH, and so on, and will continue -# to reply to read-only commands like GET. -# -# This option is usually useful when using Redis as an LRU cache, or to set -# a hard memory limit for an instance (using the 'noeviction' policy). -# -# WARNING: If you have slaves attached to an instance with maxmemory on, -# the size of the output buffers needed to feed the slaves are subtracted -# from the used memory count, so that network problems / resyncs will -# not trigger a loop where keys are evicted, and in turn the output -# buffer of slaves is full with DELs of keys evicted triggering the deletion -# of more keys, and so forth until the database is completely emptied. -# -# In short... if you have slaves attached it is suggested that you set a lower -# limit for maxmemory so that there is some free RAM on the system for slave -# output buffers (but this is not needed if the policy is 'noeviction'). -# -# maxmemory - -# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory -# is reached. You can select among five behaviors: -# -# volatile-lru -> remove the key with an expire set using an LRU algorithm -# allkeys-lru -> remove any key according to the LRU algorithm -# volatile-random -> remove a random key with an expire set -# allkeys-random -> remove a random key, any key -# volatile-ttl -> remove the key with the nearest expire time (minor TTL) -# noeviction -> don't expire at all, just return an error on write operations -# -# Note: with any of the above policies, Redis will return an error on write -# operations, when there are no suitable keys for eviction. -# -# At the date of writing these commands are: set setnx setex append -# incr decr rpush lpush rpushx lpushx linsert lset rpoplpush sadd -# sinter sinterstore sunion sunionstore sdiff sdiffstore zadd zincrby -# zunionstore zinterstore hset hsetnx hmset hincrby incrby decrby -# getset mset msetnx exec sort -# -# The default is: -# -# maxmemory-policy noeviction - -# LRU and minimal TTL algorithms are not precise algorithms but approximated -# algorithms (in order to save memory), so you can tune it for speed or -# accuracy. For default Redis will check five keys and pick the one that was -# used less recently, you can change the sample size using the following -# configuration directive. -# -# The default of 5 produces good enough results. 10 Approximates very closely -# true LRU but costs a bit more CPU. 3 is very fast but not very accurate. -# -# maxmemory-samples 5 - -############################## APPEND ONLY MODE ############################### - -# By default Redis asynchronously dumps the dataset on disk. This mode is -# good enough in many applications, but an issue with the Redis process or -# a power outage may result into a few minutes of writes lost (depending on -# the configured save points). -# -# The Append Only File is an alternative persistence mode that provides -# much better durability. For instance using the default data fsync policy -# (see later in the config file) Redis can lose just one second of writes in a -# dramatic event like a server power outage, or a single write if something -# wrong with the Redis process itself happens, but the operating system is -# still running correctly. -# -# AOF and RDB persistence can be enabled at the same time without problems. -# If the AOF is enabled on startup Redis will load the AOF, that is the file -# with the better durability guarantees. -# -# Please check http://redis.io/topics/persistence for more information. - -appendonly no - -# The name of the append only file (default: "appendonly.aof") - -appendfilename "appendonly.aof" - -# The fsync() call tells the Operating System to actually write data on disk -# instead of waiting for more data in the output buffer. Some OS will really flush -# data on disk, some other OS will just try to do it ASAP. -# -# Redis supports three different modes: -# -# no: don't fsync, just let the OS flush the data when it wants. Faster. -# always: fsync after every write to the append only log. Slow, Safest. -# everysec: fsync only one time every second. Compromise. -# -# The default is "everysec", as that's usually the right compromise between -# speed and data safety. It's up to you to understand if you can relax this to -# "no" that will let the operating system flush the output buffer when -# it wants, for better performances (but if you can live with the idea of -# some data loss consider the default persistence mode that's snapshotting), -# or on the contrary, use "always" that's very slow but a bit safer than -# everysec. -# -# More details please check the following article: -# http://antirez.com/post/redis-persistence-demystified.html -# -# If unsure, use "everysec". - -# appendfsync always -appendfsync everysec -# appendfsync no - -# When the AOF fsync policy is set to always or everysec, and a background -# saving process (a background save or AOF log background rewriting) is -# performing a lot of I/O against the disk, in some Linux configurations -# Redis may block too long on the fsync() call. Note that there is no fix for -# this currently, as even performing fsync in a different thread will block -# our synchronous write(2) call. -# -# In order to mitigate this problem it's possible to use the following option -# that will prevent fsync() from being called in the main process while a -# BGSAVE or BGREWRITEAOF is in progress. -# -# This means that while another child is saving, the durability of Redis is -# the same as "appendfsync none". In practical terms, this means that it is -# possible to lose up to 30 seconds of log in the worst scenario (with the -# default Linux settings). -# -# If you have latency problems turn this to "yes". Otherwise leave it as -# "no" that is the safest pick from the point of view of durability. - -no-appendfsync-on-rewrite no - -# Automatic rewrite of the append only file. -# Redis is able to automatically rewrite the log file implicitly calling -# BGREWRITEAOF when the AOF log size grows by the specified percentage. -# -# This is how it works: Redis remembers the size of the AOF file after the -# latest rewrite (if no rewrite has happened since the restart, the size of -# the AOF at startup is used). -# -# This base size is compared to the current size. If the current size is -# bigger than the specified percentage, the rewrite is triggered. Also -# you need to specify a minimal size for the AOF file to be rewritten, this -# is useful to avoid rewriting the AOF file even if the percentage increase -# is reached but it is still pretty small. -# -# Specify a percentage of zero in order to disable the automatic AOF -# rewrite feature. - -auto-aof-rewrite-percentage 100 -auto-aof-rewrite-min-size 64mb - -# An AOF file may be found to be truncated at the end during the Redis -# startup process, when the AOF data gets loaded back into memory. -# This may happen when the system where Redis is running -# crashes, especially when an ext4 filesystem is mounted without the -# data=ordered option (however this can't happen when Redis itself -# crashes or aborts but the operating system still works correctly). -# -# Redis can either exit with an error when this happens, or load as much -# data as possible (the default now) and start if the AOF file is found -# to be truncated at the end. The following option controls this behavior. -# -# If aof-load-truncated is set to yes, a truncated AOF file is loaded and -# the Redis server starts emitting a log to inform the user of the event. -# Otherwise if the option is set to no, the server aborts with an error -# and refuses to start. When the option is set to no, the user requires -# to fix the AOF file using the "redis-check-aof" utility before to restart -# the server. -# -# Note that if the AOF file will be found to be corrupted in the middle -# the server will still exit with an error. This option only applies when -# Redis will try to read more data from the AOF file but not enough bytes -# will be found. -aof-load-truncated yes - -################################ LUA SCRIPTING ############################### - -# Max execution time of a Lua script in milliseconds. -# -# If the maximum execution time is reached Redis will log that a script is -# still in execution after the maximum allowed time and will start to -# reply to queries with an error. -# -# When a long running script exceeds the maximum execution time only the -# SCRIPT KILL and SHUTDOWN NOSAVE commands are available. The first can be -# used to stop a script that did not yet called write commands. The second -# is the only way to shut down the server in the case a write command was -# already issued by the script but the user doesn't want to wait for the natural -# termination of the script. -# -# Set it to 0 or a negative value for unlimited execution without warnings. -lua-time-limit 5000 - -################################ REDIS CLUSTER ############################### -# -# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -# WARNING EXPERIMENTAL: Redis Cluster is considered to be stable code, however -# in order to mark it as "mature" we need to wait for a non trivial percentage -# of users to deploy it in production. -# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -# -# Normal Redis instances can't be part of a Redis Cluster; only nodes that are -# started as cluster nodes can. In order to start a Redis instance as a -# cluster node enable the cluster support uncommenting the following: -# -# cluster-enabled yes - -# Every cluster node has a cluster configuration file. This file is not -# intended to be edited by hand. It is created and updated by Redis nodes. -# Every Redis Cluster node requires a different cluster configuration file. -# Make sure that instances running in the same system do not have -# overlapping cluster configuration file names. -# -# cluster-config-file nodes-6379.conf - -# Cluster node timeout is the amount of milliseconds a node must be unreachable -# for it to be considered in failure state. -# Most other internal time limits are multiple of the node timeout. -# -# cluster-node-timeout 15000 - -# A slave of a failing master will avoid to start a failover if its data -# looks too old. -# -# There is no simple way for a slave to actually have a exact measure of -# its "data age", so the following two checks are performed: -# -# 1) If there are multiple slaves able to failover, they exchange messages -# in order to try to give an advantage to the slave with the best -# replication offset (more data from the master processed). -# Slaves will try to get their rank by offset, and apply to the start -# of the failover a delay proportional to their rank. -# -# 2) Every single slave computes the time of the last interaction with -# its master. This can be the last ping or command received (if the master -# is still in the "connected" state), or the time that elapsed since the -# disconnection with the master (if the replication link is currently down). -# If the last interaction is too old, the slave will not try to failover -# at all. -# -# The point "2" can be tuned by user. Specifically a slave will not perform -# the failover if, since the last interaction with the master, the time -# elapsed is greater than: -# -# (node-timeout * slave-validity-factor) + repl-ping-slave-period -# -# So for example if node-timeout is 30 seconds, and the slave-validity-factor -# is 10, and assuming a default repl-ping-slave-period of 10 seconds, the -# slave will not try to failover if it was not able to talk with the master -# for longer than 310 seconds. -# -# A large slave-validity-factor may allow slaves with too old data to failover -# a master, while a too small value may prevent the cluster from being able to -# elect a slave at all. -# -# For maximum availability, it is possible to set the slave-validity-factor -# to a value of 0, which means, that slaves will always try to failover the -# master regardless of the last time they interacted with the master. -# (However they'll always try to apply a delay proportional to their -# offset rank). -# -# Zero is the only value able to guarantee that when all the partitions heal -# the cluster will always be able to continue. -# -# cluster-slave-validity-factor 10 - -# Cluster slaves are able to migrate to orphaned masters, that are masters -# that are left without working slaves. This improves the cluster ability -# to resist to failures as otherwise an orphaned master can't be failed over -# in case of failure if it has no working slaves. -# -# Slaves migrate to orphaned masters only if there are still at least a -# given number of other working slaves for their old master. This number -# is the "migration barrier". A migration barrier of 1 means that a slave -# will migrate only if there is at least 1 other working slave for its master -# and so forth. It usually reflects the number of slaves you want for every -# master in your cluster. -# -# Default is 1 (slaves migrate only if their masters remain with at least -# one slave). To disable migration just set it to a very large value. -# A value of 0 can be set but is useful only for debugging and dangerous -# in production. -# -# cluster-migration-barrier 1 - -# By default Redis Cluster nodes stop accepting queries if they detect there -# is at least an hash slot uncovered (no available node is serving it). -# This way if the cluster is partially down (for example a range of hash slots -# are no longer covered) all the cluster becomes, eventually, unavailable. -# It automatically returns available as soon as all the slots are covered again. -# -# However sometimes you want the subset of the cluster which is working, -# to continue to accept queries for the part of the key space that is still -# covered. In order to do so, just set the cluster-require-full-coverage -# option to no. -# -# cluster-require-full-coverage yes - -# In order to setup your cluster make sure to read the documentation -# available at http://redis.io web site. - -################################## SLOW LOG ################################### - -# The Redis Slow Log is a system to log queries that exceeded a specified -# execution time. The execution time does not include the I/O operations -# like talking with the client, sending the reply and so forth, -# but just the time needed to actually execute the command (this is the only -# stage of command execution where the thread is blocked and can not serve -# other requests in the meantime). -# -# You can configure the slow log with two parameters: one tells Redis -# what is the execution time, in microseconds, to exceed in order for the -# command to get logged, and the other parameter is the length of the -# slow log. When a new command is logged the oldest one is removed from the -# queue of logged commands. - -# The following time is expressed in microseconds, so 1000000 is equivalent -# to one second. Note that a negative number disables the slow log, while -# a value of zero forces the logging of every command. -slowlog-log-slower-than 10000 - -# There is no limit to this length. Just be aware that it will consume memory. -# You can reclaim memory used by the slow log with SLOWLOG RESET. -slowlog-max-len 128 - -################################ LATENCY MONITOR ############################## - -# The Redis latency monitoring subsystem samples different operations -# at runtime in order to collect data related to possible sources of -# latency of a Redis instance. -# -# Via the LATENCY command this information is available to the user that can -# print graphs and obtain reports. -# -# The system only logs operations that were performed in a time equal or -# greater than the amount of milliseconds specified via the -# latency-monitor-threshold configuration directive. When its value is set -# to zero, the latency monitor is turned off. -# -# By default latency monitoring is disabled since it is mostly not needed -# if you don't have latency issues, and collecting data has a performance -# impact, that while very small, can be measured under big load. Latency -# monitoring can easily be enabled at runtime using the command -# "CONFIG SET latency-monitor-threshold " if needed. -latency-monitor-threshold 0 - -############################# EVENT NOTIFICATION ############################## - -# Redis can notify Pub/Sub clients about events happening in the key space. -# This feature is documented at http://redis.io/topics/notifications -# -# For instance if keyspace events notification is enabled, and a client -# performs a DEL operation on key "foo" stored in the Database 0, two -# messages will be published via Pub/Sub: -# -# PUBLISH __keyspace@0__:foo del -# PUBLISH __keyevent@0__:del foo -# -# It is possible to select the events that Redis will notify among a set -# of classes. Every class is identified by a single character: -# -# K Keyspace events, published with __keyspace@__ prefix. -# E Keyevent events, published with __keyevent@__ prefix. -# g Generic commands (non-type specific) like DEL, EXPIRE, RENAME, ... -# $ String commands -# l List commands -# s Set commands -# h Hash commands -# z Sorted set commands -# x Expired events (events generated every time a key expires) -# e Evicted events (events generated when a key is evicted for maxmemory) -# A Alias for g$lshzxe, so that the "AKE" string means all the events. -# -# The "notify-keyspace-events" takes as argument a string that is composed -# of zero or multiple characters. The empty string means that notifications -# are disabled. -# -# Example: to enable list and generic events, from the point of view of the -# event name, use: -# -# notify-keyspace-events Elg -# -# Example 2: to get the stream of the expired keys subscribing to channel -# name __keyevent@0__:expired use: -# -# notify-keyspace-events Ex -# -# By default all notifications are disabled because most users don't need -# this feature and the feature has some overhead. Note that if you don't -# specify at least one of K or E, no events will be delivered. -notify-keyspace-events "" - -############################### ADVANCED CONFIG ############################### - -# Hashes are encoded using a memory efficient data structure when they have a -# small number of entries, and the biggest entry does not exceed a given -# threshold. These thresholds can be configured using the following directives. -hash-max-ziplist-entries 512 -hash-max-ziplist-value 64 - -# Lists are also encoded in a special way to save a lot of space. -# The number of entries allowed per internal list node can be specified -# as a fixed maximum size or a maximum number of elements. -# For a fixed maximum size, use -5 through -1, meaning: -# -5: max size: 64 Kb <-- not recommended for normal workloads -# -4: max size: 32 Kb <-- not recommended -# -3: max size: 16 Kb <-- probably not recommended -# -2: max size: 8 Kb <-- good -# -1: max size: 4 Kb <-- good -# Positive numbers mean store up to _exactly_ that number of elements -# per list node. -# The highest performing option is usually -2 (8 Kb size) or -1 (4 Kb size), -# but if your use case is unique, adjust the settings as necessary. -list-max-ziplist-size -2 - -# Lists may also be compressed. -# Compress depth is the number of quicklist ziplist nodes from *each* side of -# the list to *exclude* from compression. The head and tail of the list -# are always uncompressed for fast push/pop operations. Settings are: -# 0: disable all list compression -# 1: depth 1 means "don't start compressing until after 1 node into the list, -# going from either the head or tail" -# So: [head]->node->node->...->node->[tail] -# [head], [tail] will always be uncompressed; inner nodes will compress. -# 2: [head]->[next]->node->node->...->node->[prev]->[tail] -# 2 here means: don't compress head or head->next or tail->prev or tail, -# but compress all nodes between them. -# 3: [head]->[next]->[next]->node->node->...->node->[prev]->[prev]->[tail] -# etc. -list-compress-depth 0 - -# Sets have a special encoding in just one case: when a set is composed -# of just strings that happen to be integers in radix 10 in the range -# of 64 bit signed integers. -# The following configuration setting sets the limit in the size of the -# set in order to use this special memory saving encoding. -set-max-intset-entries 512 - -# Similarly to hashes and lists, sorted sets are also specially encoded in -# order to save a lot of space. This encoding is only used when the length and -# elements of a sorted set are below the following limits: -zset-max-ziplist-entries 128 -zset-max-ziplist-value 64 - -# HyperLogLog sparse representation bytes limit. The limit includes the -# 16 bytes header. When an HyperLogLog using the sparse representation crosses -# this limit, it is converted into the dense representation. -# -# A value greater than 16000 is totally useless, since at that point the -# dense representation is more memory efficient. -# -# The suggested value is ~ 3000 in order to have the benefits of -# the space efficient encoding without slowing down too much PFADD, -# which is O(N) with the sparse encoding. The value can be raised to -# ~ 10000 when CPU is not a concern, but space is, and the data set is -# composed of many HyperLogLogs with cardinality in the 0 - 15000 range. -hll-sparse-max-bytes 3000 - -# Active rehashing uses 1 millisecond every 100 milliseconds of CPU time in -# order to help rehashing the main Redis hash table (the one mapping top-level -# keys to values). The hash table implementation Redis uses (see dict.c) -# performs a lazy rehashing: the more operation you run into a hash table -# that is rehashing, the more rehashing "steps" are performed, so if the -# server is idle the rehashing is never complete and some more memory is used -# by the hash table. -# -# The default is to use this millisecond 10 times every second in order to -# actively rehash the main dictionaries, freeing memory when possible. -# -# If unsure: -# use "activerehashing no" if you have hard latency requirements and it is -# not a good thing in your environment that Redis can reply from time to time -# to queries with 2 milliseconds delay. -# -# use "activerehashing yes" if you don't have such hard requirements but -# want to free memory asap when possible. -activerehashing yes - -# The client output buffer limits can be used to force disconnection of clients -# that are not reading data from the server fast enough for some reason (a -# common reason is that a Pub/Sub client can't consume messages as fast as the -# publisher can produce them). -# -# The limit can be set differently for the three different classes of clients: -# -# normal -> normal clients including MONITOR clients -# slave -> slave clients -# pubsub -> clients subscribed to at least one pubsub channel or pattern -# -# The syntax of every client-output-buffer-limit directive is the following: -# -# client-output-buffer-limit -# -# A client is immediately disconnected once the hard limit is reached, or if -# the soft limit is reached and remains reached for the specified number of -# seconds (continuously). -# So for instance if the hard limit is 32 megabytes and the soft limit is -# 16 megabytes / 10 seconds, the client will get disconnected immediately -# if the size of the output buffers reach 32 megabytes, but will also get -# disconnected if the client reaches 16 megabytes and continuously overcomes -# the limit for 10 seconds. -# -# By default normal clients are not limited because they don't receive data -# without asking (in a push way), but just after a request, so only -# asynchronous clients may create a scenario where data is requested faster -# than it can read. -# -# Instead there is a default limit for pubsub and slave clients, since -# subscribers and slaves receive data in a push fashion. -# -# Both the hard or the soft limit can be disabled by setting them to zero. -client-output-buffer-limit normal 0 0 0 -client-output-buffer-limit slave 256mb 64mb 60 -client-output-buffer-limit pubsub 32mb 8mb 60 - -# Redis calls an internal function to perform many background tasks, like -# closing connections of clients in timeout, purging expired keys that are -# never requested, and so forth. -# -# Not all tasks are performed with the same frequency, but Redis checks for -# tasks to perform according to the specified "hz" value. -# -# By default "hz" is set to 10. Raising the value will use more CPU when -# Redis is idle, but at the same time will make Redis more responsive when -# there are many keys expiring at the same time, and timeouts may be -# handled with more precision. -# -# The range is between 1 and 500, however a value over 100 is usually not -# a good idea. Most users should use the default of 10 and raise this up to -# 100 only in environments where very low latency is required. -hz 10 - -# When a child rewrites the AOF file, if the following option is enabled -# the file will be fsync-ed every 32 MB of data generated. This is useful -# in order to commit the file to the disk more incrementally and avoid -# big latency spikes. -aof-rewrite-incremental-fsync yes - - diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/redis/redis/redis.sh b/charts/gopaddle/gopaddle/charts/gp-core/files/redis/redis/redis.sh deleted file mode 100644 index 7db767e64..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/redis/redis/redis.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -set -xe -mkdir /var/log/redis/ -p -mkdir mkdir /var/lib/redis -p -redis-server /usr/local/etc/redis/redis.conf diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/sa.json b/charts/gopaddle/gopaddle/charts/gp-core/files/sa.json deleted file mode 100644 index aaa0fe9d0..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/sa.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "auths":{ - "gcr.io":{ - "username":"_json_key", - "password":"{\n \"type\": \"service_account\",\n \"project_id\": \"bluemeric-1308\",\n \"private_key_id\": \"d2382707d843245fd804c06387f217da92cf8edb\",\n \"private_key\": \"-----BEGIN PRIVATE KEY-----\\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCjBgz0fYOo1D5D\\nKRCEgeLqUjEdkIsUxgZC7Pq2QkolXGDNpQdcFgaY/4tUv4V6ZNPgIQZBqzhEqUmK\\n4vI8NGAQCVeQHcrFjtx7LPvPo0CT/JiaJsvQED3EWSNh9sSRJCMxwLnwWgqcIuE/\\n5jsesdPAnWfov2rNEPPXkRTjDyhicT0d/5elxa/Wjsze0+nAxXqAJx2Wmh1nh9If\\nSmatzs4eWHhh2EUq59MkkQ+x9Mt71r7ROXpNaqzxbA1kCJQCe2ra304+zfCCu1xm\\n/yN5RkhkhDvD9+5P+IUZlJwiNGeWV8C5y1AmvShfswg8mp35+wqVsanA7XbI1tkf\\nYDtW6FbDAgMBAAECggEAUI4s2KMs67/1BDrGbrO/7QmwO2uxThKMBYYUXPtkqBF9\\nxCBIArjfibq8nqQE0PYBvD6VWN3CcCs2q+p4yEcZMNNs8UnHaNevGy6fP3rr7jRj\\nM8j37VgZLWzejwnhF9dDjNIvDxVvKLgTlf+uNvyoJgWh0uDDZZF67IpER+61he6j\\niRSE3+0Ysp09xizBu0x5R+yVbjUx0txTE/tf78PJgRJVSXryD8koQzBh+aDQk4tu\\na2/fDBpRSH1t8B5KO5u2TR3H0u2JzdOu5zLCijVVxNSNoZsh94u804WHEQDhpg+O\\ntyOhRqjkQfWarS96FSDEiA399gpeULg9+mjlj7oIAQKBgQDlMsuk1Z6s5kA0nlSQ\\nR66oz2oxeGOKzrXHNnmvYVclM6P1YMYd0Ec4DsdtG8mS51nhyJvFsrv2A4QAJPSf\\n5DggBktr013DE253pDxmTDQ+BpUs8mTBilSI4NK+D4L1ERQPKGyVD4GAlWIeb5X4\\nnbFrY2ZP9Lbdi703JbMkapo3awKBgQC2FkUKLVqsrhwgERwf/ISyKVsLx52HZyCq\\n6DHzKcgn3dY7csbOOcegC/rsHr9go/M8OHCYTdVwVH5jZnGYVyIDK/HSWdCVL9N/\\nHAtDRWtWTWjXPoiFqviROT6fKOQlT8C/LMxTCoEiZGuASuoG9+bDTPZOoqlIlPQT\\n6jDiXWIsCQKBgQC6yK+fUJv0qdxPRW0C+/gCCK6xTDxLJfSMOf/nBnv/jFslIM20\\nBEXWEG1DpO6cMsBUOamA7w0xC2Jqv7NADrwSlS6n2+RAkzhmdkjm0VmN5s1xiMTF\\n2VbVCeuVCo0d7OIdDEOZIr7WLGd/CE7/AnxRWPtLU9InMLduFuIsXlf5qwKBgBxa\\neWOtTkpHTk/b+jIs4wjPEcNS0P/NmjOitmxz3BwBGiPlqnlgW+pbEzaDTy+gN/bv\\nnvDIZez46zlVMWkUYFJ4HE6x953Tda58UnCmNaGZqjKiJSYTSmNqs4qbFnOM6Kmc\\nMzDXGOafFnJCuBBft8o/iLcT8yI/N4aGWBhXjDrpAoGBANIG71+luveV7aSYa6kN\\n3+wdQh/QPS4tXQ/G/rbxm02veQqGls9zEWBqh1aiGSAdSMylhyyfe+g7RZ3FPThq\\nKuy7d2zx/bFMks6Xqo7zbUQmqI1A8+Q+zNUdnckDjPqqcuQ9tb9oH2DlNIagagmO\\n+DzVIJPPa94yCMtgrvfHIKrB\\n-----END PRIVATE KEY-----\\n\",\n \"client_email\": \"testgopaddle-501@bluemeric-1308.iam.gserviceaccount.com\",\n \"client_id\": \"116719992545514885573\",\n \"auth_uri\": \"https://accounts.google.com/o/oauth2/auth\",\n \"token_uri\": \"https://oauth2.googleapis.com/token\",\n \"auth_provider_x509_cert_url\": \"https://www.googleapis.com/oauth2/v1/certs\",\n \"client_x509_cert_url\": \"https://www.googleapis.com/robot/v1/metadata/x509/testgopaddle-501%40bluemeric-1308.iam.gserviceaccount.com\"\n}", - "email":"demogopaddle@gmail.com", - "auth":"X2pzb25fa2V5OnsKICAidHlwZSI6ICJzZXJ2aWNlX2FjY291bnQiLAogICJwcm9qZWN0X2lkIjogImJsdWVtZXJpYy0xMzA4IiwKICAicHJpdmF0ZV9rZXlfaWQiOiAiZDIzODI3MDdkODQzMjQ1ZmQ4MDRjMDYzODdmMjE3ZGE5MmNmOGVkYiIsCiAgInByaXZhdGVfa2V5IjogIi0tLS0tQkVHSU4gUFJJVkFURSBLRVktLS0tLVxuTUlJRXZnSUJBREFOQmdrcWhraUc5dzBCQVFFRkFBU0NCS2d3Z2dTa0FnRUFBb0lCQVFDakJnejBmWU9vMUQ1RFxuS1JDRWdlTHFVakVka0lzVXhnWkM3UHEyUWtvbFhHRE5wUWRjRmdhWS80dFV2NFY2Wk5QZ0lRWkJxemhFcVVtS1xuNHZJOE5HQVFDVmVRSGNyRmp0eDdMUHZQbzBDVC9KaWFKc3ZRRUQzRVdTTmg5c1NSSkNNeHdMbndXZ3FjSXVFL1xuNWpzZXNkUEFuV2ZvdjJyTkVQUFhrUlRqRHloaWNUMGQvNWVseGEvV2pzemUwK25BeFhxQUp4MldtaDFuaDlJZlxuU21hdHpzNGVXSGhoMkVVcTU5TWtrUSt4OU10NzFyN1JPWHBOYXF6eGJBMWtDSlFDZTJyYTMwNCt6ZkNDdTF4bVxuL3lONVJraGtoRHZEOSs1UCtJVVpsSndpTkdlV1Y4QzV5MUFtdlNoZnN3ZzhtcDM1K3dxVnNhbkE3WGJJMXRrZlxuWUR0VzZGYkRBZ01CQUFFQ2dnRUFVSTRzMktNczY3LzFCRHJHYnJPLzdRbXdPMnV4VGhLTUJZWVVYUHRrcUJGOVxueENCSUFyamZpYnE4bnFRRTBQWUJ2RDZWV04zQ2NDczJxK3A0eUVjWk1OTnM4VW5IYU5ldkd5NmZQM3JyN2pSalxuTThqMzdWZ1pMV3planduaEY5ZERqTkl2RHhWdktMZ1RsZit1TnZ5b0pnV2gwdUREWlpGNjdJcEVSKzYxaGU2alxuaVJTRTMrMFlzcDA5eGl6QnUweDVSK3lWYmpVeDB0eFRFL3RmNzhQSmdSSlZTWHJ5RDhrb1F6QmgrYURRazR0dVxuYTIvZkRCcFJTSDF0OEI1S081dTJUUjNIMHUySnpkT3U1ekxDaWpWVnhOU05vWnNoOTR1ODA0V0hFUURocGcrT1xudHlPaFJxamtRZldhclM5NkZTREVpQTM5OWdwZVVMZzkrbWpsajdvSUFRS0JnUURsTXN1azFaNnM1a0EwbmxTUVxuUjY2b3oyb3hlR09LenJYSE5ubXZZVmNsTTZQMVlNWWQwRWM0RHNkdEc4bVM1MW5oeUp2RnNydjJBNFFBSlBTZlxuNURnZ0JrdHIwMTNERTI1M3BEeG1URFErQnBVczhtVEJpbFNJNE5LK0Q0TDFFUlFQS0d5VkQ0R0FsV0llYjVYNFxubmJGclkyWlA5TGJkaTcwM0piTWthcG8zYXdLQmdRQzJGa1VLTFZxc3Jod2dFUndmL0lTeUtWc0x4NTJIWnlDcVxuNkRIektjZ24zZFk3Y3NiT09jZWdDL3JzSHI5Z28vTThPSENZVGRWd1ZINWpabkdZVnlJREsvSFNXZENWTDlOL1xuSEF0RFJXdFdUV2pYUG9pRnF2aVJPVDZmS09RbFQ4Qy9MTXhUQ29FaVpHdUFTdW9HOStiRFRQWk9vcWxJbFBRVFxuNmpEaVhXSXNDUUtCZ1FDNnlLK2ZVSnYwcWR4UFJXMEMrL2dDQ0s2eFREeExKZlNNT2YvbkJudi9qRnNsSU0yMFxuQkVYV0VHMURwTzZjTXNCVU9hbUE3dzB4QzJKcXY3TkFEcndTbFM2bjIrUkFremhtZGtqbTBWbU41czF4aU1URlxuMlZiVkNldVZDbzBkN09JZERFT1pJcjdXTEdkL0NFNy9BbnhSV1B0TFU5SW5NTGR1RnVJc1hsZjVxd0tCZ0J4YVxuZVdPdFRrcEhUay9iK2pJczR3alBFY05TMFAvTm1qT2l0bXh6M0J3QkdpUGxxbmxnVytwYkV6YURUeStnTi9idlxubnZESVplejQ2emxWTVdrVVlGSjRIRTZ4OTUzVGRhNThVbkNtTmFHWnFqS2lKU1lUU21OcXM0cWJGbk9NNkttY1xuTXpEWEdPYWZGbkpDdUJCZnQ4by9pTGNUOHlJL040YUdXQmhYakRycEFvR0JBTklHNzErbHV2ZVY3YVNZYTZrTlxuMyt3ZFFoL1FQUzR0WFEvRy9yYnhtMDJ2ZVFxR2xzOXpFV0JxaDFhaUdTQWRTTXlsaHl5ZmUrZzdSWjNGUFRocVxuS3V5N2QyengvYkZNa3M2WHFvN3piVVFtcUkxQTgrUSt6TlVkbmNrRGpQcXFjdVE5dGI5b0gyRGxOSWFnYWdtT1xuK0R6VklKUFBhOTR5Q010Z3J2ZkhJS3JCXG4tLS0tLUVORCBQUklWQVRFIEtFWS0tLS0tXG4iLAogICJjbGllbnRfZW1haWwiOiAidGVzdGdvcGFkZGxlLTUwMUBibHVlbWVyaWMtMTMwOC5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsCiAgImNsaWVudF9pZCI6ICIxMTY3MTk5OTI1NDU1MTQ4ODU1NzMiLAogICJhdXRoX3VyaSI6ICJodHRwczovL2FjY291bnRzLmdvb2dsZS5jb20vby9vYXV0aDIvYXV0aCIsCiAgInRva2VuX3VyaSI6ICJodHRwczovL29hdXRoMi5nb29nbGVhcGlzLmNvbS90b2tlbiIsCiAgImF1dGhfcHJvdmlkZXJfeDUwOV9jZXJ0X3VybCI6ICJodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9vYXV0aDIvdjEvY2VydHMiLAogICJjbGllbnRfeDUwOV9jZXJ0X3VybCI6ICJodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9yb2JvdC92MS9tZXRhZGF0YS94NTA5L3Rlc3Rnb3BhZGRsZS01MDElNDBibHVlbWVyaWMtMTMwOC5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIKfQ==" - } - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/default-resources.json b/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/default-resources.json deleted file mode 100644 index a19cd978c..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/default-resources.json +++ /dev/null @@ -1,257 +0,0 @@ -{ - "allocationPolicy":{ - "internalTrigger":true, - "name":"default", - "displayName":"default", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IGFsbG9jYXRpb25Qb2xpY3k=", - "resources":{ - "limits":{ - "memory":"500M", - "cpu":"500m" - }, - "requests":{ - "memory":"20M", - "cpu":"20m" - } - }, - "tags":[ - { - "key":"default", - "value":"default" - } - ] - }, - "scalingPolicy":{ - "internalTrigger":true, - "name":"default", - "displayName":"default", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IHNjYWxpbmdQb2xpY3k=", - "minReplicas":1, - "maxReplicas":2, - "metric":[ - { - "type":"resource", - "resource":{ - "name":"cpu", - "targetAverageUtilization":70 - } - }, - { - "type":"resource", - "resource":{ - "name":"memory", - "targetAverageUtilization":70 - } - } - ] - }, - "networkPolicy":{ - "internalTrigger":true, - "name":"default", - "displayName":"default", - "ingress":[ - { - "ports":[ - { - "protocol":"TCP", - "port":22 - } - ], - "networkPolicyPeer":[ - { - "IPBlock":{ - "CIDR":"0.0.0.0/0" - } - } - ] - } - ], - "egress":[ - { - "ports":[ - { - "protocol":"TCP", - "port":22 - } - ], - "networkPolicyPeer":[ - { - "IPBlock":{ - "CIDR":"0.0.0.0/0" - } - } - ] - } - ] - }, - "volumeClaimPolicy":{ - "internalTrigger":true, - "name":"default", - "displayName":"default", - "accessMode":"ReadWriteOnce", - "volumeMode":"FileSystem", - "resources":{ - "limits":"50Gi", - "requests":"10Gi" - } - }, - "provisionPolicy-aws":{ - "internalTrigger":true, - "name":"default-aws", - "displayName":"default-aws", - "type":"aws", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IGF3cyBwcm92aXNpb25Qb2xpY3k=", - "parameter":{ - "awsEBS":{ - "type":"io1", - "zones":[ - "ap-southeast-1" - ], - "fsType":"ext4" - } - }, - "reclaimPolicy":"delete", - "tags":[ - { - "key":"default", - "value":"default" - } - ] - }, - "provisionPolicy-gce":{ - "internalTrigger":true, - "name":"default-gce", - "displayName":"default-gce", - "type":"gce", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IGdjZSBwcm92aXNpb25Qb2xpY3k=", - "parameter":{ - "gcePD":{ - "type":"pd-standard", - "zones":[ - "us-central1-a" - ], - "replicationType":"none", - "fsType":"ext4" - } - }, - "reclaimPolicy":"delete", - "tags":[ - { - "key":"default", - "value":"default" - } - ] - }, - "provisionPolicy-azure":{ - "internalTrigger":true, - "type":"azure", - "name":"default-azure", - "displayName":"default-azure", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IGF6dXJlIHByb3Zpc2lvblBvbGljeQ==", - "parameter":{ - "azureDISK":{ - "storageAccountType":"Standard_LRS", - "kind":"Managed" - } - }, - "reclaimPolicy":"delete", - "defaultPolicy":true, - "tags":[ - { - "key":"default", - "value":"default" - } - ] - }, - "deploymentPolicy-stateless":{ - "internalTrigger":true, - "name":"default-stateless", - "displayName":"default-stateless", - "type":"deployment", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IHN0YXRlbGVzcyBkZXBsb3ltZW50UG9saWN5", - "property":{ - "revisionHistory":10, - "deployment":{ - "updateMethod":"rollingUpdate", - "replicas":1, - "rollingUpdate":{ - "maxUnavailable":{ - "type":0, - "intVal":0 - }, - "maxSurge":{ - "type":0, - "intVal":1 - } - } - } - }, - "tags":[ - { - "key":"default", - "value":"default" - } - ] - }, - "deploymentPolicy-stateful":{ - "internalTrigger":true, - "name":"default-stateful", - "displayName":"default-stateful", - "type":"stateful-set", - "description":"Z29wYWRkbGUncyBkZWZhdWx0IHN0YXRlZnVsIGRlcGxveW1lbnRQb2xpY3k=", - "property":{ - "revisionHistory":2, - "statefulset":{ - "replicas":1, - "updateMethod":"rollingUpdate", - "rollingUpdate":{ - "partition":0 - } - } - }, - "tags":[ - { - "key":"default-stateful", - "value":"default-stateful" - } - ] - }, - "subscription":{ - "mode":"saas", - "subscription":{ - "deck":{ - "type":"free" - }, - "propeller":{ - "type":"free" - }, - "gear":{ - "type":"free" - } - } - }, - "liteSubscription":{ - "mode":"lite", - "subscription":{ - "deck":{ - "type":"free" - }, - "propeller":{ - "type":"free" - }, - "gear":{ - "type":"free" - } - } - }, - "release": { - "name":"default", - "releaseTag":"default", - "defaultRelease":true - }, - "project":{ - "name":"default", - "organization":"gopaddle", - "defaultProject":true - } - } \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/error_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/error_config.json deleted file mode 100644 index ed3fdd93b..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/error_config.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "all":{ - "DATA_PERSISTANCE": "Internal Error; (Failed to store data)", - "DATA_RETRIVE": "Internal Error; (Failed to retrive data)", - "INTERNAL_SERVER": "Internal Error; Unable to communicate with internal-server", - "INTERNAL_SERVER_ERROR": "Internal Error; Try after sometime", - "RESOURCE_NOT_FOUND": "Resource '%s' does not exist", - "ERROR_HITTING_EXT_API": "Unable to communicate with external resources", - "SOMETHING_WRONG": "Internal Error", - "INTERNAL_DB_COPY": "Could not format response from database object.", - "INPUT_PAYLOAD_ERROR":"Input payload have error: %s", - "GEN_UNMARSHAL_ERROR":"Error in unmarshal '%s'", - "STRING_TO_INT_ERROR":"Error in converting string to int '%s'", - "FIELD_VALIDATION":"InvalidValidationError '%s'", - "ALREADY_EXIST": "'%s' already exists", - "MISSING_FIELD": "Invalid input or missing mandatory field '%s'" - }, - "user":{ - "EMAIL_ALREADY_EXISTS": "Email already exists. Sign in to continue", - "INVALID_EMAIL": "Given email id is invalid. Please enter a valid email id.", - "PASSWORD_DECRYPTION": "Failed in password decryption", - "PASSWORD_STRENGTH": "Password length should be between 8-16 characters and should contain atleast 1 alphabet, 1 number and 1 special character", - "INCORRECT_USER": "Incorrect username. Please try again.", - "INCORRECT_EMAIL": "Incorrect EmailID. Please try again.", - "USER_NOT_FOUND":"Requested user does not exist.", - "INCORRECT_PASSWORD": "Incorrect password. Please try again.", - "ACCOUNT_UNVERIFIED": "Please verify your account", - "PASSWORD_EXPIRED": "Password expired. Please update your password to continue.", - "PASSWORD_MISMATCH": "Given new password and confirm passwor does not match" - }, - "mail":{ - "INVALID_EMAIL_CODE": "Given mail verification code is invalid", - "INVALID_PHONE_CODE": "Given phone verification code is invalid", - "EXPIRED_EMAIL_CODE": "Given mail verification code has already expired", - "EXPIRED_PHONE_CODE": "Given phone verification code has already expired" - }, - "license":{ - "LICENSE_NOTFOUND":"license not found" - }, - "acl":{ - "ACL_NOTFOUND":"Requested acl '%s' is not found", - "ACL_ALREADY_EXIST":"Requested acl '%s' is already exist", - "INVALID_ACLID_FMT":"Requested ACLID '%s' is invalid formate", - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'" - }, - "project":{ - "PROJECT_NOTFOUND":"Requested project '%s' is not found", - "PROJECT_ALREADY_EXIST":"Requested project '%s' is already exist", - "INVALID_PROJECTID_FMT":"Requested ProjectID '%s' is invalid formate", - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'" - }, - "subusers":{ - "USER_NOTFOUND":"Requested user '%s' is not found", - "USER_ALREADY_EXIST":"Requested user '%s' is already exist", - "INVALID_USERID_FMT":"Requested UserID '%s' is invalid formate", - "PAGESIZE_NEGAVE":"Page or Size can not be negative number { '%d', '%d' }", - "PPAGE_LIMIT":"Requested invalid page '%d'; Page should be less than '%d'", - "PSIZE_LIMIT":"Requested invalid size '%d' Page should be less than '%d'" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/internal_api.json b/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/internal_api.json deleted file mode 100644 index 9243c2c71..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/internal_api.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "createCalls":{ - "allocationPolicy":"api/%s/v1/%s/allocationPolicy", - "scalingPolicy":"api/%s/v1/%s/scalingPolicy", - "volumeClaimPolicy":"api/%s/%s/volumeClaimPolicy", - "networkPolicy":"api/%s/v1/%s/networkpolicy", - "deploymentPolicy-stateless":"api/%s/v1/%s/deploymentPolicy", - "deploymentPolicy-stateful":"api/%s/v1/%s/deploymentPolicy", - "provisionPolicy-aws":"api/%s/v1/%s/storageClass", - "provisionPolicy-gce":"api/%s/v1/%s/storageClass", - "provisionPolicy-azure":"api/%s/v1/%s/storageClass", - "release":"api/%s/v1/%s/release", - "project":"api/%s/v1/project" - }, - "listCalls":{ - "application":"api/%s/v1/%s/application?filters=status:notin-Deleted", - "cluster":"api/%s/v1/%s/cluster", - "build":"api/%s/v1/%s/build?filters=status:Creating" - }, - "deleteCalls":{ - "application":"api-in/%s/v1/%s/application?purge=true", - "deploymentTemplate":"api-internal/%s/v1/%s/deploymentTemplate", - "services":"api-internal/%s/v1/%s/serviceGroup", - "allocationPolicy":"api-internal/%s/v1/%s/allocationPolicy", - "scalingPolicy":"api-internal/%s/v1/%s/scalingPolicy", - "volumeClaimPolicy":"api-internal/%s/%s/volumeClaimPolicy", - "networkPolicy":"api-internal/%s/v1/%s/networkpolicy", - "deploymentPolicy":"api-internal/%s/v1/%s/deploymentPolicy", - "provisionPolicy":"api-internal/%s/v1/%s/storageClass", - "volume":"api-internal/%s/v1/%s/volume", - "container":"api-internal/%s/v1/%s/service", - "config":"api-internal/%s/v1/%s/config", - "release":"api-internal/%s/v1/%s/release", - "registry":"api-in/%s/v1/%s/registry", - "cloudAccount":"api-in/%s/v1/%s/cloudaccount", - "cloudAuthenticator":"api-in/%s/v1/%s/cloudauth", - "codebaseAccesptor":"api-internal/%s/v1/%s/codebaseAcceptor", - "codebaseRequestor":"api-internal/%s/v1/%s/codebaseRequestor", - "build":"api-internal/%s/v1/%s/build", - "domain":"api-in/%s/v1/%s/domain" - }, - "acl":{ - "url":"http://%s:%s/api-in/%s/v1/acl?userid=%s", - "port":"8005" - }, - "nonrootuser":{ - "url":"http://%s:%s/api/%s/v1/subusers/%s", - "port":"8005" - } -} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/log_config.json b/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/log_config.json deleted file mode 100644 index c165bd031..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/log_config.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "formatters": { - "usermanager": { - "format": "%(asctime)s %(levelname)s (%(filename)s:%(lineno)d) %(message)s", - "datefmt": "%Y-%m-%d %H:%M:%S" - } - }, - "handlers": { - "usermanager": { - "class": "RotatingFileHandler", - "filepath": "./usermanager.log", - "mode": "O_APPEND", - "bufferSize": 0, - "bufferFlushTime": 30000, - "inputChanSize": 1, - "maxBytes": 104857600, - "backupCount": 9, - "formatter": "usermanager" - } - }, - "loggers": { - "debug": { - "level": "DEBUG", - "handlers": [ - "usermanager" - ] - }, - "info": { - "level": "INFO", - "handlers": [ - "usermanager" - ] - }, - "warn": { - "level": "WARN", - "handlers": [ - "usermanager" - ] - }, - "error": { - "level": "ERROR", - "handlers": [ - "usermanager" - ] - }, - "fatal": { - "level": "FATAL", - "handlers": [ - "usermanager" - ] - } - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/profiles-kube.json deleted file mode 100644 index 494a8722e..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/profiles-kube.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "mongodb": - { - "db-name": "userdb", - "db-endpoint": [ - "mongodb:27017" - ], - "db-port": "27017", - "user-db": "admin", - "db-user": "admin", - "db-password": "cGFzc3dvcmQ" - }, - "redis": - { - "redis-endpoint":"redis", - "redis-port":"6379", - "redis-password":"avraj" - }, - "jwt_params": - { - "PrivateKeyPath": "/settings/keys/beta/private_key", - "PublicKeyPath": "/settings/keys/beta/public_key.pub", - "JWTExpirationDelta": "12" - }, - "mail_content": - { - "password-reset-url": "NODE_IP", - "sendgrid_username": "anumantharaja", - "sendgrid_password": "sendgrid123456789", - "sendgrid_api_key": "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", - "mail_from": "no-reply@gopaddle.io", - "bccSenderName":"vinothiniraju", - "bccmail":"vinothiniraju@gopaddle.io" - }, - "logger": - { - "logType": "debug" - }, - "userIconDirectory": - { - "iconDirectory": "/iconPath/%s/user/", - "iconAPI": "/v1/user/icon/%s" - }, - "mode":{ - "isOnPrem":"false" - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/service_directory-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/service_directory-kube.json deleted file mode 100644 index 523da7d5c..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/service_directory-kube.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "license.ep": { - "host": "gpcore", - "port": "8759" - }, - "transaction.ep": { - "host": "gpcore", - "port": "8759" - }, - "configmanager.ep":{ - "host": "configmanager", - "port": "8001" - }, - "usermanager.ep": { - "host":"usermanager", - "port":"8005" - }, - "user.ep": { - "host":"usermanager", - "port":"8005" - }, - "nodechecker.ep": { - "host":"nodechecker", - "port":"8020" - }, - "billing.ep":{ - "host":"costmanager", - "port":"8011" - }, - "paymentmanager.ep":{ - "host":"paymentmanager", - "port":"8021" - }, - "release.ep":{ - "host": "gpcore", - "port": "8759" - }, - "deploymentmanager.ep":{ - "host": "deploymentmanager", - "port": "8003" - }, - "clustermanager.ep":{ - "host": "clustermanager", - "port": "8013" - }, - "core.ep":{ - "host": "gpcore", - "port": "8759" - }, - "cloudmanager.ep":{ - "host": "cloudmanager", - "port": "8018" - }, - "domainmanager.ep":{ - "host": "domainmanager", - "port": "8004" - } - -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/validation.json b/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/validation.json deleted file mode 100644 index 0dc875727..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/usermanager/usermanager/validation.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "user": { - "createUserExpectedFields": [ - "userName", - "emailId", - "password", - "mobileNumber" - ], - "updatePasswordExpectedFields": [ - "oldPassword", - "newPassword", - "confirmNewPassword" - ], - "sendResetPasswordLink": [ - ], - "resetPasswordExpectedFields": [ - "newPassword", - "confirmNewPassword", - "token" - ], - "updateUserAttributes":[ - "password", - "mobileNumber", - "updateType" - ] - } -} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/files/webhook/webhook/profiles-kube.json b/charts/gopaddle/gopaddle/charts/gp-core/files/webhook/webhook/profiles-kube.json deleted file mode 100644 index 43a3ed5cb..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/files/webhook/webhook/profiles-kube.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "profiles":{ - "kube":{ - "host":"gpcore", - "port":"8759", - "nodechecker-host":"nodechecker", - "nodechecker-port":"8020" - } - } - } \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/onprem-values.yaml b/charts/gopaddle/gopaddle/charts/gp-core/onprem-values.yaml deleted file mode 100644 index df8b7b32f..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/onprem-values.yaml +++ /dev/null @@ -1,164 +0,0 @@ -activitymanager: - activitymanager: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -alertmanager: - alertmanager: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -appscanner: - appscanner: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -appworker: - appworker: - envMap: - NODE_NAME: spec.nodeName - rabbitmq_user: admin - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -cloudmanager: - cloudmanager: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -clustermanager: - clustermanager: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -clustertemplatemanager: - clustertemplatemanager: - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -configmanager: - configmanager: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.2 - imageTagArm: multi-arch-4.2.7.onprem.2 -costmanager: - costmanager: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -deploymentmanager: - deploymanager: - envMap: - NODE_NAME: spec.nodeName - rabbitmq_user: admin - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -domainmanager: - domainmanager: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -esearch: - esearch: - envMap: - discovery.type: single-node - image: elasticsearch:7.12.0 - imageTag: 1.7.3 - imageTagArm: 7.8.0 -gateway: - gateway: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 - gpkubeux: - envMap: - HOST: 0.0.0.0 - imageTag: multi-arch-4.2.7.onprem.2 - imageTagArm: multi-arch-4.2.7.onprem.2 - gpReleaseVersion: 4.2.9 -gpcore: - core: - envMap: - NODE_IP: rabbitmq-build-external.$(NAMESPACE).svc.cluster.local - NODE_NAME: spec.nodeName - NODE_PORT: "5672" - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -influxdb: - influxdb: - envMap: - INFLUXDB_ADMIN_PASSWORD: cGFzc3dvcmQ - INFLUXDB_ADMIN_USER: admin - INFLUXDB_HTTP_AUTH_ENABLED: "true" - image: influxdb - imageTag: 1.7.10 -mongodb: - mongo: - envMap: - MONGO_INITDB_ROOT_USERNAME: admin - MONGO_LITE_USERNAME: lite - image: mongo - imageTag: 4.0.4 - mongoInit: - image: mongo - imageTag: 4.0.4 -nodechecker: - nodechecker: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -paymentmanager: - paymentmanager: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -rabbitmq: - rabbitmq: - envMap: - RABBITMQ_DEFAULT_PASS: cGFzc3dvcmQ - RABBITMQ_DEFAULT_USER: admin - image: rabbitmq - imageTag: 3.8.5 -redis: - redis: - image: redis - imageTag: 3.2-alpine -usermanager: - usermanager: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -webhook: - webhook: - envMap: - APP_NAME: metadata.namespace - HOST_IP: status.hostIP - NODE_NAME: spec.nodeName - REPLICA_IP: status.podIP - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -marketplace: - marketplace: - envMap: - NODE_NAME: spec.nodeName - imageTag: multi-arch-4.2.7.onprem.1 - imageTagArm: multi-arch-4.2.7.onprem.1 -defaultbackend: - defaultbackend: - image: defaultbackend - imageArm: defaultbackend-arm64 - imageTag: 1.4 -nginxIngress: - nginxIngress: - image: nginx/nginx-ingress - imageTag: 3.1-alpine \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/53130a9agb707g4184g8-lb-bi1ls.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/53130a9agb707g4184g8-lb-bi1ls.yaml deleted file mode 100644 index 80a5163a1..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/53130a9agb707g4184g8-lb-bi1ls.yaml +++ /dev/null @@ -1,71 +0,0 @@ -{{- if ne (.Values.global.routingType | toString) "NodePortWithOutIngress" }} -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - kubernetes.io/ingress.class: nginx - nginx.ingress.kubernetes.io/ssl-redirect: "true" - nginx.ingress.kubernetes.io/force-ssl-redirect: "true" - cert-manager.io/issuer: "letsencrypt-staging" - creationTimestamp: null - labels: - app: 53130a9agb707g4184g8-lb-bi1ls - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: 53130a9agb707g4184g80a4g6d111fb31013 - released-by: gopaddle - name: 53130a9agb707g4184g8-lb-bi1ls - namespace: {{ .Release.Namespace }} -spec: - defaultBackend: - service: - name: default-http-backend - port: - number: 80 - rules: - - host: {{ .Values.global.gopaddle.domainName }} - http: - paths: - - backend: - service: - name: activitymanager - port: - number: 8009 - path: /api-wsactivity - pathType: ImplementationSpecific - - backend: - service: - name: gateway - port: - number: 8006 - path: /gateway - pathType: ImplementationSpecific - - backend: - service: - name: gateway - port: - number: 8006 - path: /api - pathType: ImplementationSpecific - - backend: - service: - name: gateway - port: - number: 8080 - path: / - pathType: ImplementationSpecific - - backend: - service: - name: costmanager - port: - number: 8011 - path: /api-ws - pathType: ImplementationSpecific - tls: - - hosts: - - {{ .Values.global.gopaddle.domainName }} - {{- if .Values.global.gopaddle.https }} - secretName: {{ .Values.global.gopaddle.secretName }} - {{- end}} -status: - loadBalancer: {} -{{- end }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/5f574368g562dg40afg9-lb-ppdjx.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/5f574368g562dg40afg9-lb-ppdjx.yaml deleted file mode 100644 index 1d1e2584a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/5f574368g562dg40afg9-lb-ppdjx.yaml +++ /dev/null @@ -1,40 +0,0 @@ -{{- if ne (.Values.global.routingType | toString) "NodePortWithOutIngress" }} -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - annotations: - kubernetes.io/ingress.class: nginx - creationTimestamp: null - labels: - app: 5f574368g562dg40afg9-lb-ppdjx - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: 5f574368g562dg40afg9857gde42920dee7c - released-by: gopaddle - name: 5f574368g562dg40afg9-lb-ppdjx - namespace: {{ .Release.Namespace }} -spec: - defaultBackend: - service: - name: default-http-backend - port: - number: 80 - rules: - - host: {{ .Values.global.gopaddleWebhook.domainName }} - http: - paths: - - backend: - service: - name: webhook - port: - number: 9090 - path: / - pathType: ImplementationSpecific - tls: - - hosts: - - {{ .Values.global.gopaddleWebhook.domainName }} - {{- if .Values.global.gopaddleWebhook.https }} - secretName: {{ .Values.global.gopaddleWebhook.secretName }} - {{- end }} -status: - loadBalancer: {} -{{- end }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/_helpers.tpl b/charts/gopaddle/gopaddle/charts/gp-core/templates/_helpers.tpl deleted file mode 100644 index 1581a4e3a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/_helpers.tpl +++ /dev/null @@ -1,862 +0,0 @@ -{{/* vim: set filetype=mustache: */}} - -{{/* -Node_IP for gopaddle -*/}} -{{- define "gopaddle.nodeIP" -}} -{{- if eq (.Values.global.routingType | toString) "NodePortWithIngress" -}} - {{- if .Values.global.gopaddle.https -}} - {{- printf "https://%s:30002" .Values.global.gopaddle.domainName -}} - {{- else -}} - {{- printf "http://%s:30002" .Values.global.gopaddle.domainName -}} - {{- end -}} -{{- else if eq (.Values.global.routingType | toString) "LoadBalancer" -}} - {{- if .Values.global.gopaddle.https -}} - {{- printf "https://%s" .Values.global.gopaddle.domainName -}} - {{- else -}} - {{- printf "http://%s" .Values.global.gopaddle.domainName -}} - {{- end -}} -{{- else if eq (.Values.global.routingType | toString) "NodePortWithOutIngress" -}} - {{- if eq (.Values.global.accessMode | toString) "public" -}} - {{/* ExternalIP from node*/}} - {{- $externalIP := "" -}} - {{- $internalIP :="" -}} - {{- range $index, $node := (lookup "v1" "Node" "" "").items -}} - {{- range $address:= $node.status.addresses -}} - {{- if eq ($address.type | toString) "ExternalIP" -}} - {{- $externalIP = $address.address -}} - {{- else if eq ($address.type | toString) "InternalIP" -}} - {{- $internalIP = $address.address -}} - {{- end -}} - {{- end -}} - {{- end -}} - {{/*asign a value to Node_IP */}} - {{- if .Values.global.staticIP -}} - {{- printf "http://%s:30004" .Values.global.staticIP -}} - {{- else if $externalIP -}} - {{- printf "http://%s:30004" $externalIP -}} - {{- else -}} - {{- printf "http://%s:30004" $internalIP -}} - {{- end -}} - {{- else if eq (.Values.global.accessMode | toString) "private" -}} - {{/* InternalIP from node*/}} - {{- $internalIP := "" -}} - {{- range $index, $node := (lookup "v1" "Node" "" "").items -}} - {{- range $address:= $node.status.addresses -}} - {{- if eq ($address.type | toString) "InternalIP" -}} - {{- $internalIP = $address.address -}} - {{- end -}} - {{- end -}} - {{- end -}} - {{/*asign a value to Node_IP */}} - {{- if .Values.global.staticIP -}} - {{- printf "http://%s:30004" .Values.global.staticIP -}} - {{- else -}} - {{- printf "http://%s:30004" $internalIP -}} - {{- end -}} - {{- end -}} -{{- end -}} -{{- end -}} - -{{/* -Node_IP for gopaddle webhook -*/}} -{{- define "gopaddleWebhook.nodeIP" -}} -{{- if eq (.Values.global.routingType | toString) "NodePortWithIngress" -}} - {{- if .Values.global.gopaddleWebhook.https -}} - {{- printf "https://%s:30002" .Values.global.gopaddleWebhook.domainName -}} - {{- else -}} - {{- printf "http://%s:30002" .Values.global.gopaddleWebhook.domainName -}} - {{- end -}} -{{- else if eq (.Values.global.routingType | toString) "LoadBalancer" -}} - {{- if .Values.global.gopaddleWebhook.https -}} - {{- printf "https://%s" .Values.global.gopaddleWebhook.domainName -}} - {{- else -}} - {{- printf "http://%s" .Values.global.gopaddleWebhook.domainName -}} - {{- end -}} -{{- else if eq (.Values.global.routingType | toString) "NodePortWithOutIngress" -}} - {{- if eq (.Values.global.accessMode | toString) "public" -}} - {{/* ExternalIP from node*/}} - {{- $externalIP := "" -}} - {{- $internalIP :="" -}} - {{- range $index, $node := (lookup "v1" "Node" "" "").items -}} - {{- range $address:= $node.status.addresses -}} - {{- if eq ($address.type | toString) "ExternalIP" -}} - {{- $externalIP = $address.address -}} - {{- else if eq ($address.type | toString) "InternalIP" -}} - {{- $internalIP = $address.address -}} - {{- end -}} - {{- end -}} - {{- end -}} - {{/*asign a value to Node_IP */}} - {{- if .Values.global.staticIP -}} - {{- printf "http://%s:30007" .Values.global.staticIP -}} - {{- else if $externalIP -}} - {{- printf "http://%s:30007" $externalIP -}} - {{- else -}} - {{- printf "http://%s:30007" $internalIP -}} - {{- end -}} - {{- else if eq (.Values.global.accessMode | toString) "private" -}} - {{/* InternalIP from node*/}} - {{- $internalIP := "" -}} - {{- range $index, $node := (lookup "v1" "Node" "" "").items -}} - {{- range $address:= $node.status.addresses -}} - {{- if eq ($address.type | toString) "InternalIP" -}} - {{- $internalIP = $address.address -}} - {{- end -}} - {{- end -}} - {{- end -}} - {{/*asign a value to Node_IP */}} - {{- if .Values.global.staticIP -}} - {{- printf "http://%s:30007" .Values.global.staticIP -}} - {{- else -}} - {{- printf "http://%s:30007" $internalIP -}} - {{- end -}} - {{- end -}} - -{{- end -}} -{{- end -}} - -{{/* -BASE_SERVER for gopaddle ui [BackEnd] -*/}} -{{- define "gopaddle.baseServer" -}} -{{- if eq (.Values.global.routingType | toString) "NodePortWithIngress" -}} - {{- if .Values.global.gopaddle.https -}} - {{- printf "https://%s:30002" .Values.global.gopaddle.domainName -}} - {{- else -}} - {{- printf "https://%s:30002" .Values.global.gopaddle.domainName -}} - {{- end -}} -{{- else if eq (.Values.global.routingType | toString) "LoadBalancer" -}} - {{- if .Values.global.gopaddle.https -}} - {{- printf "https://%s" .Values.global.gopaddle.domainName -}} - {{- else -}} - {{- printf "https//:%s" .Values.global.gopaddle.domainName -}} - {{- end -}} -{{- else if eq (.Values.global.routingType | toString) "NodePortWithOutIngress" -}} - {{- if eq (.Values.global.accessMode | toString) "public" -}} - {{/* ExternalIP from node*/}} - {{- $externalIP := "" -}} - {{- $internalIP :="" -}} - {{- range $index, $node := (lookup "v1" "Node" "" "").items -}} - {{- range $address:= $node.status.addresses -}} - {{- if eq ($address.type | toString) "ExternalIP" -}} - {{- $externalIP = $address.address -}} - {{- else if eq ($address.type | toString) "InternalIP" -}} - {{- $internalIP = $address.address -}} - {{- end -}} - {{- end -}} - {{- end -}} - {{/*asign a value to BASE_SERVER */}} - {{- if .Values.global.staticIP -}} - {{- printf "http://%s:30004" .Values.global.staticIP -}} - {{- else if $externalIP -}} - {{- printf "http://%s:30004" $externalIP -}} - {{- else -}} - {{- printf "http://%s:30004" $internalIP -}} - {{- end -}} - {{- else if eq (.Values.global.accessMode | toString) "private" -}} - {{/* InternalIP from node*/}} - {{- $internalIP := "" -}} - {{- range $index, $node := (lookup "v1" "Node" "" "").items -}} - {{- range $address:= $node.status.addresses -}} - {{- if eq ($address.type | toString) "InternalIP" -}} - {{- $internalIP = $address.address -}} - {{- end -}} - {{- end -}} - {{- end -}} - {{/*asign a value to BASE_SERVER */}} - {{- if .Values.global.staticIP -}} - {{- printf "http://%s:30004" .Values.global.staticIP -}} - {{- else -}} - {{- printf "http://%s:30004" $internalIP -}} - {{- end -}} - {{- end -}} - -{{- end -}} -{{- end -}} - -{{/* -BASE_SERVER for gopaddle ui [FrontEnd] -*/}} -{{- define "gopaddle.baseServerUI" -}} -{{- if eq (.Values.global.routingType | toString) "NodePortWithIngress" -}} - {{- if .Values.global.gopaddle.https -}} - {{- printf "https://%s:30002" .Values.global.gopaddle.domainName -}} - {{- else -}} - {{- printf "https://%s:30002" .Values.global.gopaddle.domainName -}} - {{- end -}} -{{- else if eq (.Values.global.routingType | toString) "LoadBalancer" -}} - {{- if .Values.global.gopaddle.https -}} - {{- printf "https://%s" .Values.global.gopaddle.domainName -}} - {{- else -}} - {{- printf "https//:%s" .Values.global.gopaddle.domainName -}} - {{- end -}} -{{- else if eq (.Values.global.routingType | toString) "NodePortWithOutIngress" -}} - {{- if eq (.Values.global.accessMode | toString) "public" -}} - {{/* ExternalIP from node*/}} - {{- $externalIP := "" -}} - {{- $internalIP :="" -}} - {{- range $index, $node := (lookup "v1" "Node" "" "").items -}} - {{- range $address:= $node.status.addresses -}} - {{- if eq ($address.type | toString) "ExternalIP" -}} - {{- $externalIP = $address.address -}} - {{- else if eq ($address.type | toString) "InternalIP" -}} - {{- $internalIP = $address.address -}} - {{- end -}} - {{- end -}} - {{- end -}} - {{/*asign a value to BASE_SERVER */}} - {{- if .Values.global.staticIP -}} - {{- printf "http://%s:30003" .Values.global.staticIP -}} - {{- else if $externalIP -}} - {{- printf "http://%s:30003" $externalIP -}} - {{- else -}} - {{- printf "http://%s:30003" $internalIP -}} - {{- end -}} - {{- else if eq (.Values.global.accessMode | toString) "private" -}} - {{/* InternalIP from node*/}} - {{- $internalIP := "" -}} - {{- range $index, $node := (lookup "v1" "Node" "" "").items -}} - {{- range $address:= $node.status.addresses -}} - {{- if eq ($address.type | toString) "InternalIP" -}} - {{- $internalIP = $address.address -}} - {{- end -}} - {{- end -}} - {{- end -}} - {{/*asign a value to BASE_SERVER */}} - {{- if .Values.global.staticIP -}} - {{- printf "http://%s:30003" .Values.global.staticIP -}} - {{- else -}} - {{- printf "http://%s:30003" $internalIP -}} - {{- end -}} - {{- end -}} - -{{- end -}} -{{- end -}} - -{{/* -NODE_IP_ENDPOINT for gopaddle GPCTL -*/}} -{{- define "gopaddle.clusterNodeIP" -}} -{{- if .Values.global.cluster.nodeIP -}} - {{- printf "http://%s:30004" .Values.global.cluster.nodeIP -}} -{{- end -}} -{{- end -}} - -{{/* - cluster provider handdle appworker -*/}} -{{- define "cluster.provider.appworker" -}} -{{- if eq (.Values.global.cluster.provider | toString) "other" -}} - args: - - |- - #!/bin/bash - apk add busybox-openrc - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > appworker.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - # echo "----------- start conatainer ------------" - ./appworker kube > /var/log/gopaddle/appworker.log - tail -f /var/log/gopaddle/appworker.log -{{- else if eq (.Values.global.cluster.provider | toString) "hpe" -}} - args: - - |- - #!/bin/bash - apk add busybox-openrc - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > appworker.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - # echo "----------- start appworker --------" - ./appworker kube > /var/log/gopaddle/appworker.log - tail -f /var/log/gopaddle/appworker.log -{{- end -}} -{{- end -}} - - -{{/* - cluster provider handdle deploymentmanager -*/}} -{{- define "cluster.provider.deploymentmanager" -}} -{{- if eq (.Values.global.cluster.provider | toString) "other" -}} - args: - - |- - #!/bin/bash - apk add busybox-openrc - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > deploymentmanager.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - ./deploymentmanager kube > /var/log/gopaddle/deploymentmanager.log - tail -f /var/log/gopaddle/deploymentmanager.log -{{- else if eq (.Values.global.cluster.provider | toString) "hpe" -}} - args: - - |- - #!/bin/bash - apk add busybox-openrc - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > deploymentmanager.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - ./deploymentmanager kube > /var/log/gopaddle/deploymentmanager.log - tail -f /var/log/gopaddle/deploymentmanager.log -{{- end -}} -{{- end -}} - - -{{/* - cluster provider handdle clustermanager -*/}} -{{- define "cluster.provider.clustermanager" -}} -{{- if eq (.Values.global.cluster.provider | toString) "other" -}} - args: - - |- - #!/bin/bash - apk add busybox-openrc - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > clustermanager.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - # echo "----------- start conatainer ------------" - ./clustermanager kube > /var/log/gopaddle/clustermanager.log - tail -f /var/log/gopaddle/clustermanager.log -{{- else if eq (.Values.global.cluster.provider | toString) "hpe" -}} - args: - - |- - #!/bin/bash - apk add busybox-openrc - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > clustermanager.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - # echo "----------- start clustermanager --------" - ./clustermanager kube > /var/log/gopaddle/clustermanager.log - tail -f /var/log/gopaddle/clustermanager.log -{{- end -}} -{{- end -}} - - -{{/* - cluster provider handdle gpcore -*/}} -{{- define "cluster.provider.gpcore" -}} -{{- if eq (.Values.global.cluster.provider | toString) "other" -}} - args: - - |- - #!/bin/bash - apk add busybox-openrc - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > gpcore.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - # echo "----------- start conatainer ------------" - ./gpcore kube > /var/log/gopaddle/gpcore.log - tail -f /var/log/gopaddle/gpcore.log -{{- else if eq (.Values.global.cluster.provider | toString) "hpe" -}} - args: - - |- - #!/bin/bash - apk add busybox-openrc - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > gpcore.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - # echo "----------- start conatainer ------------" - ./gpcore kube > /var/log/gopaddle/gpcore.log - tail -f /var/log/gopaddle/gpcore.log -{{- end -}} -{{- end -}} - - -{{/* -Node_IP for gopaddle gpcore -*/}} -{{- define "gopaddle.gpcore.ip" -}} -{{- if eq (.Values.global.routingType | toString) "LoadBalancer" -}} - {{/*asign a value to NODE_IP */}} - {{- (index (lookup "v1" "Service" .Release.Namespace "rabbitmq-build-external").status.loadBalancer.ingress 0).ip -}} -{{- else if eq (.Values.global.routingType | toString) "NodePortWithIngress" -}} - {{- if eq (.Values.global.accessMode | toString) "public" -}} - {{/* ExternalIP from node*/}} - {{- $externalIP := "" -}} - {{- $internalIP := "" -}} - {{- range $index, $node := (lookup "v1" "Node" "" "").items -}} - {{- range $address:= $node.status.addresses -}} - {{- if eq ($address.type | toString) "ExternalIP" -}} - {{- $externalIP = $address.address -}} - {{- else if eq ($address.type | toString) "InternalIP" -}} - {{- $internalIP = $address.address -}} - {{- end -}} - {{- end -}} - {{- end -}} - {{/*asign a value to NODE_IP */}} - {{- if .Values.global.staticIP -}} - {{- .Values.global.staticIP -}} - {{- else if $externalIP -}} - {{- $externalIP -}} - {{- else -}} - {{- $internalIP -}} - {{- end -}} - {{- else if eq (.Values.global.accessMode | toString) "private" -}} - {{/*asign a value to NODE_IP */}} - {{- if .Values.global.staticIP -}} - {{- .Values.global.staticIP -}} - {{- else -}} - {{- .Values.gpcore.core.envMap.NODE_IP -}} - {{- end -}} - {{- end -}} -{{- else if eq (.Values.global.routingType | toString) "NodePortWithOutIngress" -}} - {{- if eq (.Values.global.accessMode | toString) "public" -}} - {{/* ExternalIP from node*/}} - {{- $externalIP := "" -}} - {{- $internalIP := "" -}} - {{- range $index, $node := (lookup "v1" "Node" "" "").items -}} - {{- range $address:= $node.status.addresses -}} - {{- if eq ($address.type | toString) "ExternalIP" -}} - {{- $externalIP = $address.address -}} - {{- else if eq ($address.type | toString) "InternalIP" -}} - {{- $internalIP = $address.address -}} - {{- end -}} - {{- end -}} - {{- end -}} - {{/*asign a value to NODE_IP */}} - {{- if .Values.global.staticIP -}} - {{- .Values.global.staticIP -}} - {{- else if $externalIP -}} - {{- $externalIP -}} - {{- else -}} - {{- $internalIP -}} - {{- end -}} - {{- else if eq (.Values.global.accessMode | toString) "private" -}} - {{/*asign a value to NODE_IP */}} - {{- if .Values.global.staticIP -}} - {{- .Values.global.staticIP -}} - {{- else -}} - {{- .Values.gpcore.core.envMap.NODE_IP -}} - {{- end -}} - {{- end -}} -{{- end -}} -{{- end -}} - - -{{/* -Node_PORT for gopaddle gpcore -*/}} -{{- define "gopaddle.gpcore.port" -}} -{{- if eq (.Values.global.routingType | toString) "LoadBalancer" -}} - {{- printf "5672" | quote -}} -{{- else if eq (.Values.global.routingType | toString) "NodePortWithIngress" -}} - {{- if eq (.Values.global.accessMode | toString) "public" -}} - {{- printf "30000" | quote -}} - {{- else if eq (.Values.global.accessMode | toString) "private" -}} - {{- if .Values.global.staticIP -}} - {{- printf "30000" | quote -}} - {{- else -}} - {{- .Values.gpcore.core.envMap.NODE_PORT | quote -}} - {{- end -}} - {{- end -}} -{{- else if eq (.Values.global.routingType | toString) "NodePortWithOutIngress" -}} - {{- if eq (.Values.global.accessMode | toString) "public" -}} - {{- printf "30000" | quote -}} - {{- else if eq (.Values.global.accessMode | toString) "private" -}} - {{- if .Values.global.staticIP -}} - {{- printf "30000" | quote -}} - {{- else -}} - {{- .Values.gpcore.core.envMap.NODE_PORT | quote -}} - {{- end -}} - {{- end -}} -{{- end -}} -{{- end -}} - - -{{/* finding storageClass */}} -{{- define "gopaddle.storageClass" -}} -{{- if .Values.global.storageClassName -}} - {{- .Values.global.storageClassName -}} -{{- else -}} - {{- $storageClass:= "" -}} - {{- range $index, $sc := (lookup "storage.k8s.io/v1" "StorageClass" "" "").items -}} - {{- if eq (get $sc.metadata.annotations "storageclass.kubernetes.io/is-default-class") "true" -}} - {{- $storageClass = $sc.metadata.name -}} - {{- end -}} - {{- end -}} - {{- $storageClass -}} -{{- end -}} -{{- end -}} - -{{/* -ServiceType for gopaddle -*/}} -{{- define "gopaddle.serviceType" -}} -{{- if eq (.Values.global.routingType | toString) "NodePortWithOutIngress" -}} - {{- "NodePort" -}} -{{- else -}} - {{- "ClusterIP" -}} -{{- end -}} -{{- end -}} - - -{{/* -routingType for gopaddle -*/}} -{{- define "gopaddle.routingType" -}} -{{- if eq (.Values.global.routingType | toString) "NodePortWithIngress" -}} - {{- "NodePort" -}} -{{- else if eq (.Values.global.routingType | toString) "LoadBalancer" -}} - {{- "LoadBalancer" -}} -{{- end -}} -{{- end -}} - - -{{/* finding airgapped mode or not */}} -{{- define "gopaddle.registryUrl" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s" $registryUrl $repoPath -}} -{{- else -}} - {{- printf "trov" -}} -{{- end -}} -{{- end -}} - -{{/* finding airgapped mode or not */}} -{{- define "gopaddle.googleContainer.registryUrl" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s" $registryUrl $repoPath -}} -{{- else -}} - {{- printf "gcr.io/google_containers" -}} -{{- end -}} -{{- end -}} - -{{/* finding airgapped mode or not */}} -{{- define "gopaddle.nginx.registryUrl" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s" $registryUrl $repoPath -}} -{{- else -}} - {{- printf "us.gcr.io/k8s-artifacts-prod" -}} -{{- end -}} -{{- end -}} - -{{/* preparing build image */}} -{{- define "gopaddle.gpcore.buildagent" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/buildagent-v1:agent-1.14" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - -{{/* preparing kaniko-default image */}} -{{- define "gopaddle.gpcore.kaniko-default" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/executor:v1.3.0 " $registryUrl $repoPath -}} -{{- else if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "local") -}} - {{- printf "gcr.io/kaniko-project/executor:v1.3.0" -}} -{{- end -}} -{{- end -}} - -{{/* preparing kaniko-amd64 image */}} -{{- define "gopaddle.gpcore.kaniko-amd64" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/executor:amd64-v1.3.0" $registryUrl $repoPath -}} -{{- else if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "local") -}} - {{- printf "gcr.io/kaniko-project/executor:amd64-v1.3.0" -}} -{{- end -}} -{{- end -}} - -{{/* preparing kaniko-arm64 image */}} -{{- define "gopaddle.gpcore.kaniko-arm64" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/executor:arm64-v1.3.0" $registryUrl $repoPath -}} -{{- else if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "local") -}} - {{- printf "gcr.io/kaniko-project/executor:arm64-v1.3.0" -}} -{{- end -}} -{{- end -}} - -{{/* preparing kaniko-multi-arch image */}} -{{- define "gopaddle.gpcore.kaniko-multi-arch" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/executor:multi-arch-v1.3.0" $registryUrl $repoPath -}} -{{- else if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "local") -}} - {{- printf "gcr.io/kaniko-project/executor:multi-arch-v1.3.0" -}} -{{- end -}} -{{- end -}} - -{{/* preparing crane image */}} -{{- define "gopaddle.gpcore.crane" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/crane:debug" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - -{{/* preparing trivy image */}} -{{- define "gopaddle.gpcore.trivy" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/trivy:0.18.3" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - - -{{/*clustermanger addons images*/}} - -{{/* preparing kube-state-metrics image*/}} -{{- define "gopaddle.clustermanger.kube-state-metrics" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/kube-state-metrics:v1.5.0" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - -{{/* preparing node-exporter image*/}} -{{- define "gopaddle.clustermanager.node-exporter" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/node-exporter:v1.5.0" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - - -{{/* preparing busybox image*/}} -{{- define "gopaddle.clustermanager.busybox" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/busybox:latest" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - -{{/* preparing prometheus image*/}} -{{- define "gopaddle.clustermanager.prometheus" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/prometheus:v2.5.0" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - -{{/* preparing configmap-reload image*/}} -{{- define "gopaddle.clustermanager.configmap-reload" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/configmap-reload:v0.8.0" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - - -{{/* preparing defaultbackend image*/}} -{{- define "gopaddle.clustermanager.defaultbackend" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/defaultbackend:1.4" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - -{{/* preparing grafana image*/}} -{{- define "gopaddle.clustermanager.grafana" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/grafana/grafana:8.5.22" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - -{{/* preparing event-exporter image*/}} -{{- define "gopaddle.clustermanager.event-exporter" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/event-exporter:v1.0.0" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - -{{/* preparing cert-manager-cainjector image*/}} -{{- define "gopaddle.clustermanager.cert-manager-cainjector" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/cert-manager-cainjector:v1.5.4" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - - -{{/* preparing cert-manager-controller image*/}} -{{- define "gopaddle.clustermanager.cert-manager-controller" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/cert-manager-controller:v1.5.4" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - - -{{/* preparing cert-manager-webhook image*/}} -{{- define "gopaddle.clustermanager.cert-manager-webhook" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/cert-manager-webhook:v1.5.4" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - - -{{/* preparing aws-alb-ingress-controller image*/}} -{{- define "gopaddle.clustermanager.aws-alb-ingress-controller" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/aws-alb-ingress-controller:v2.3.1" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - -{{/* preparing controllerwebhook image*/}} -{{- define "gopaddle.clustermanager.controllerwebhook" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.imageimageRegistryInfoRegistry.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/controllerwebhook:v0.1.1" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - - -{{/* preparing configurator-controller image*/}} -{{- define "gopaddle.clustermanager.configurator-controller" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/configurator-controller:v0.1.1 " $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - - - -{{/* preparing controllerinit image*/}} -{{- define "gopaddle.clustermanager.controllerinit" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/controllerinit:v0.1.1" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - -{{/* deploymentmanager addons images*/}} - -{{/* preparing nginx-ingress-controller image*/}} -{{- define "gopaddle.deploymentmanager.nginx-ingress-controller" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/nginx-ingress-controller:0.9.0-beta.15" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - -{{/* preparing controller image*/}} -{{- define "gopaddle.deploymentmanager.controller" -}} -{{- if and (.Values.global.airgapped.enabled) (eq (.Values.global.airgapped.imageRegistryType | toString ) "private") -}} - {{- $registryUrl := .Values.global.airgapped.imageRegistryInfo.registryUrl | trimPrefix "https://" | trimPrefix "http://" | trimSuffix "/" -}} - {{- $repoPath := .Values.global.airgapped.imageRegistryInfo.repoPath | trimPrefix "/" | trimSuffix "/" -}} - {{- printf "%s/%s/controller:v1.3.0" $registryUrl $repoPath -}} -{{- end -}} -{{- end -}} - diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-activitymanager-configmap-ak577.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-activitymanager-configmap-ak577.yaml deleted file mode 100644 index 387915e97..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-activitymanager-configmap-ak577.yaml +++ /dev/null @@ -1,18 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app: activitymanager-activitymanager-configmap-ak577 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: activitymanager-activitymanager-configmap-ak577 - released-by: gopaddle - servicegroup: activitymanager-muv5ktiw - name: activitymanager-activitymanager-configmap-ak577 - namespace: {{ .Release.Namespace }} -data: -{{ (.Files.Glob "files/activitymanager/activitymanager/profiles-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/activitymanager/activitymanager/log_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/activitymanager/activitymanager/log_app_force_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/activitymanager/activitymanager/internal_api.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/activitymanager/activitymanager/error_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/activitymanager/activitymanager/service_directory-kube.json").AsConfig | indent 2 }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-activitymanager-envsecret-wuhue.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-activitymanager-envsecret-wuhue.yaml deleted file mode 100644 index 12dab1a14..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-activitymanager-envsecret-wuhue.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - creationTimestamp: null - labels: - app: activitymanager-activitymanager-envsecret-wuhue - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: activitymanager-activitymanager-envsecret-wuhue - released-by: gopaddle - servicegroup: activitymanager-muv5ktiw - name: activitymanager-activitymanager-envsecret-wuhue - namespace: {{ .Release.Namespace }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-clusterip.yaml deleted file mode 100644 index 8b5dd88c0..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-clusterip.yaml +++ /dev/null @@ -1,28 +0,0 @@ -{{ $type := include "gopaddle.serviceType" . }} -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: activitymanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: activitymanager - released-by: gopaddle - servicegroup: activitymanager-muv5ktiw - name: activitymanager - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 8009-tcp - port: 8009 -{{- if eq ($type | toString ) "NodePort" }} - nodePort: 30006 -{{- end }} - protocol: TCP - targetPort: 8009 - selector: - family: servicegroup - servicegroup: activitymanager-muv5ktiw - type: {{ template "gopaddle.serviceType" . }} -status: - loadBalancer: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-deployment.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-deployment.yaml deleted file mode 100644 index a2cd81748..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-deployment.yaml +++ /dev/null @@ -1,135 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: activitymanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: activitymanager - released-by: gopaddle - servicegroup: activitymanager-muv5ktiw - servicegroup-name: activitymanager - name: activitymanager - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 5 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: activitymanager - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - creationTimestamp: null - labels: - app: activitymanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: activitymanager - released-by: gopaddle - servicegroup: activitymanager-muv5ktiw - servicetype: gopaddle - name: activitymanager - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - args: - - |- - #!/bin/bash - apk add --no-cache openrc busybox-initscripts - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > activitymanager.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - # echo "----------- start conatainer ------------" - ./activitymanager kube > /var/log/gopaddle/activitymanager.log - tail -f /var/log/gopaddle/activitymanager.log - command: - - /bin/sh - - -c - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: {{ quote .Values.activitymanager.activitymanager.envMap.NODE_NAME }} - - name: GP_RELEASE - value: gp-4.2 - envFrom: - - secretRef: - name: activitymanager-activitymanager-envsecret-wuhue -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/activitymanager:{{ .Values.activitymanager.activitymanager.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/activitymanager:{{ .Values.activitymanager.activitymanager.imageTag }} -{{- end }} - livenessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8009 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - name: activitymanager - ports: - - containerPort: 8009 - name: 8009-tcp - protocol: TCP - readinessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8009 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - resources: - limits: - cpu: 100m - memory: 100M - requests: - cpu: 10m - memory: 50M - securityContext: {} - volumeMounts: - - mountPath: /app/config - name: activitymanager-activitymanager-cmnt-8u0d1 - - mountPath: /var/log/gopaddle/ - name: log - imagePullSecrets: -{{- if .Values.global.airgapped.enabled }} - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- else }} - - name: gcr-json-key -{{- end }} - securityContext: {} - volumes: - - configMap: - defaultMode: 420 - name: activitymanager-activitymanager-configmap-ak577 - name: activitymanager-activitymanager-cmnt-8u0d1 - - emptyDir: {} - name: log -status: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-hpa-65p5w.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-hpa-65p5w.yaml deleted file mode 100644 index cb2ce4eef..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-hpa-65p5w.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - creationTimestamp: null - labels: - app: activitymanager-hpa-65p5w - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: activitymanager-hpa-65p5w - released-by: gopaddle - servicegroup: activitymanager-muv5ktiw - name: activitymanager-hpa-65p5w - namespace: {{ .Release.Namespace }} -spec: - maxReplicas: 1 - minReplicas: 1 - scaleTargetRef: - kind: Deployment - name: activitymanager - targetCPUUtilizationPercentage: 70 -status: - currentReplicas: 0 - desiredReplicas: 0 diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-netsec-xexdb.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-netsec-xexdb.yaml deleted file mode 100644 index b14d75305..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/activitymanager-netsec-xexdb.yaml +++ /dev/null @@ -1,125 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - creationTimestamp: null - labels: - app: activitymanager-netsec-xexdb - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: activitymanager-netsec-xexdb - released-by: gopaddle - servicegroup: activitymanager-muv5ktiw - name: activitymanager-netsec-xexdb - namespace: {{ .Release.Namespace }} -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8012 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8009 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8004 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8007 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8759 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8001 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8013 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8010 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8003 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8005 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8006 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8017 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8021 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8011 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8020 - protocol: TCP - podSelector: - matchLabels: - family: "" - servicegroup: activitymanager-muv5ktiw - policyTypes: - - Ingress diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-alertmanager-configmap-wkaqd.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-alertmanager-configmap-wkaqd.yaml deleted file mode 100644 index 56138b919..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-alertmanager-configmap-wkaqd.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app: alertmanager-alertmanager-configmap-wkaqd - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: alertmanager-alertmanager-configmap-wkaqd - released-by: gopaddle - servicegroup: alertmanager-697i4d88 - name: alertmanager-alertmanager-configmap-wkaqd - namespace: {{ .Release.Namespace }} -data: -{{ (.Files.Glob "files/alertmanager/alertmanager/service_directory-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/alertmanager/alertmanager/internal_api.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/alertmanager/alertmanager/error_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/alertmanager/alertmanager/profiles-kube.json").AsConfig | indent 2 }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-alertmanager-envsecret-04tog.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-alertmanager-envsecret-04tog.yaml deleted file mode 100644 index 877e41f1f..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-alertmanager-envsecret-04tog.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - creationTimestamp: null - labels: - app: alertmanager-alertmanager-envsecret-04tog - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: alertmanager-alertmanager-envsecret-04tog - released-by: gopaddle - servicegroup: alertmanager-697i4d88 - name: alertmanager-alertmanager-envsecret-04tog - namespace: {{ .Release.Namespace }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-clusterip.yaml deleted file mode 100644 index 827a623a4..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-clusterip.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: alertmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: alertmanager - released-by: gopaddle - servicegroup: alertmanager-697i4d88 - name: alertmanager - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 8012-tcp - port: 8012 - protocol: TCP - targetPort: 8012 - selector: - family: servicegroup - servicegroup: alertmanager-697i4d88 - type: ClusterIP -status: - loadBalancer: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-deployment.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-deployment.yaml deleted file mode 100644 index db902ea7a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-deployment.yaml +++ /dev/null @@ -1,136 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: alertmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: alertmanager - released-by: gopaddle - servicegroup: alertmanager-697i4d88 - servicegroup-name: alertmanager - name: alertmanager - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 5 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: alertmanager - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - creationTimestamp: null - labels: - app: alertmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: alertmanager - released-by: gopaddle - servicegroup: alertmanager-697i4d88 - servicetype: gopaddle - name: alertmanager - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - args: - - |- - #!/bin/bash - apk add --no-cache openrc busybox-initscripts - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > alertmanager.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - ./alertmanager kube > /var/log/gopaddle/alertmanager.log - tail -f /var/log/gopaddle/alertmanager.log - command: - - /bin/sh - - -c - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: {{ quote .Values.alertmanager.alertmanager.envMap.NODE_NAME }} - - name: NODE_IP - value: {{ template "gopaddle.nodeIP" . }} - - name: GP_RELEASE - value: gp-4.2 - envFrom: - - secretRef: - name: alertmanager-alertmanager-envsecret-04tog -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/alertmanager:{{ .Values.alertmanager.alertmanager.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/alertmanager:{{ .Values.alertmanager.alertmanager.imageTag }} -{{- end }} - livenessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8012 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - name: alertmanager - ports: - - containerPort: 8012 - name: 8012-tcp - protocol: TCP - readinessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8012 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - resources: - limits: - cpu: 100m - memory: 100M - requests: - cpu: 10m - memory: 50M - securityContext: {} - volumeMounts: - - mountPath: /app/config - name: alertmanager-alertmanager-cmnt-qovc4 - - mountPath: /var/log/gopaddle/ - name: log - imagePullSecrets: -{{- if .Values.global.airgapped.enabled }} - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- else }} - - name: gcr-json-key -{{- end }} - securityContext: {} - volumes: - - configMap: - defaultMode: 420 - name: alertmanager-alertmanager-configmap-wkaqd - name: alertmanager-alertmanager-cmnt-qovc4 - - emptyDir: {} - name: log -status: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-hpa-rzbbi.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-hpa-rzbbi.yaml deleted file mode 100644 index e74be95ed..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-hpa-rzbbi.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - creationTimestamp: null - labels: - app: alertmanager-hpa-rzbbi - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: alertmanager-hpa-rzbbi - released-by: gopaddle - servicegroup: alertmanager-697i4d88 - name: alertmanager-hpa-rzbbi - namespace: {{ .Release.Namespace }} -spec: - maxReplicas: 1 - minReplicas: 1 - scaleTargetRef: - kind: Deployment - name: alertmanager - targetCPUUtilizationPercentage: 70 -status: - currentReplicas: 0 - desiredReplicas: 0 diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-netsec-02z3v.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-netsec-02z3v.yaml deleted file mode 100644 index b4914d7bc..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/alertmanager-netsec-02z3v.yaml +++ /dev/null @@ -1,125 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - creationTimestamp: null - labels: - app: alertmanager-netsec-02z3v - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: alertmanager-netsec-02z3v - released-by: gopaddle - servicegroup: alertmanager-697i4d88 - name: alertmanager-netsec-02z3v - namespace: {{ .Release.Namespace }} -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8012 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8009 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8004 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8007 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8759 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8001 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8013 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8010 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8003 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8005 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8006 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8017 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8021 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8011 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8020 - protocol: TCP - podSelector: - matchLabels: - family: "" - servicegroup: alertmanager-697i4d88 - policyTypes: - - Ingress diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-appscanner-configmap-07ocv.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-appscanner-configmap-07ocv.yaml deleted file mode 100644 index b80c1c745..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-appscanner-configmap-07ocv.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app: appscanner-appscanner-configmap-07ocv - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: appscanner-appscanner-configmap-07ocv - released-by: gopaddle - servicegroup: appscanner-ugtwwlv3 - name: appscanner-appscanner-configmap-07ocv - namespace: {{ .Release.Namespace }} -data: -{{ (.Files.Glob "files/appscanner/appscanner/internal_api.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/appscanner/appscanner/profiles-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/appscanner/appscanner/service_directory-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/appscanner/appscanner/error_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/appscanner/appscanner/versionMatrix.json").AsConfig | indent 2 }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-appscanner-envsecret-06oce.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-appscanner-envsecret-06oce.yaml deleted file mode 100644 index ce5b16506..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-appscanner-envsecret-06oce.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - creationTimestamp: null - labels: - app: appscanner-appscanner-envsecret-06oce - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: appscanner-appscanner-envsecret-06oce - released-by: gopaddle - servicegroup: appscanner-ugtwwlv3 - name: appscanner-appscanner-envsecret-06oce - namespace: {{ .Release.Namespace }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-clusterip.yaml deleted file mode 100644 index 40d683b85..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-clusterip.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: appscanner - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: appscanner - released-by: gopaddle - servicegroup: appscanner-ugtwwlv3 - name: appscanner - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 8022-tcp - port: 8022 - protocol: TCP - targetPort: 8022 - selector: - family: servicegroup - servicegroup: appscanner-ugtwwlv3 - type: ClusterIP -status: - loadBalancer: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-deployment.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-deployment.yaml deleted file mode 100644 index b64ce31b1..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-deployment.yaml +++ /dev/null @@ -1,135 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: appscanner - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: appscanner - released-by: gopaddle - servicegroup: appscanner-ugtwwlv3 - servicegroup-name: appscanner - name: appscanner - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 5 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: appscanner - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - creationTimestamp: null - labels: - app: appscanner - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: appscanner - released-by: gopaddle - servicegroup: appscanner-ugtwwlv3 - servicetype: gopaddle - name: appscanner - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - args: - - | - #!/bin/bash - apk add busybox-openrc - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > appscanner.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - # echo "----------- start conatainer ------------" - ./appscanner kube > /var/log/gopaddle/appscanner.log - tail -f /var/log/gopaddle/appscanner.log - command: - - /bin/sh - - -c - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: {{ quote .Values.appscanner.appscanner.envMap.NODE_NAME }} - - name: GP_RELEASE - value: gp-4.2 - envFrom: - - secretRef: - name: appscanner-appscanner-envsecret-06oce -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/appscanner:{{ .Values.appscanner.appscanner.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/appscanner:{{ .Values.appscanner.appscanner.imageTag }} -{{- end }} - livenessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8022 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - name: appscanner - ports: - - containerPort: 8022 - name: 8022-tcp - protocol: TCP - readinessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8022 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - resources: - limits: - cpu: 300m - memory: 400M - requests: - cpu: 10m - memory: 50M - securityContext: {} - volumeMounts: - - mountPath: /app/config - name: appscanner-appscanner-cmnt-xvm8c - - mountPath: /var/log/gopaddle/ - name: log - imagePullSecrets: -{{- if .Values.global.airgapped.enabled }} - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- else }} - - name: gcr-json-key -{{- end }} - securityContext: {} - volumes: - - configMap: - defaultMode: 420 - name: appscanner-appscanner-configmap-07ocv - name: appscanner-appscanner-cmnt-xvm8c - - emptyDir: {} - name: log -status: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-hpa-06lb8.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-hpa-06lb8.yaml deleted file mode 100644 index 4f8620aaa..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-hpa-06lb8.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - creationTimestamp: null - labels: - app: appscanner-hpa-06lb8 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: appscanner-hpa-06lb8 - released-by: gopaddle - servicegroup: appscanner-ugtwwlv3 - name: appscanner-hpa-06lb8 - namespace: {{ .Release.Namespace }} -spec: - maxReplicas: 1 - minReplicas: 1 - scaleTargetRef: - kind: Deployment - name: appscanner - targetCPUUtilizationPercentage: 70 -status: - currentReplicas: 0 - desiredReplicas: 0 diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-netsec-acw76.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-netsec-acw76.yaml deleted file mode 100644 index 88b178711..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/appscanner-netsec-acw76.yaml +++ /dev/null @@ -1,125 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - creationTimestamp: null - labels: - app: appscanner-netsec-acw76 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: appscanner-netsec-acw76 - released-by: gopaddle - servicegroup: appscanner-ugtwwlv3 - name: appscanner-netsec-acw76 - namespace: {{ .Release.Namespace }} -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8012 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8009 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8004 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8007 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8759 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8001 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8013 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8010 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8003 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8005 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8006 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8017 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8021 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8011 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8020 - protocol: TCP - podSelector: - matchLabels: - family: "" - servicegroup: appscanner-ugtwwlv3 - policyTypes: - - Ingress diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-appworker-configmap-njdt6.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-appworker-configmap-njdt6.yaml deleted file mode 100644 index 0ada0a16a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-appworker-configmap-njdt6.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app: appworker-appworker-configmap-njdt6 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: appworker-appworker-configmap-njdt6 - released-by: gopaddle - servicegroup: appworker-6iwtvs3g - name: appworker-appworker-configmap-njdt6 - namespace: {{ .Release.Namespace }} -data: -{{ (.Files.Glob "files/appworker/appworker/internal_api.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/appworker/appworker/profiles-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/appworker/appworker/service_directory-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/appworker/appworker/versionMatrix.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/appworker/appworker/validation.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/appworker/appworker/error_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/appworker/appworker/Chart.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/appworker/appworker/clusterrole.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/appworker/appworker/helper.tpl").AsConfig | indent 2 }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-appworker-envsecret-ycm42.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-appworker-envsecret-ycm42.yaml deleted file mode 100644 index 5cb7891b3..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-appworker-envsecret-ycm42.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - creationTimestamp: null - labels: - app: appworker-appworker-envsecret-ycm42 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: appworker-appworker-envsecret-ycm42 - released-by: gopaddle - servicegroup: appworker-6iwtvs3g - name: appworker-appworker-envsecret-ycm42 - namespace: {{ .Release.Namespace }} -stringData: - rabbitmq_passwd: ECabAv1Thdn8fANd diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-clusterip.yaml deleted file mode 100644 index 18f6be97a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-clusterip.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: appworker - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: appworker - released-by: gopaddle - servicegroup: appworker-6iwtvs3g - name: appworker - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 8010-tcp - port: 8010 - protocol: TCP - targetPort: 8010 - selector: - family: servicegroup - servicegroup: appworker-6iwtvs3g - type: ClusterIP -status: - loadBalancer: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-deployment.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-deployment.yaml deleted file mode 100644 index 72b574346..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-deployment.yaml +++ /dev/null @@ -1,146 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: appworker - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: appworker - released-by: gopaddle - servicegroup: appworker-6iwtvs3g - servicegroup-name: appworker - name: appworker - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 5 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: appworker - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - creationTimestamp: null - labels: - app: appworker - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: appworker - released-by: gopaddle - servicegroup: appworker-6iwtvs3g - servicetype: gopaddle - name: appworker - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - {{ template "cluster.provider.appworker" . }} - command: - - /bin/sh - - -c - env: - - name: rabbitmq_user - value: {{ quote .Values.appworker.appworker.envMap.rabbitmq_user }} - - name: NODE_IP - value: {{ template "gopaddle.nodeIP" . }} - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: {{ quote .Values.appworker.appworker.envMap.NODE_NAME }} -{{- if .Values.global.airgapped.enabled }} - - name: AIR_GAPPED - value: {{ quote .Values.global.airgapped.enabled }} - - name: IMAGE_REGISTRY - value: {{ quote .Values.global.airgapped.imageRegistryType }} - - name: DOCKER_REGISTRY_URL - value: {{ .Values.global.airgapped.imageRegistryInfo.registryUrl }} - {{- if eq ( .Values.global.airgapped.imageRegistryType | toString) "private" }} - - name: INGRESS_IMAGE_BELOW_V22 - value: {{ template "gopaddle.deploymentmanager.nginx-ingress-controller" . }} - - name: INGRESS_IMAGE_ABOVE_V22 - value: {{ template "gopaddle.deploymentmanager.controller" . }} - {{- if eq (.Values.global.airgapped.imageRegistryInfo.authType | toString) "dockerconfig" }} - - name: DOCKER_CONFIG_JSON_B64 - value: {{ .Values.global.airgapped.imageRegistryInfo.dockerConfig }} - - name: AUTHTYPE - value: {{ .Values.global.airgapped.imageRegistryInfo.authType }} - {{- else if eq (.Values.global.airgapped.imageRegistryInfo.authType | toString) "basic" }} - - name: DOCKER_REGISTRY_USERNAME - value: {{ .Values.global.airgapped.imageRegistryInfo.basicAuth.registryUserName }} - - name: DOCKER_REGISTRY_PASSWORD - value: {{ .Values.global.airgapped.imageRegistryInfo.basicAuth.registryPassword }} - - name: AUTHTYPE - value: {{ .Values.global.airgapped.imageRegistryInfo.authType }} - {{- end}} - {{- end }} -{{- end }} - - name: GP_RELEASE - value: gp-4.2 - envFrom: - - secretRef: - name: appworker-appworker-envsecret-ycm42 -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/appworker:{{ .Values.appworker.appworker.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/appworker:{{ .Values.appworker.appworker.imageTag }} -{{- end }} - livenessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8010 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - name: appworker - ports: - - containerPort: 8010 - name: 8010-tcp - protocol: TCP - readinessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8010 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - resources: - limits: - cpu: 300m - memory: 400M - requests: - cpu: 10m - memory: 50M - securityContext: {} - volumeMounts: - - mountPath: /app/config - name: appworker-appworker-cmnt-nt2cg - - mountPath: /var/log/gopaddle/ - name: log - imagePullSecrets: -{{- if .Values.global.airgapped.enabled }} - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- else }} - - name: gcr-json-key -{{- end }} - securityContext: {} - volumes: - - configMap: - defaultMode: 420 - name: appworker-appworker-configmap-njdt6 - name: appworker-appworker-cmnt-nt2cg - - emptyDir: {} - name: log -status: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-hpa-tqc3q.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-hpa-tqc3q.yaml deleted file mode 100644 index 15d2f0b43..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-hpa-tqc3q.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - creationTimestamp: null - labels: - app: appworker-hpa-tqc3q - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: appworker-hpa-tqc3q - released-by: gopaddle - servicegroup: appworker-6iwtvs3g - name: appworker-hpa-tqc3q - namespace: {{ .Release.Namespace }} -spec: - maxReplicas: 1 - minReplicas: 1 - scaleTargetRef: - kind: Deployment - name: appworker - targetCPUUtilizationPercentage: 70 -status: - currentReplicas: 0 - desiredReplicas: 0 diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-netsec-fyhpv.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-netsec-fyhpv.yaml deleted file mode 100644 index 4353da6f5..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/appworker-netsec-fyhpv.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - creationTimestamp: null - labels: - app: appworker-netsec-fyhpv - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: appworker-netsec-fyhpv - released-by: gopaddle - servicegroup: appworker-6iwtvs3g - name: appworker-netsec-fyhpv - namespace: {{ .Release.Namespace }} -spec: - ingress: - - from: - - podSelector: - matchLabels: - family: servicegroup - servicegroup-name: deploymentmanager - ports: - - port: 8010 - protocol: TCP - podSelector: - matchLabels: - family: "" - servicegroup: appworker-6iwtvs3g - policyTypes: - - Ingress diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-cloudmanager-configmap-o3c6s.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-cloudmanager-configmap-o3c6s.yaml deleted file mode 100644 index 8485d35f3..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-cloudmanager-configmap-o3c6s.yaml +++ /dev/null @@ -1,16 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app: cloudmanager-cloudmanager-configmap-o3c6s - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: cloudmanager-cloudmanager-configmap-o3c6s - released-by: gopaddle - servicegroup: cloudmanager-7kd52da1 - name: cloudmanager-cloudmanager-configmap-o3c6s - namespace: {{ .Release.Namespace }} -data: -{{ (.Files.Glob "files/cloudmanager/cloudmanager/service_directory-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/cloudmanager/cloudmanager/internal_api.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/cloudmanager/cloudmanager/error_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/cloudmanager/cloudmanager/profiles-kube.json").AsConfig | indent 2 }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-cloudmanager-envsecret-onluv.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-cloudmanager-envsecret-onluv.yaml deleted file mode 100644 index 4b90cdeea..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-cloudmanager-envsecret-onluv.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - creationTimestamp: null - labels: - app: cloudmanager-cloudmanager-envsecret-onluv - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: cloudmanager-cloudmanager-envsecret-onluv - released-by: gopaddle - servicegroup: cloudmanager-7kd52da1 - name: cloudmanager-cloudmanager-envsecret-onluv - namespace: {{ .Release.Namespace }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-clusterip.yaml deleted file mode 100644 index 4a246519f..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-clusterip.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: cloudmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: cloudmanager - released-by: gopaddle - servicegroup: cloudmanager-7kd52da1 - name: cloudmanager - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 8018-tcp - port: 8018 - protocol: TCP - targetPort: 8018 - selector: - family: servicegroup - servicegroup: cloudmanager-7kd52da1 - type: ClusterIP -status: - loadBalancer: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-deployment.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-deployment.yaml deleted file mode 100644 index fee4c739e..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-deployment.yaml +++ /dev/null @@ -1,134 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: cloudmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: cloudmanager - released-by: gopaddle - servicegroup: cloudmanager-7kd52da1 - servicegroup-name: cloudmanager - name: cloudmanager - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 5 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: cloudmanager - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - creationTimestamp: null - labels: - app: cloudmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: cloudmanager - released-by: gopaddle - servicegroup: cloudmanager-7kd52da1 - servicetype: gopaddle - name: cloudmanager - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - args: - - |- - #!/bin/bash - apk add --no-cache openrc busybox-initscripts - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > cloudmanager.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - ./cloudmanager kube > /var/log/gopaddle/cloudmanager.log - tail -f /var/log/gopaddle/cloudmanager.log - command: - - /bin/sh - - -c - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: {{ quote .Values.cloudmanager.cloudmanager.envMap.NODE_NAME }} - - name: GP_RELEASE - value: gp-4.2 - envFrom: - - secretRef: - name: cloudmanager-cloudmanager-envsecret-onluv -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/cloudmanager:{{ .Values.cloudmanager.cloudmanager.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/cloudmanager:{{ .Values.cloudmanager.cloudmanager.imageTag }} -{{- end }} - livenessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8018 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - name: cloudmanager - ports: - - containerPort: 8018 - name: 8018-tcp - protocol: TCP - readinessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8018 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - resources: - limits: - cpu: 100m - memory: 100M - requests: - cpu: 10m - memory: 50M - securityContext: {} - volumeMounts: - - mountPath: /app/config - name: cloudmanager-cloudmanager-cmnt-15hlp - - mountPath: /var/log/gopaddle/ - name: log - imagePullSecrets: -{{- if .Values.global.airgapped.enabled }} - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- else }} - - name: gcr-json-key -{{- end }} - securityContext: {} - volumes: - - configMap: - defaultMode: 420 - name: cloudmanager-cloudmanager-configmap-o3c6s - name: cloudmanager-cloudmanager-cmnt-15hlp - - emptyDir: {} - name: log -status: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-hpa-05b74.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-hpa-05b74.yaml deleted file mode 100644 index a996be697..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-hpa-05b74.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - creationTimestamp: null - labels: - app: cloudmanager-hpa-05b74 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: cloudmanager-hpa-05b74 - released-by: gopaddle - servicegroup: cloudmanager-7kd52da1 - name: cloudmanager-hpa-05b74 - namespace: {{ .Release.Namespace }} -spec: - maxReplicas: 1 - minReplicas: 1 - scaleTargetRef: - kind: Deployment - name: cloudmanager - targetCPUUtilizationPercentage: 70 -status: - currentReplicas: 0 - desiredReplicas: 0 diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-netsec-1if91.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-netsec-1if91.yaml deleted file mode 100644 index 0a642161c..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/cloudmanager-netsec-1if91.yaml +++ /dev/null @@ -1,125 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - creationTimestamp: null - labels: - app: cloudmanager-netsec-1if91 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: cloudmanager-netsec-1if91 - released-by: gopaddle - servicegroup: cloudmanager-7kd52da1 - name: cloudmanager-netsec-1if91 - namespace: {{ .Release.Namespace }} -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8012 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8009 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8004 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8007 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8759 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8001 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8013 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8010 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8003 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8005 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8006 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8017 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8021 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8011 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8020 - protocol: TCP - podSelector: - matchLabels: - family: "" - servicegroup: cloudmanager-7kd52da1 - policyTypes: - - Ingress diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-clusterip.yaml deleted file mode 100644 index 58e94a45d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-clusterip.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: clustermanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: clustermanager - released-by: gopaddle - servicegroup: clustermanager-lee5js63 - name: clustermanager - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 8013-tcp - port: 8013 - protocol: TCP - targetPort: 8013 - selector: - family: servicegroup - servicegroup: clustermanager-lee5js63 - type: ClusterIP -status: - loadBalancer: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-clustermanager-configmap-vadks.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-clustermanager-configmap-vadks.yaml deleted file mode 100644 index bcca90760..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-clustermanager-configmap-vadks.yaml +++ /dev/null @@ -1,33 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app: clustermanager-clustermanager-configmap-vadks - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: clustermanager-clustermanager-configmap-vadks - released-by: gopaddle - servicegroup: clustermanager-lee5js63 - name: clustermanager-clustermanager-configmap-vadks - namespace: {{ .Release.Namespace }} -data: -{{ (.Files.Glob "files/clustermanager/clustermanager/clusterrole.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/versionMatrix.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/storidgenodegroup3.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/nodegrouprole.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/service_directory-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/storidgenodegroup2.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/nodegroup.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/gke-kubeconfig.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/amazon-eks-nodegroup-gp.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/profiles-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/kubeconfig.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/internal_api.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/amazon-eks-vpc-gp.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/error_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/albcontrollercft.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/amazon-eks-vpc-private-public.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/amazon-eks-fully-private-vpc.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/bastion-cft.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/bastion-kubeconfig.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustermanager/clustermanager/ssm_document.json").AsConfig | indent 2 }} - diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-clustermanager-envsecret-ipy9y.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-clustermanager-envsecret-ipy9y.yaml deleted file mode 100644 index 931d8bb6e..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-clustermanager-envsecret-ipy9y.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - creationTimestamp: null - labels: - app: clustermanager-clustermanager-envsecret-ipy9y - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: clustermanager-clustermanager-envsecret-ipy9y - released-by: gopaddle - servicegroup: clustermanager-lee5js63 - name: clustermanager-clustermanager-envsecret-ipy9y - namespace: {{ .Release.Namespace }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-deployment.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-deployment.yaml deleted file mode 100644 index 086662eef..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-deployment.yaml +++ /dev/null @@ -1,177 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: clustermanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: clustermanager - released-by: gopaddle - servicegroup: clustermanager-lee5js63 - servicegroup-name: clustermanager - name: clustermanager - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 5 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: clustermanager - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - creationTimestamp: null - labels: - app: clustermanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: clustermanager - released-by: gopaddle - servicegroup: clustermanager-lee5js63 - servicetype: gopaddle - name: clustermanager - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - {{ template "cluster.provider.clustermanager" . }} - command: - - /bin/sh - - -c - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: {{ quote .Values.clustermanager.clustermanager.envMap.NODE_NAME }} - - name: NODE_IP - value: {{ template "gopaddle.nodeIP" . }} - - name: GP_RELEASE - value: gp-4.2 -{{- if .Values.global.airgapped.enabled }} - - name: AIR_GAPPED - value: {{ quote .Values.global.airgapped.enabled }} - - name: IMAGE_REGISTRY - value: {{ quote .Values.global.airgapped.imageRegistryType }} - - name: DOCKER_REGISTRY_URL - value: {{ .Values.global.airgapped.imageRegistryInfo.registryUrl }} - {{- if eq ( .Values.global.airgapped.imageRegistryType | toString) "private" }} - - name: KUBE_STATE_METRICS_IMAGE - value: {{ template "gopaddle.clustermanger.kube-state-metrics" . }} - - name: NODE_EXPORTER_PROMETHEUS_IMAGE - value: {{ template "gopaddle.clustermanager.node-exporter" . }} - - name: BUSYBOX_IMAGE - value: {{ template "gopaddle.clustermanager.busybox" . }} - - name: PROMETHEUS_IMAGE - value: {{ template "gopaddle.clustermanager.prometheus" . }} - - name: SERVER_DEPLOYMENT_IMAGE - value: {{ template "gopaddle.clustermanager.configmap-reload" . }} - - name: DEFAULT_BACKEND_IMAGE - value: {{ template "gopaddle.clustermanager.defaultbackend" . }} - - name: GRAFANA_IMAGE - value: {{ template "gopaddle.clustermanager.grafana" . }} - - name: EVENT_EXPORTER_IMAGE - value: {{ template "gopaddle.clustermanager.event-exporter" . }} - - name: CERTMANAGER_CAINJECTOR_DEPLOYMENT_IMAGE - value: {{ template "gopaddle.clustermanager.cert-manager-cainjector" . }} - - name: CERTMANAGER_DEPLOYMENT_IMAGE - value: {{ template "gopaddle.clustermanager.cert-manager-controller" . }} - - name: CERTMANAGER_WEBHOOK_DEPLOYMENT_IMAGE - value: {{ template "gopaddle.clustermanager.cert-manager-webhook" . }} - - name: AWS_ALB_INGRESS_CONTROLLER_IMAGE - value: {{ template "gopaddle.clustermanager.aws-alb-ingress-controller" . }} - - name: CONFIGURATOR_ADMISSIONWEBHOOK_IMAGE - value: {{ template "gopaddle.clustermanager.controllerwebhook" . }} - - name: CONFIGURATOR_CONTROLLER_IMAGE - value: {{ template "gopaddle.clustermanager.configurator-controller" . }} - - name: CONFIGURATOR_CONTROLLER_INIT_IMAGE - value: {{ template "gopaddle.clustermanager.controllerinit" . }} - {{- if eq (.Values.global.airgapped.imageRegistryInfo.authType | toString) "dockerconfig" }} - - name: DOCKER_CONFIG_JSON_B64 - value: {{ .Values.global.airgapped.imageRegistryInfo.dockerConfig }} - - name: AUTHTYPE - value: {{ .Values.global.airgapped.imageRegistryInfo.authType }} - {{- else if eq (.Values.global.airgapped.imageRegistryInfo.authType | toString) "basic" }} - - name: DOCKER_REGISTRY_USERNAME - value: {{ .Values.global.airgapped.imageRegistryInfo.basicAuth.registryUserName }} - - name: DOCKER_REGISTRY_PASSWORD - value: {{ .Values.global.airgapped.imageRegistryInfo.basicAuth.registryPassword }} - - name: AUTHTYPE - value: {{ .Values.global.airgapped.imageRegistryInfo.authType }} - {{- end}} - {{- end }} -{{- else }} - - name: DEFAULT_BACKEND_IMAGE - {{- if eq (.Values.global.installer.arch | toString) "arm64" }} - value: {{ template "gopaddle.googleContainer.registryUrl" . }}/{{ .Values.defaultbackend.defaultbackend.imageArm }}:{{ .Values.defaultbackend.defaultbackend.imageTag }} - {{- else }} - value: {{ template "gopaddle.googleContainer.registryUrl" . }}/{{ .Values.defaultbackend.defaultbackend.image }}:{{ .Values.defaultbackend.defaultbackend.imageTag }} - {{- end }} -{{- end }} - envFrom: - - secretRef: - name: clustermanager-clustermanager-envsecret-ipy9y -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/clustermanager:{{ .Values.clustermanager.clustermanager.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/clustermanager:{{ .Values.clustermanager.clustermanager.imageTag }} -{{- end }} - livenessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8013 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - name: clustermanager - ports: - - containerPort: 8013 - name: 8013-tcp - protocol: TCP - readinessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8013 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - resources: - limits: - cpu: 500m - memory: 200M - requests: - cpu: 50m - memory: 50M - securityContext: {} - volumeMounts: - - mountPath: /app/config - name: clustermanager-clustermanager-cmnt-ef4ac - - mountPath: /var/log/gopaddle/ - name: log - imagePullSecrets: -{{- if .Values.global.airgapped.enabled }} - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- else }} - - name: gcr-json-key -{{- end }} - securityContext: {} - volumes: - - configMap: - defaultMode: 272 - name: clustermanager-clustermanager-configmap-vadks - name: clustermanager-clustermanager-cmnt-ef4ac - - emptyDir: {} - name: log -status: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-hpa-pyywg.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-hpa-pyywg.yaml deleted file mode 100644 index 6e0ab89d4..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-hpa-pyywg.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - creationTimestamp: null - labels: - app: clustermanager-hpa-pyywg - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: clustermanager-hpa-pyywg - released-by: gopaddle - servicegroup: clustermanager-lee5js63 - name: clustermanager-hpa-pyywg - namespace: {{ .Release.Namespace }} -spec: - maxReplicas: 1 - minReplicas: 1 - scaleTargetRef: - kind: Deployment - name: clustermanager - targetCPUUtilizationPercentage: 70 -status: - currentReplicas: 0 - desiredReplicas: 0 diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-netsec-nrulb.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-netsec-nrulb.yaml deleted file mode 100644 index 6beb64d15..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustermanager-netsec-nrulb.yaml +++ /dev/null @@ -1,125 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - creationTimestamp: null - labels: - app: clustermanager-netsec-nrulb - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: clustermanager-netsec-nrulb - released-by: gopaddle - servicegroup: clustermanager-lee5js63 - name: clustermanager-netsec-nrulb - namespace: {{ .Release.Namespace }} -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8012 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8009 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8004 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8007 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8759 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8001 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8013 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8010 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8003 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8005 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8006 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8017 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8021 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8011 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8020 - protocol: TCP - podSelector: - matchLabels: - family: "" - servicegroup: clustermanager-lee5js63 - policyTypes: - - Ingress diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanag-clustertemplatemanag-configmap-ucc36.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanag-clustertemplatemanag-configmap-ucc36.yaml deleted file mode 100644 index 4add6a618..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanag-clustertemplatemanag-configmap-ucc36.yaml +++ /dev/null @@ -1,18 +0,0 @@ -{{- if eq (.Values.global.installer.edition | toString) "Enterprise" }} -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app: clustertemplatemanag-clustertemplatemanag-configmap-ucc36 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: clustertemplatemanag-clustertemplatemanag-configmap-ucc36 - released-by: gopaddle - servicegroup: clustertemplatemanager-il2p24vj - name: clustertemplatemanag-clustertemplatemanag-configmap-ucc36 - namespace: {{ .Release.Namespace }} -data: -{{ (.Files.Glob "files/clustertemplatemanager/clustertemplatemanager/internal_api.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustertemplatemanager/clustertemplatemanager/error_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustertemplatemanager/clustertemplatemanager/profiles-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/clustertemplatemanager/clustertemplatemanager/service_directory-kube.json").AsConfig | indent 2 }} -{{- end }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanag-clustertemplatemanag-envsecret-g2i9t.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanag-clustertemplatemanag-envsecret-g2i9t.yaml deleted file mode 100644 index 8b63a2b99..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanag-clustertemplatemanag-envsecret-g2i9t.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{{- if eq (.Values.global.installer.edition | toString) "Enterprise" }} -apiVersion: v1 -kind: Secret -metadata: - creationTimestamp: null - labels: - app: clustertemplatemanag-clustertemplatemanag-envsecret-g2i9t - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: clustertemplatemanag-clustertemplatemanag-envsecret-g2i9t - released-by: gopaddle - servicegroup: clustertemplatemanager-il2p24vj - name: clustertemplatemanag-clustertemplatemanag-envsecret-g2i9t - namespace: {{ .Release.Namespace }} -{{- end }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanager-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanager-clusterip.yaml deleted file mode 100644 index e87f60fa6..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanager-clusterip.yaml +++ /dev/null @@ -1,26 +0,0 @@ -{{- if eq (.Values.global.installer.edition | toString) "Enterprise" }} -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: clustertemplatemanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: clustertemplatemanager - released-by: gopaddle - servicegroup: clustertemplatemanager-il2p24vj - name: clustertemplatemanager - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 8050-tcp - port: 8050 - protocol: TCP - targetPort: 8050 - selector: - family: servicegroup - servicegroup: clustertemplatemanager-il2p24vj - type: ClusterIP -status: - loadBalancer: {} -{{- end }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanager-deployment.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanager-deployment.yaml deleted file mode 100644 index 5cee3cc56..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanager-deployment.yaml +++ /dev/null @@ -1,122 +0,0 @@ -{{- if eq (.Values.global.installer.edition | toString) "Enterprise" }} -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: clustertemplatemanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: clustertemplatemanager - released-by: gopaddle - servicegroup: clustertemplatemanager-il2p24vj - servicegroup-name: clustertemplatemanager - name: clustertemplatemanager - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 5 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: clustertemplatemanager - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - creationTimestamp: null - labels: - app: clustertemplatemanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: clustertemplatemanager - released-by: gopaddle - servicegroup: clustertemplatemanager-il2p24vj - servicetype: gopaddle - name: clustertemplatemanager - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - args: - - |- - apt-get update - wget https://releases.hashicorp.com/terraform/1.0.0/terraform_1.0.0_linux_amd64.zip - apt-get install zip -y - unzip terraform*.zip - mv terraform /usr/local/bin - apt install -y graphviz - ./clustertemplatemanager kube > /var/log/gopaddle/clustertemplatemanager.log - tail -f /var/log/gopaddle/clustertemplatemanager.log - command: - - /bin/sh - - -c - env: - - name: GP_RELEASE - value: gp-4.2 - envFrom: - - secretRef: - name: clustertemplatemanag-clustertemplatemanag-envsecret-g2i9t -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/clustertemplatemanager:{{ .Values.clustertemplatemanager.clustertemplatemanager.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/clustertemplatemanager:{{ .Values.clustertemplatemanager.clustertemplatemanager.imageTag }} -{{- end }} - livenessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8050 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - name: clustertemplatemanager - ports: - - containerPort: 8050 - name: 8050-tcp - protocol: TCP - readinessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8050 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - resources: - limits: - cpu: 100m - memory: 100M - requests: - cpu: 10m - memory: 50M - securityContext: {} - volumeMounts: - - mountPath: /app/config - name: clustertemplatemanag-clustertemplatemanag-cmnt-e2fkh - - mountPath: /var/log/gopaddle/ - name: log - imagePullSecrets: -{{- if .Values.global.airgapped.enabled }} - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- else }} - - name: gcr-json-key -{{- end }} - securityContext: {} - volumes: - - configMap: - defaultMode: 420 - name: clustertemplatemanag-clustertemplatemanag-configmap-ucc36 - name: clustertemplatemanag-clustertemplatemanag-cmnt-e2fkh - - emptyDir: {} - name: log -status: {} -{{- end }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanager-hpa-yyd28.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanager-hpa-yyd28.yaml deleted file mode 100644 index 2e9493504..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanager-hpa-yyd28.yaml +++ /dev/null @@ -1,24 +0,0 @@ -{{- if eq (.Values.global.installer.edition | toString) "Enterprise" }} -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - creationTimestamp: null - labels: - app: clustertemplatemanager-hpa-yyd28 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: clustertemplatemanager-hpa-yyd28 - released-by: gopaddle - servicegroup: clustertemplatemanager-il2p24vj - name: clustertemplatemanager-hpa-yyd28 - namespace: {{ .Release.Namespace }} -spec: - maxReplicas: 1 - minReplicas: 1 - scaleTargetRef: - kind: Deployment - name: clustertemplatemanager - targetCPUUtilizationPercentage: 70 -status: - currentReplicas: 0 - desiredReplicas: 0 -{{- end }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanager-netsec-nycgj.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanager-netsec-nycgj.yaml deleted file mode 100644 index 7da32be9b..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/clustertemplatemanager-netsec-nycgj.yaml +++ /dev/null @@ -1,127 +0,0 @@ -{{- if eq (.Values.global.installer.edition | toString) "Enterprise" }} -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - creationTimestamp: null - labels: - app: clustertemplatemanager-netsec-nycgj - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: clustertemplatemanager-netsec-nycgj - released-by: gopaddle - servicegroup: clustertemplatemanager-il2p24vj - name: clustertemplatemanager-netsec-nycgj - namespace: {{ .Release.Namespace }} -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8012 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8009 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8004 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8007 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8759 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8001 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8013 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8010 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8003 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8005 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8006 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8017 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8021 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8011 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8020 - protocol: TCP - podSelector: - matchLabels: - family: "" - servicegroup: clustertemplatemanager-il2p24vj - policyTypes: - - Ingress -{{- end }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-clusterip.yaml deleted file mode 100644 index 1745ce7bd..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-clusterip.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: configmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: configmanager - released-by: gopaddle - servicegroup: configmanager-ntkg8uov - name: configmanager - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 8001-tcp - port: 8001 - protocol: TCP - targetPort: 8001 - selector: - family: servicegroup - servicegroup: configmanager-ntkg8uov - type: ClusterIP -status: - loadBalancer: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-configmanager-configmap-hxdat.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-configmanager-configmap-hxdat.yaml deleted file mode 100644 index 1f42b80c1..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-configmanager-configmap-hxdat.yaml +++ /dev/null @@ -1,19 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app: configmanager-configmanager-configmap-hxdat - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: configmanager-configmanager-configmap-hxdat - released-by: gopaddle - servicegroup: configmanager-ntkg8uov - name: configmanager-configmanager-configmap-hxdat - namespace: {{ .Release.Namespace }} -data: -{{ (.Files.Glob "files/configmanager/configmanager/log_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/configmanager/configmanager/validation.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/configmanager/configmanager/error_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/configmanager/configmanager/profiles-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/configmanager/configmanager/internal_api.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/configmanager/configmanager/service_directory-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/configmanager/configmanager/design_profiles.json").AsConfig | indent 2 }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-configmanager-envsecret-n8xui.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-configmanager-envsecret-n8xui.yaml deleted file mode 100644 index 6b77c022b..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-configmanager-envsecret-n8xui.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - creationTimestamp: null - labels: - app: configmanager-configmanager-envsecret-n8xui - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: configmanager-configmanager-envsecret-n8xui - released-by: gopaddle - servicegroup: configmanager-ntkg8uov - name: configmanager-configmanager-envsecret-n8xui - namespace: {{ .Release.Namespace }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-deployment.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-deployment.yaml deleted file mode 100644 index 14157237a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-deployment.yaml +++ /dev/null @@ -1,134 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: configmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: configmanager - released-by: gopaddle - servicegroup: configmanager-ntkg8uov - servicegroup-name: configmanager - name: configmanager - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 5 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: configmanager - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - creationTimestamp: null - labels: - app: configmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: configmanager - released-by: gopaddle - servicegroup: configmanager-ntkg8uov - servicetype: gopaddle - name: configmanager - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - args: - - |- - #!/bin/bash - apk add --no-cache openrc busybox-initscripts - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > configmanager.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - ./configmanager kube > /var/log/gopaddle/configmanager.log - tail -f /var/log/gopaddle/configmanager.log - command: - - /bin/sh - - -c - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: {{ quote .Values.configmanager.configmanager.envMap.NODE_NAME }} - - name: GP_RELEASE - value: gp-4.2 - envFrom: - - secretRef: - name: configmanager-configmanager-envsecret-n8xui -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/configmanager:{{ .Values.configmanager.configmanager.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/configmanager:{{ .Values.configmanager.configmanager.imageTag }} -{{- end }} - livenessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8001 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - name: configmanager - ports: - - containerPort: 8001 - name: 8001-tcp - protocol: TCP - readinessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8001 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - resources: - limits: - cpu: 100m - memory: 100M - requests: - cpu: 10m - memory: 50M - securityContext: {} - volumeMounts: - - mountPath: /app/config - name: configmanager-configmanager-cmnt-atpo0 - - mountPath: /var/log/gopaddle/ - name: log - imagePullSecrets: -{{- if .Values.global.airgapped.enabled }} - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- else }} - - name: gcr-json-key -{{- end }} - securityContext: {} - volumes: - - configMap: - defaultMode: 420 - name: configmanager-configmanager-configmap-hxdat - name: configmanager-configmanager-cmnt-atpo0 - - emptyDir: {} - name: log -status: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-hpa-50f4w.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-hpa-50f4w.yaml deleted file mode 100644 index 72ef69ca2..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-hpa-50f4w.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - creationTimestamp: null - labels: - app: configmanager-hpa-50f4w - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: configmanager-hpa-50f4w - released-by: gopaddle - servicegroup: configmanager-ntkg8uov - name: configmanager-hpa-50f4w - namespace: {{ .Release.Namespace }} -spec: - maxReplicas: 1 - minReplicas: 1 - scaleTargetRef: - kind: Deployment - name: configmanager - targetCPUUtilizationPercentage: 70 -status: - currentReplicas: 0 - desiredReplicas: 0 diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-netsec-9602v.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-netsec-9602v.yaml deleted file mode 100644 index ebca97214..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/configmanager-netsec-9602v.yaml +++ /dev/null @@ -1,125 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - creationTimestamp: null - labels: - app: configmanager-netsec-9602v - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: configmanager-netsec-9602v - released-by: gopaddle - servicegroup: configmanager-ntkg8uov - name: configmanager-netsec-9602v - namespace: {{ .Release.Namespace }} -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8012 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8009 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8004 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8007 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8759 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8001 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8013 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8010 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8003 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8005 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8006 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8017 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8021 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8011 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8020 - protocol: TCP - podSelector: - matchLabels: - family: "" - servicegroup: configmanager-ntkg8uov - policyTypes: - - Ingress diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-clusterip.yaml deleted file mode 100644 index b1550ed61..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-clusterip.yaml +++ /dev/null @@ -1,28 +0,0 @@ -{{ $type := include "gopaddle.serviceType" . }} -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: costmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: costmanager - released-by: gopaddle - servicegroup: costmanager-olfgicj6 - name: costmanager - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 8011-tcp - port: 8011 -{{- if eq ($type | toString ) "NodePort" }} - nodePort: 30005 -{{- end }} - protocol: TCP - targetPort: 8011 - selector: - family: servicegroup - servicegroup: costmanager-olfgicj6 - type: {{ template "gopaddle.serviceType" . }} -status: - loadBalancer: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-costmanager-configmap-q1g1s.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-costmanager-configmap-q1g1s.yaml deleted file mode 100644 index 695ae522a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-costmanager-configmap-q1g1s.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app: costmanager-costmanager-configmap-q1g1s - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: costmanager-costmanager-configmap-q1g1s - released-by: gopaddle - servicegroup: costmanager-olfgicj6 - name: costmanager-costmanager-configmap-q1g1s - namespace: {{ .Release.Namespace }} -data: -{{ (.Files.Glob "files/costmanager/costmanager/service_directory-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/costmanager/costmanager/error_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/costmanager/costmanager/profiles-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/costmanager/costmanager/internal_api.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/costmanager/costmanager/validation.json").AsConfig | indent 2 }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-costmanager-envsecret-nq4hj.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-costmanager-envsecret-nq4hj.yaml deleted file mode 100644 index 889dea850..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-costmanager-envsecret-nq4hj.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - creationTimestamp: null - labels: - app: costmanager-costmanager-envsecret-nq4hj - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: costmanager-costmanager-envsecret-nq4hj - released-by: gopaddle - servicegroup: costmanager-olfgicj6 - name: costmanager-costmanager-envsecret-nq4hj - namespace: {{ .Release.Namespace }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-deployment.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-deployment.yaml deleted file mode 100644 index 4cc6703a4..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-deployment.yaml +++ /dev/null @@ -1,134 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: costmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: costmanager - released-by: gopaddle - servicegroup: costmanager-olfgicj6 - servicegroup-name: costmanager - name: costmanager - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 5 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: costmanager - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - creationTimestamp: null - labels: - app: costmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: costmanager - released-by: gopaddle - servicegroup: costmanager-olfgicj6 - servicetype: gopaddle - name: costmanager - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - args: - - |- - #!/bin/bash - apk add --no-cache openrc busybox-initscripts - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > costmanager.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - ./costmanager kube > /var/log/gopaddle/costmanager.log - tail -f /var/log/gopaddle/costmanager.log - command: - - /bin/sh - - -c - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: {{ quote .Values.costmanager.costmanager.envMap.NODE_NAME }} - - name: GP_RELEASE - value: gp-4.2 - envFrom: - - secretRef: - name: costmanager-costmanager-envsecret-nq4hj -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/costmanager:{{ .Values.costmanager.costmanager.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/costmanager:{{ .Values.costmanager.costmanager.imageTag }} -{{- end }} - livenessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8011 - initialDelaySeconds: 30 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 10 - name: costmanager - ports: - - containerPort: 8011 - name: 8011-tcp - protocol: TCP - readinessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8011 - initialDelaySeconds: 30 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 10 - resources: - limits: - cpu: 300m - memory: 500M - requests: - cpu: 10m - memory: 50M - securityContext: {} - volumeMounts: - - mountPath: /app/config - name: costmanager-costmanager-cmnt-gatch - - mountPath: /var/log/gopaddle/ - name: log - imagePullSecrets: -{{- if .Values.global.airgapped.enabled }} - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- else }} - - name: gcr-json-key -{{- end }} - securityContext: {} - volumes: - - configMap: - defaultMode: 420 - name: costmanager-costmanager-configmap-q1g1s - name: costmanager-costmanager-cmnt-gatch - - emptyDir: {} - name: log -status: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-hpa-12c13.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-hpa-12c13.yaml deleted file mode 100644 index 66c49715f..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-hpa-12c13.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - creationTimestamp: null - labels: - app: costmanager-hpa-12c13 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: costmanager-hpa-12c13 - released-by: gopaddle - servicegroup: costmanager-olfgicj6 - name: costmanager-hpa-12c13 - namespace: {{ .Release.Namespace }} -spec: - maxReplicas: 1 - minReplicas: 1 - scaleTargetRef: - kind: Deployment - name: costmanager - targetCPUUtilizationPercentage: 70 -status: - currentReplicas: 0 - desiredReplicas: 0 diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-netsec-zymxm.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-netsec-zymxm.yaml deleted file mode 100644 index 4029f1c24..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/costmanager-netsec-zymxm.yaml +++ /dev/null @@ -1,125 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - creationTimestamp: null - labels: - app: costmanager-netsec-zymxm - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: costmanager-netsec-zymxm - released-by: gopaddle - servicegroup: costmanager-olfgicj6 - name: costmanager-netsec-zymxm - namespace: {{ .Release.Namespace }} -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8012 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8009 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8004 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8007 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8759 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8001 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8013 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8010 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8003 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8005 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8006 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8017 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8021 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8011 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8020 - protocol: TCP - podSelector: - matchLabels: - family: "" - servicegroup: costmanager-olfgicj6 - policyTypes: - - Ingress diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-clusterip.yaml deleted file mode 100644 index b416c1189..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-clusterip.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: deploymentmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: deploymentmanager - released-by: gopaddle - servicegroup: deploymentmanager-7er149pa - name: deploymentmanager - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 8003-tcp - port: 8003 - protocol: TCP - targetPort: 8003 - - name: 8017-tcp - port: 8017 - protocol: TCP - targetPort: 8017 - selector: - family: servicegroup - servicegroup: deploymentmanager-7er149pa - type: ClusterIP -status: - loadBalancer: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-deploymanager-configmap-ub0p4.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-deploymanager-configmap-ub0p4.yaml deleted file mode 100644 index b4f292e8f..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-deploymanager-configmap-ub0p4.yaml +++ /dev/null @@ -1,21 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app: deploymentmanager-deploymanager-configmap-ub0p4 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: deploymentmanager-deploymanager-configmap-ub0p4 - released-by: gopaddle - servicegroup: deploymentmanager-7er149pa - name: deploymentmanager-deploymanager-configmap-ub0p4 - namespace: {{ .Release.Namespace }} -data: -{{ (.Files.Glob "files/deploymentmanager/deploymanager/profiles-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/deploymentmanager/deploymanager/service_directory-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/deploymentmanager/deploymanager/versionMatrix.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/deploymentmanager/deploymanager/validation.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/deploymentmanager/deploymanager/error_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/deploymentmanager/deploymanager/internal_api.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/deploymentmanager/deploymanager/Chart.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/deploymentmanager/deploymanager/clusterrole.yaml").AsConfig | indent 2 }} -{{ (.Files.Glob "files/deploymentmanager/deploymanager/helper.tpl").AsConfig | indent 2 }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-deploymanager-envsecret-ik60p.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-deploymanager-envsecret-ik60p.yaml deleted file mode 100644 index ca24947b9..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-deploymanager-envsecret-ik60p.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - creationTimestamp: null - labels: - app: deploymentmanager-deploymanager-envsecret-ik60p - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: deploymentmanager-deploymanager-envsecret-ik60p - released-by: gopaddle - servicegroup: deploymentmanager-7er149pa - name: deploymentmanager-deploymanager-envsecret-ik60p - namespace: {{ .Release.Namespace }} -stringData: - rabbitmq_passwd: ECabAv1Thdn8fANd diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-deployment.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-deployment.yaml deleted file mode 100644 index e3f50d60a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-deployment.yaml +++ /dev/null @@ -1,149 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: deploymentmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: deploymentmanager - released-by: gopaddle - servicegroup: deploymentmanager-7er149pa - servicegroup-name: deploymentmanager - name: deploymentmanager - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 5 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: deploymentmanager - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - creationTimestamp: null - labels: - app: deploymentmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: deploymentmanager - released-by: gopaddle - servicegroup: deploymentmanager-7er149pa - servicetype: gopaddle - name: deploymentmanager - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - {{ template "cluster.provider.deploymentmanager" . }} - command: - - /bin/sh - - -c - env: - - name: rabbitmq_user - value: {{ quote .Values.deploymentmanager.deploymanager.envMap.rabbitmq_user }} - - name: NODE_IP - value: {{ template "gopaddle.nodeIP" . }} - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: {{ quote .Values.deploymentmanager.deploymanager.envMap.NODE_NAME }} - - name: GP_RELEASE - value: gp-4.2 -{{- if .Values.global.airgapped.enabled }} - - name: AIR_GAPPED - value: {{ quote .Values.global.airgapped.enabled }} - - name: IMAGE_REGISTRY - value: {{ quote .Values.global.airgapped.imageRegistryType }} - - name: DOCKER_REGISTRY_URL - value: {{ .Values.global.airgapped.imageRegistryInfo.registryUrl }} - {{- if eq ( .Values.global.airgapped.imageRegistryType | toString) "private" }} - - name: INGRESS_IMAGE_BELOW_V22 - value: {{ template "gopaddle.deploymentmanager.nginx-ingress-controller" . }} - - name: INGRESS_IMAGE_ABOVE_V22 - value: {{ template "gopaddle.deploymentmanager.controller" . }} - {{- if eq (.Values.global.airgapped.imageRegistryInfo.authType | toString) "dockerconfig" }} - - name: DOCKER_CONFIG_JSON_B64 - value: {{ .Values.global.airgapped.imageRegistryInfo.dockerConfig }} - - name: AUTHTYPE - value: {{ .Values.global.airgapped.imageRegistryInfo.authType }} - {{- else if eq (.Values.global.airgapped.imageRegistryInfo.authType | toString) "basic" }} - - name: DOCKER_REGISTRY_USERNAME - value: {{ .Values.global.airgapped.imageRegistryInfo.basicAuth.registryUserName }} - - name: DOCKER_REGISTRY_PASSWORD - value: {{ .Values.global.airgapped.imageRegistryInfo.basicAuth.registryPassword }} - - name: AUTHTYPE - value: {{ .Values.global.airgapped.imageRegistryInfo.authType }} - {{- end}} - {{- end }} -{{- end }} - envFrom: - - secretRef: - name: deploymentmanager-deploymanager-envsecret-ik60p -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/deploymanager:{{ .Values.deploymentmanager.deploymanager.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/deploymanager:{{ .Values.deploymentmanager.deploymanager.imageTag }} -{{- end }} - livenessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8003 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - name: deploymanager - ports: - - containerPort: 8003 - name: 8003-tcp - protocol: TCP - - containerPort: 8017 - name: 8017-tcp - protocol: TCP - readinessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8003 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - resources: - limits: - cpu: 300m - memory: 400M - requests: - cpu: 10m - memory: 50M - securityContext: {} - volumeMounts: - - mountPath: /app/config - name: deploymentmanager-deploymanager-cmnt-z4ozd - - mountPath: /var/log/gopaddle/ - name: log - imagePullSecrets: -{{- if .Values.global.airgapped.enabled }} - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- else }} - - name: gcr-json-key -{{- end }} - securityContext: {} - volumes: - - configMap: - defaultMode: 420 - name: deploymentmanager-deploymanager-configmap-ub0p4 - name: deploymentmanager-deploymanager-cmnt-z4ozd - - emptyDir: {} - name: log -status: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-hpa-yl5rh.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-hpa-yl5rh.yaml deleted file mode 100644 index 0edbd8fd6..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-hpa-yl5rh.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - creationTimestamp: null - labels: - app: deploymentmanager-hpa-yl5rh - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: deploymentmanager-hpa-yl5rh - released-by: gopaddle - servicegroup: deploymentmanager-7er149pa - name: deploymentmanager-hpa-yl5rh - namespace: {{ .Release.Namespace }} -spec: - maxReplicas: 1 - minReplicas: 1 - scaleTargetRef: - kind: Deployment - name: deploymentmanager - targetCPUUtilizationPercentage: 70 -status: - currentReplicas: 0 - desiredReplicas: 0 diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-netsec-u9ajt.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-netsec-u9ajt.yaml deleted file mode 100644 index 40e12a172..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/deploymentmanager-netsec-u9ajt.yaml +++ /dev/null @@ -1,125 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - creationTimestamp: null - labels: - app: deploymentmanager-netsec-u9ajt - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: deploymentmanager-netsec-u9ajt - released-by: gopaddle - servicegroup: deploymentmanager-7er149pa - name: deploymentmanager-netsec-u9ajt - namespace: {{ .Release.Namespace }} -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8012 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8009 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8004 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8007 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8759 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8001 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8013 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8010 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8003 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8005 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8006 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8017 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8021 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8011 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8020 - protocol: TCP - podSelector: - matchLabels: - family: "" - servicegroup: deploymentmanager-7er149pa - policyTypes: - - Ingress diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-clusterip.yaml deleted file mode 100644 index 82b185cf9..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-clusterip.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: domainmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: domainmanager - released-by: gopaddle - servicegroup: domainmanager-51g7q5yh - name: domainmanager - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 8004-tcp - port: 8004 - protocol: TCP - targetPort: 8004 - selector: - family: servicegroup - servicegroup: domainmanager-51g7q5yh - type: ClusterIP -status: - loadBalancer: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-deployment.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-deployment.yaml deleted file mode 100644 index bb76cda34..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-deployment.yaml +++ /dev/null @@ -1,134 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: domainmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: domainmanager - released-by: gopaddle - servicegroup: domainmanager-51g7q5yh - servicegroup-name: domainmanager - name: domainmanager - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 5 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: domainmanager - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 1 - type: RollingUpdate - template: - metadata: - creationTimestamp: null - labels: - app: domainmanager - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: domainmanager - released-by: gopaddle - servicegroup: domainmanager-51g7q5yh - servicetype: gopaddle - name: domainmanager - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - args: - - |- - #!/bin/bash - apk add busybox-openrc - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > domainmanager.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - ./domainmanager kube > /var/log/gopaddle/domainmanager.log - tail -f /var/log/gopaddle/domainmanager.log - command: - - /bin/sh - - -c - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: {{ quote .Values.domainmanager.domainmanager.envMap.NODE_NAME }} - - name: GP_RELEASE - value: gp-4.2 - envFrom: - - secretRef: - name: domainmanager-domainmanager-envsecret-bzb3z -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/domainmanager:{{ .Values.domainmanager.domainmanager.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/domainmanager:{{ .Values.domainmanager.domainmanager.imageTag }} -{{- end }} - livenessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8004 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - name: domainmanager - ports: - - containerPort: 8004 - name: 8004-tcp - protocol: TCP - readinessProbe: - failureThreshold: 6 - httpGet: - path: /api/status - port: 8004 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - resources: - limits: - cpu: 100m - memory: 100M - requests: - cpu: 10m - memory: 50M - securityContext: {} - volumeMounts: - - mountPath: /app/config - name: domainmanager-domainmanager-cmnt-8stzt - - mountPath: /var/log/gopaddle/ - name: log - imagePullSecrets: -{{- if .Values.global.airgapped.enabled }} - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- else }} - - name: gcr-json-key -{{- end }} - securityContext: {} - volumes: - - configMap: - defaultMode: 420 - name: domainmanager-domainmanager-configmap-ieq7l - name: domainmanager-domainmanager-cmnt-8stzt - - emptyDir: {} - name: log -status: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-domainmanager-configmap-ieq7l.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-domainmanager-configmap-ieq7l.yaml deleted file mode 100644 index 3e13ca8f1..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-domainmanager-configmap-ieq7l.yaml +++ /dev/null @@ -1,17 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app: domainmanager-domainmanager-configmap-ieq7l - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: domainmanager-domainmanager-configmap-ieq7l - released-by: gopaddle - servicegroup: domainmanager-51g7q5yh - name: domainmanager-domainmanager-configmap-ieq7l - namespace: {{ .Release.Namespace }} -data: -{{ (.Files.Glob "files/domainmanager/domainmanager/service_directory-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/domainmanager/domainmanager/profiles-kube.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/domainmanager/domainmanager/log_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/domainmanager/domainmanager/error_config.json").AsConfig | indent 2 }} -{{ (.Files.Glob "files/domainmanager/domainmanager/internal_api.json").AsConfig | indent 2 }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-domainmanager-envsecret-bzb3z.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-domainmanager-envsecret-bzb3z.yaml deleted file mode 100644 index 52a31ccd3..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-domainmanager-envsecret-bzb3z.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: v1 -kind: Secret -metadata: - creationTimestamp: null - labels: - app: domainmanager-domainmanager-envsecret-bzb3z - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: domainmanager-domainmanager-envsecret-bzb3z - released-by: gopaddle - servicegroup: domainmanager-51g7q5yh - name: domainmanager-domainmanager-envsecret-bzb3z - namespace: {{ .Release.Namespace }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-hpa-yf3nd.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-hpa-yf3nd.yaml deleted file mode 100644 index ece265dc4..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-hpa-yf3nd.yaml +++ /dev/null @@ -1,22 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - creationTimestamp: null - labels: - app: domainmanager-hpa-yf3nd - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: domainmanager-hpa-yf3nd - released-by: gopaddle - servicegroup: domainmanager-51g7q5yh - name: domainmanager-hpa-yf3nd - namespace: {{ .Release.Namespace }} -spec: - maxReplicas: 1 - minReplicas: 1 - scaleTargetRef: - kind: Deployment - name: domainmanager - targetCPUUtilizationPercentage: 70 -status: - currentReplicas: 0 - desiredReplicas: 0 diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-netsec-yfbyu.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-netsec-yfbyu.yaml deleted file mode 100644 index be8882626..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/domainmanager-netsec-yfbyu.yaml +++ /dev/null @@ -1,125 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - creationTimestamp: null - labels: - app: domainmanager-netsec-yfbyu - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: domainmanager-netsec-yfbyu - released-by: gopaddle - servicegroup: domainmanager-51g7q5yh - name: domainmanager-netsec-yfbyu - namespace: {{ .Release.Namespace }} -spec: - ingress: - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8012 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8009 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8004 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8007 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8759 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8001 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8013 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8010 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8003 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8005 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8006 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8017 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8021 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8011 - protocol: TCP - - from: - - namespaceSelector: - matchLabels: - namespace: {{ .Release.Namespace }} - ports: - - port: 8020 - protocol: TCP - podSelector: - matchLabels: - family: "" - servicegroup: domainmanager-51g7q5yh - policyTypes: - - Ingress diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/emailer-job.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/emailer-job.yaml deleted file mode 100644 index 95e420b5b..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/emailer-job.yaml +++ /dev/null @@ -1,48 +0,0 @@ -{{- if eq (.Values.global.installer.edition | toString) "Lite" }} -apiVersion: batch/v1 -kind: CronJob -metadata: - name: emailer-job - namespace: {{ .Release.Namespace }} -spec: - schedule: "* 19 * * 5" - jobTemplate: - spec: - template: - spec: - containers: - - args: - - |- - #!/bin/bash - ARCH=`uname -m` && \ - if [ "$ARCH" == "x86_64" ]; then \ - cp ./kubeaudit.amd64 ./kubeaudit; \ - else \ - echo "unknown arch" && \ - cp ./kubeaudit.arm64 ./kubeaudit; \ - fi - chmod +x ./kubeaudit ./emailservice ./runAudit.sh - sh -x ./runAudit.sh - command: - - /bin/sh - - -c - env: - - name: NODE_IP - value: {{ template "gopaddle.baseServerUI" . }} - - name: GP_RELEASE - value: {{ quote .Chart.AppVersion }} -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/emailer:{{ .Values.emailer.emailer.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/emailer:{{ .Values.emailer.emailer.imageTag }} -{{- end }} - imagePullPolicy: IfNotPresent - name: emailer - restartPolicy: OnFailure - imagePullSecrets: -{{- if .Values.global.airgapped.enabled }} - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- else }} - - name: gcr-json-key -{{- end }} -{{- end }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-clusterip.yaml deleted file mode 100644 index 9254e0b45..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-clusterip.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: esearch - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: esearch - released-by: gopaddle - servicegroup: esearch-lz5zjizb - name: esearch - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 9200-tcp - port: 9200 - protocol: TCP - targetPort: 9200 - selector: - family: servicegroup - servicegroup: esearch-lz5zjizb - type: ClusterIP -status: - loadBalancer: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-configmap-multi-arch.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-configmap-multi-arch.yaml deleted file mode 100644 index 75a063e5a..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-configmap-multi-arch.yaml +++ /dev/null @@ -1,25 +0,0 @@ -apiVersion: v1 -kind: ConfigMap -metadata: - name: elasticsearch-config - namespace: {{ .Release.Namespace }} - labels: - component: elasticsearch -data: - elasticsearch.yml: | - cluster.name: password-protected-efk - node.name: node-1 - path.data: /usr/share/elasticsearch/data - http: - host: 0.0.0.0 - port: 9200 - bootstrap.memory_lock: true - transport.host: 127.0.0.1 - xpack.license.self_generated.type: basic - # Enable xpack.security which is provided in basic subscription - xpack.security.enabled: true - # Disable unused xpack features - xpack.monitoring.enabled: false - xpack.graph.enabled: false - xpack.watcher.enabled: false - xpack.ml.enabled: false diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-esearch-configmap-slj65.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-esearch-configmap-slj65.yaml deleted file mode 100644 index 4d3361cea..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-esearch-configmap-slj65.yaml +++ /dev/null @@ -1,15 +0,0 @@ -{{- if eq (.Values.global.installer.arch | toString) "amdold" }} -apiVersion: v1 -kind: ConfigMap -metadata: - labels: - app: esearch-esearch-configmap-slj65 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: esearch-esearch-configmap-slj65 - released-by: gopaddle - servicegroup: esearch-lz5zjizb - name: esearch-esearch-configmap-slj65 - namespace: {{ .Release.Namespace }} -data: -{{ (.Files.Glob "files/esearch/esearch/esearch.sh").AsConfig | indent 2 }} -{{- end }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-esearch-envsecret-14sx3.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-esearch-envsecret-14sx3.yaml deleted file mode 100644 index b3a796420..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-esearch-envsecret-14sx3.yaml +++ /dev/null @@ -1,14 +0,0 @@ -{{- if eq (.Values.global.installer.arch | toString) "amdold" }} -apiVersion: v1 -kind: Secret -metadata: - creationTimestamp: null - labels: - app: esearch-esearch-envsecret-14sx3 - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: esearch-esearch-envsecret-14sx3 - released-by: gopaddle - servicegroup: esearch-lz5zjizb - name: esearch-esearch-envsecret-14sx3 - namespace: {{ .Release.Namespace }} -{{- end }} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-netsec-qmsut.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-netsec-qmsut.yaml deleted file mode 100644 index f241a33ec..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-netsec-qmsut.yaml +++ /dev/null @@ -1,28 +0,0 @@ -apiVersion: networking.k8s.io/v1 -kind: NetworkPolicy -metadata: - creationTimestamp: null - labels: - app: esearch-netsec-qmsut - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: esearch-netsec-qmsut - released-by: gopaddle - servicegroup: esearch-lz5zjizb - name: esearch-netsec-qmsut - namespace: {{ .Release.Namespace }} -spec: - ingress: - - from: - - podSelector: - matchLabels: - family: servicegroup - servicegroup-name: kibana - ports: - - port: 9200 - protocol: TCP - podSelector: - matchLabels: - family: "" - servicegroup: esearch-lz5zjizb - policyTypes: - - Ingress diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-statefulset-multi-arch.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-statefulset-multi-arch.yaml deleted file mode 100644 index 28bcd724c..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-statefulset-multi-arch.yaml +++ /dev/null @@ -1,92 +0,0 @@ -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: esearch - namespace: {{ .Release.Namespace }} - labels: - app: esearch - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: esearch - released-by: gopaddle - servicegroup: esearch-lz5zjizb - servicegroup-name: esearch -spec: - serviceName: esearch-headless - replicas: 1 - selector: - matchLabels: - component: esearch - template: - metadata: - creationTimestamp: null - labels: - app: esearch - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: esearch - released-by: gopaddle - servicegroup: esearch-lz5zjizb - component: esearch - name: esearch - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - name: esearch - image: {{ .Values.esearch.esearch.image }} - imagePullPolicy: IfNotPresent - env: - - name: discovery.type - value: single-node - - name: ELASTIC_PASSWORD - value: cGFzc3dvcmQ - ports: - - containerPort: 9200 - name: http - protocol: TCP - volumeMounts: - - name: elasticsearch-config - mountPath: /usr/share/elasticsearch/config/elasticsearch.yml - subPath: elasticsearch.yml - - name: data - mountPath: /usr/share/elasticsearch/data - resources: - limits: - cpu: "1" - memory: 2G - requests: - cpu: 300m - memory: 500M - # Allow non-root user to access PersistentVolume - securityContext: - fsGroup: 1000 - restartPolicy: Always - volumes: - - name: elasticsearch-config - configMap: - name: elasticsearch-config - volumeClaimTemplates: - - metadata: - creationTimestamp: null - labels: - app: data - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: esearch - released-by: gopaddle - servicegroup: esearch-lz5zjizb - name: data - spec: - accessModes: - - ReadWriteOnce - resources: - limits: - storage: 20Gi - requests: - storage: 10Gi - storageClassName: {{ template "gopaddle.storageClass" . }} - volumeMode: Filesystem - status: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-statefulset.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-statefulset.yaml deleted file mode 100644 index 003209794..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/esearch-statefulset.yaml +++ /dev/null @@ -1,112 +0,0 @@ -{{- if eq (.Values.global.installer.arch | toString) "amdold" }} -apiVersion: apps/v1 -kind: StatefulSet -metadata: - creationTimestamp: null - labels: - app: esearch - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: esearch - released-by: gopaddle - servicegroup: esearch-lz5zjizb - servicegroup-name: esearch - name: esearch - namespace: {{ .Release.Namespace }} -spec: - replicas: 1 - revisionHistoryLimit: 2 - selector: - matchLabels: - app: esearch - serviceName: esearch-headless - template: - metadata: - creationTimestamp: null - labels: - app: esearch - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: esearch - released-by: gopaddle - servicegroup: esearch-lz5zjizb - name: esearch - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - args: - - bash - - -c - - chmod 0777 /initscript/esearch.sh;/bin/bash -x /initscript/esearch.sh - env: - - name: discovery.type - value: {{ quote .Values.esearch.esearch.envMap.discovery_type }} - - name: GP_RELEASE - value: gp-4.2 - envFrom: - - secretRef: - name: esearch-esearch-envsecret-14sx3 -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ .Values.esearch.esearch.image }}:{{ .Values.esearch.esearch.imageTagArm }} -{{- else }} - image: {{ .Values.esearch.esearch.image }}:{{ .Values.esearch.esearch.imageTag }} -{{- end }} - name: esearch - ports: - - containerPort: 9200 - name: 9200-tcp - protocol: TCP - resources: - limits: - cpu: "1" - memory: 1G - requests: - cpu: 100m - memory: 100M - securityContext: {} - volumeMounts: - - mountPath: /initscript - name: esearch-esearch-cmnt-mb5ui - - mountPath: /usr/share/elasticsearch/data - name: data -{{- if .Values.global.airgapped.enabled }} - imagePullSecrets: - - name: {{ .Values.global.airgapped.imageRegistryInfo.imageSecret }} -{{- end }} - securityContext: {} - subdomain: esearch - volumes: - - configMap: - defaultMode: 420 - name: esearch-esearch-configmap-slj65 - name: esearch-esearch-cmnt-mb5ui - updateStrategy: - rollingUpdate: - partition: 0 - type: RollingUpdate - volumeClaimTemplates: - - metadata: - creationTimestamp: null - labels: - app: data - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: esearch - released-by: gopaddle - servicegroup: esearch-lz5zjizb - name: data - spec: - accessModes: - - ReadWriteOnce - resources: - limits: - storage: 20Gi - requests: - storage: 10Gi - storageClassName: {{ template "gopaddle.storageClass" . }} - volumeMode: Filesystem - status: {} -{{- end }} \ No newline at end of file diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/gateway-clusterip.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/gateway-clusterip.yaml deleted file mode 100644 index 2c759482d..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/gateway-clusterip.yaml +++ /dev/null @@ -1,39 +0,0 @@ -{{ $type := include "gopaddle.serviceType" . }} -apiVersion: v1 -kind: Service -metadata: - creationTimestamp: null - labels: - app: gateway - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - name: gateway - released-by: gopaddle - servicegroup: gateway-i11oclpd - name: gateway - namespace: {{ .Release.Namespace }} -spec: - ports: - - name: 8006-tcp - port: 8006 -{{- if eq ($type | toString ) "NodePort" }} - nodePort: 30004 -{{- end }} - protocol: TCP - targetPort: 8006 - - name: 8017-tcp - port: 8017 - protocol: TCP - targetPort: 8017 - - name: 8080-tcp - port: 8080 -{{- if eq ($type | toString ) "NodePort" }} - nodePort: 30003 -{{- end }} - protocol: TCP - targetPort: 8080 - selector: - family: servicegroup - servicegroup: gateway-i11oclpd - type: {{ template "gopaddle.serviceType" . }} -status: - loadBalancer: {} diff --git a/charts/gopaddle/gopaddle/charts/gp-core/templates/gateway-deployment.yaml b/charts/gopaddle/gopaddle/charts/gp-core/templates/gateway-deployment.yaml deleted file mode 100644 index c5350fb9b..000000000 --- a/charts/gopaddle/gopaddle/charts/gp-core/templates/gateway-deployment.yaml +++ /dev/null @@ -1,218 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - creationTimestamp: null - labels: - app: gateway - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: gateway - released-by: gopaddle - servicegroup: gateway-i11oclpd - servicegroup-name: gateway - name: gateway - namespace: {{ .Release.Namespace }} -spec: - minReadySeconds: 5 - replicas: 1 - revisionHistoryLimit: 10 - selector: - matchLabels: - app: gateway - strategy: - rollingUpdate: - maxSurge: 1 - maxUnavailable: 0 - type: RollingUpdate - template: - metadata: - creationTimestamp: null - labels: - app: gateway - app-id: appsab909ba8cbe61c46e1cb3f9c4dffd24b038a - family: servicegroup - name: gateway - released-by: gopaddle - servicegroup: gateway-i11oclpd - servicetype: gopaddle - name: gateway - spec: - affinity: {} -{{- if .Values.global.nodeSelector }} - nodeSelector: -{{ toYaml .Values.global.nodeSelector | indent 8 }} -{{- end }} - containers: - - args: - - |- - #!/bin/bash - apk add --no-cache openrc busybox-initscripts - openrc - touch /run/openrc/softlevel - rc-service crond start - cat </etc/periodic/15min/logcleanscript - #!/bin/sh - cd /var/log/gopaddle/ - rm -rf *.tar.gz - tar -cvzf log.tar.gz *.log - echo "" > gateway.log - EOF - chmod a+x /etc/periodic/15min/logcleanscript - echo "0 0 * * * /etc/periodic/15min/logcleanscript > /var/log/cron.log 2>&1" >> logclean.cron - /usr/bin/crontab logclean.cron - - ./gateway kube > /var/log/gopaddle/gateway.log - tail -f /var/log/gopaddle/gateway.log - command: - - /bin/sh - - -c - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: {{ quote .Values.gateway.gateway.envMap.NODE_NAME }} - - name: GP_RELEASE - value: gp-4.2 - envFrom: - - secretRef: - name: gateway-gateway-envsecret-gctwp -{{- if eq (.Values.global.installer.arch | toString) "arm64" }} - image: {{ template "gopaddle.registryUrl" . }}/gateway:{{ .Values.gateway.gateway.imageTagArm }} -{{- else }} - image: {{ template "gopaddle.registryUrl" . }}/gateway:{{ .Values.gateway.gateway.imageTag }} -{{- end }} - livenessProbe: - failureThreshold: 6 - httpGet: - path: /status - port: 8006 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - name: gateway - ports: - - containerPort: 8006 - name: 8006-tcp - protocol: TCP - - containerPort: 8017 - name: 8017-tcp - protocol: TCP - readinessProbe: - failureThreshold: 6 - httpGet: - path: /status - port: 8006 - initialDelaySeconds: 30 - periodSeconds: 60 - successThreshold: 1 - timeoutSeconds: 10 - resources: - limits: - cpu: 100m - memory: 100M - requests: - cpu: 10m - memory: 50M - securityContext: {} - volumeMounts: - - mountPath: /app/config - name: gateway-gateway-cmnt-goefl - - mountPath: /var/log/gopaddle/ - name: log - - args: - - |- - #!/bin/bash - sed -i 's,<\/head>,