From ce65b4077d06c165eff8eee3bf7973ca2a7079d7 Mon Sep 17 00:00:00 2001 From: 456130 <456130@mail.muni.cz> Date: Tue, 30 Jul 2019 12:16:54 +0200 Subject: [PATCH] set up cluster yaml --- yaml/complete/clusterRole.yml | 8 ++++++++ yaml/complete/configMap.yml | 29 +++++++++++++++++++++++++++++ yaml/complete/crd.yml | 14 ++++++++++++++ yaml/complete/namespace.yml | 4 ++++ yaml/complete/secret.yml | 8 ++++++++ 5 files changed, 63 insertions(+) create mode 100644 yaml/complete/clusterRole.yml create mode 100644 yaml/complete/configMap.yml create mode 100644 yaml/complete/crd.yml create mode 100644 yaml/complete/namespace.yml create mode 100644 yaml/complete/secret.yml diff --git a/yaml/complete/clusterRole.yml b/yaml/complete/clusterRole.yml new file mode 100644 index 0000000..471b465 --- /dev/null +++ b/yaml/complete/clusterRole.yml @@ -0,0 +1,8 @@ +kind: ClusterRole +apiVersion: rbac.authorization.k8s.io/v1 +metadata: + name: cbio-api +rules: +- apiGroups: [""] + resources: ["identifiers"] + verbs: ["VerbAll"] diff --git a/yaml/complete/configMap.yml b/yaml/complete/configMap.yml new file mode 100644 index 0000000..15efb9c --- /dev/null +++ b/yaml/complete/configMap.yml @@ -0,0 +1,29 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: mysql-cbio-db + namespace: cbio-on-demand +data: + mysql.conf: "# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights + reserved.\n#\n# This program is free software; you can redistribute it and/or + modify\n# it under the terms of the GNU General Public License as published + by\n# the Free Software Foundation; version 2 of the License.\n#\n# This program + is distributed in the hope that it will be useful,\n# but WITHOUT ANY WARRANTY; + without even the implied warranty of\n# MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the\n# GNU General Public License for more details.\n#\n# You + should have received a copy of the GNU General Public License\n# along with + this program; if not, write to the Free Software\n# Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301 USA\n\n#\n# The MySQL Server configuration + file.\n#\n# For explanations see\n# http://dev.mysql.com/doc/mysql/en/server-system-variables.html\n\n[mysqld]\npid-file\t= + /var/run/mysqld/mysqld.pid\nsocket\t\t= /var/run/mysqld/mysqld.sock\ndatadir\t\t= + /var/lib/mysql\n#log-error\t= /var/log/mysql/error.log\n# By default we only + accept connections from localhost\n#bind-address\t= 127.0.0.1\n# Disabling symbolic-links + is recommended to prevent assorted security risks\nsymbolic-links=0\n\n#\n# + * Fine Tuning\n#\n\nkey_buffer_size = 4G\nmax_heap_table_size = + 512M\ntmp_table_size = 512M\nmax_allowed_packet = 256M\nthread_stack + \ = 256K\nthread_cache_size = 20\n# This replaces the startup + script and checks MyISAM tables if needed\n# the first time they are touched\nmyisam-recover-options + \ = BACKUP\nmax_connections = 214\n#table_cache = 64\n#thread_concurrency + \ = 10\n#\n# * Query Cache Configuration\n#\nquery_cache_limit = 1M\nquery_cache_size + \ = 0\nquery_cache_type = 0\n\n\njoin_buffer_size = 16M\ntable_open_cache + = 400\n" diff --git a/yaml/complete/crd.yml b/yaml/complete/crd.yml new file mode 100644 index 0000000..9a95b94 --- /dev/null +++ b/yaml/complete/crd.yml @@ -0,0 +1,14 @@ +apiVersion: apiextensions.k8s.io/v1beta1 +kind: CustomResourceDefinition +metadata: + name: identifiers.example.com + annotations: + maintainer: Luboslav Pivarc <456130@muni.cz> +spec: + scope: Namespaced + group: example.com + version: v1beta1 + names: + kind: identifier + singular: identifier + plural: identifiers diff --git a/yaml/complete/namespace.yml b/yaml/complete/namespace.yml new file mode 100644 index 0000000..0741955 --- /dev/null +++ b/yaml/complete/namespace.yml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: cbio-on-demand diff --git a/yaml/complete/secret.yml b/yaml/complete/secret.yml new file mode 100644 index 0000000..faf738b --- /dev/null +++ b/yaml/complete/secret.yml @@ -0,0 +1,8 @@ +apiVersion: v1 +kind: Secret +metadata: + name: mysql-env + namespace: cbio-on-demand +data: + .env: TVlTUUxfUk9PVF9QQVNTV09SRD1QQHNzd29yZDEKTVlTUUxfVVNFUj1jYmlvCk1ZU1FMX1BBU1NXT1JEPVBAc3N3b3JkMQpNWVNRTF9EQVRBQkFTRT1jYmlvcG9ydGFsCgo= +type: Opaque -- GitLab