postgres-operator: bump to v1.9.0, helm chart v1.9.0
postgres-operator-ui: bump to v1.9.0, helm chart v1.9.0 astodon: bump to v4.1.2, helm chart v4.0.0
This commit is contained in:
parent
b0a01a4956
commit
8867ab5980
1
mastodon/.gitignore
vendored
Normal file
1
mastodon/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
charts/
|
@ -1,3 +1,17 @@
|
|||||||
|
# A helm chart's templates and default values can be packaged into a .tgz file.
|
||||||
|
# When doing that, not everything should be bundled into the .tgz file. This
|
||||||
|
# file describes what to not bundle.
|
||||||
|
#
|
||||||
|
# Manually added by us
|
||||||
|
# --------------------
|
||||||
|
#
|
||||||
|
dev-values.yaml
|
||||||
|
mastodon-*.tgz
|
||||||
|
|
||||||
|
|
||||||
|
# Boilerplate .helmignore from `helm create mastodon`
|
||||||
|
# ---------------------------------------------------
|
||||||
|
#
|
||||||
# Patterns to ignore when building packages.
|
# Patterns to ignore when building packages.
|
||||||
# This supports shell glob matching, relative path matching, and
|
# This supports shell glob matching, relative path matching, and
|
||||||
# negation (prefixed with !). Only one pattern per line.
|
# negation (prefixed with !). Only one pattern per line.
|
||||||
|
@ -15,23 +15,23 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# 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.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.3.0
|
version: 4.0.0
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# 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
|
# 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.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
appVersion: 3.5.3
|
appVersion: v4.1.2
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: elasticsearch
|
- name: elasticsearch
|
||||||
repository: https://charts.bitnami.com/bitnami
|
version: 19.6.0
|
||||||
version: 15.10.3
|
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
|
||||||
condition: elasticsearch.enabled
|
condition: elasticsearch.enabled
|
||||||
- name: postgresql
|
- name: postgresql
|
||||||
repository: https://charts.bitnami.com/bitnami
|
version: 12.2.7
|
||||||
version: 10.9.1
|
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
|
||||||
condition: postgresql.enabled
|
condition: postgresql.enabled
|
||||||
- name: redis
|
- name: redis
|
||||||
repository: https://charts.bitnami.com/bitnami
|
version: 17.9.3
|
||||||
version: 14.8.8
|
repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami
|
||||||
condition: redis.enabled
|
condition: redis.enabled
|
||||||
|
661
mastodon/LICENSE
Normal file
661
mastodon/LICENSE
Normal file
@ -0,0 +1,661 @@
|
|||||||
|
GNU AFFERO GENERAL PUBLIC LICENSE
|
||||||
|
Version 3, 19 November 2007
|
||||||
|
|
||||||
|
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The GNU Affero General Public License is a free, copyleft license for
|
||||||
|
software and other kinds of works, specifically designed to ensure
|
||||||
|
cooperation with the community in the case of network server software.
|
||||||
|
|
||||||
|
The licenses for most software and other practical works are designed
|
||||||
|
to take away your freedom to share and change the works. By contrast,
|
||||||
|
our General Public Licenses are intended to guarantee your freedom to
|
||||||
|
share and change all versions of a program--to make sure it remains free
|
||||||
|
software for all its users.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
them if you wish), that you receive source code or can get it if you
|
||||||
|
want it, that you can change the software or use pieces of it in new
|
||||||
|
free programs, and that you know you can do these things.
|
||||||
|
|
||||||
|
Developers that use our General Public Licenses protect your rights
|
||||||
|
with two steps: (1) assert copyright on the software, and (2) offer
|
||||||
|
you this License which gives you legal permission to copy, distribute
|
||||||
|
and/or modify the software.
|
||||||
|
|
||||||
|
A secondary benefit of defending all users' freedom is that
|
||||||
|
improvements made in alternate versions of the program, if they
|
||||||
|
receive widespread use, become available for other developers to
|
||||||
|
incorporate. Many developers of free software are heartened and
|
||||||
|
encouraged by the resulting cooperation. However, in the case of
|
||||||
|
software used on network servers, this result may fail to come about.
|
||||||
|
The GNU General Public License permits making a modified version and
|
||||||
|
letting the public access it on a server without ever releasing its
|
||||||
|
source code to the public.
|
||||||
|
|
||||||
|
The GNU Affero General Public License is designed specifically to
|
||||||
|
ensure that, in such cases, the modified source code becomes available
|
||||||
|
to the community. It requires the operator of a network server to
|
||||||
|
provide the source code of the modified version running there to the
|
||||||
|
users of that server. Therefore, public use of a modified version, on
|
||||||
|
a publicly accessible server, gives the public access to the source
|
||||||
|
code of the modified version.
|
||||||
|
|
||||||
|
An older license, called the Affero General Public License and
|
||||||
|
published by Affero, was designed to accomplish similar goals. This is
|
||||||
|
a different license, not a version of the Affero GPL, but Affero has
|
||||||
|
released a new version of the Affero GPL which permits relicensing under
|
||||||
|
this license.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
0. Definitions.
|
||||||
|
|
||||||
|
"This License" refers to version 3 of the GNU Affero General Public License.
|
||||||
|
|
||||||
|
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||||
|
works, such as semiconductor masks.
|
||||||
|
|
||||||
|
"The Program" refers to any copyrightable work licensed under this
|
||||||
|
License. Each licensee is addressed as "you". "Licensees" and
|
||||||
|
"recipients" may be individuals or organizations.
|
||||||
|
|
||||||
|
To "modify" a work means to copy from or adapt all or part of the work
|
||||||
|
in a fashion requiring copyright permission, other than the making of an
|
||||||
|
exact copy. The resulting work is called a "modified version" of the
|
||||||
|
earlier work or a work "based on" the earlier work.
|
||||||
|
|
||||||
|
A "covered work" means either the unmodified Program or a work based
|
||||||
|
on the Program.
|
||||||
|
|
||||||
|
To "propagate" a work means to do anything with it that, without
|
||||||
|
permission, would make you directly or secondarily liable for
|
||||||
|
infringement under applicable copyright law, except executing it on a
|
||||||
|
computer or modifying a private copy. Propagation includes copying,
|
||||||
|
distribution (with or without modification), making available to the
|
||||||
|
public, and in some countries other activities as well.
|
||||||
|
|
||||||
|
To "convey" a work means any kind of propagation that enables other
|
||||||
|
parties to make or receive copies. Mere interaction with a user through
|
||||||
|
a computer network, with no transfer of a copy, is not conveying.
|
||||||
|
|
||||||
|
An interactive user interface displays "Appropriate Legal Notices"
|
||||||
|
to the extent that it includes a convenient and prominently visible
|
||||||
|
feature that (1) displays an appropriate copyright notice, and (2)
|
||||||
|
tells the user that there is no warranty for the work (except to the
|
||||||
|
extent that warranties are provided), that licensees may convey the
|
||||||
|
work under this License, and how to view a copy of this License. If
|
||||||
|
the interface presents a list of user commands or options, such as a
|
||||||
|
menu, a prominent item in the list meets this criterion.
|
||||||
|
|
||||||
|
1. Source Code.
|
||||||
|
|
||||||
|
The "source code" for a work means the preferred form of the work
|
||||||
|
for making modifications to it. "Object code" means any non-source
|
||||||
|
form of a work.
|
||||||
|
|
||||||
|
A "Standard Interface" means an interface that either is an official
|
||||||
|
standard defined by a recognized standards body, or, in the case of
|
||||||
|
interfaces specified for a particular programming language, one that
|
||||||
|
is widely used among developers working in that language.
|
||||||
|
|
||||||
|
The "System Libraries" of an executable work include anything, other
|
||||||
|
than the work as a whole, that (a) is included in the normal form of
|
||||||
|
packaging a Major Component, but which is not part of that Major
|
||||||
|
Component, and (b) serves only to enable use of the work with that
|
||||||
|
Major Component, or to implement a Standard Interface for which an
|
||||||
|
implementation is available to the public in source code form. A
|
||||||
|
"Major Component", in this context, means a major essential component
|
||||||
|
(kernel, window system, and so on) of the specific operating system
|
||||||
|
(if any) on which the executable work runs, or a compiler used to
|
||||||
|
produce the work, or an object code interpreter used to run it.
|
||||||
|
|
||||||
|
The "Corresponding Source" for a work in object code form means all
|
||||||
|
the source code needed to generate, install, and (for an executable
|
||||||
|
work) run the object code and to modify the work, including scripts to
|
||||||
|
control those activities. However, it does not include the work's
|
||||||
|
System Libraries, or general-purpose tools or generally available free
|
||||||
|
programs which are used unmodified in performing those activities but
|
||||||
|
which are not part of the work. For example, Corresponding Source
|
||||||
|
includes interface definition files associated with source files for
|
||||||
|
the work, and the source code for shared libraries and dynamically
|
||||||
|
linked subprograms that the work is specifically designed to require,
|
||||||
|
such as by intimate data communication or control flow between those
|
||||||
|
subprograms and other parts of the work.
|
||||||
|
|
||||||
|
The Corresponding Source need not include anything that users
|
||||||
|
can regenerate automatically from other parts of the Corresponding
|
||||||
|
Source.
|
||||||
|
|
||||||
|
The Corresponding Source for a work in source code form is that
|
||||||
|
same work.
|
||||||
|
|
||||||
|
2. Basic Permissions.
|
||||||
|
|
||||||
|
All rights granted under this License are granted for the term of
|
||||||
|
copyright on the Program, and are irrevocable provided the stated
|
||||||
|
conditions are met. This License explicitly affirms your unlimited
|
||||||
|
permission to run the unmodified Program. The output from running a
|
||||||
|
covered work is covered by this License only if the output, given its
|
||||||
|
content, constitutes a covered work. This License acknowledges your
|
||||||
|
rights of fair use or other equivalent, as provided by copyright law.
|
||||||
|
|
||||||
|
You may make, run and propagate covered works that you do not
|
||||||
|
convey, without conditions so long as your license otherwise remains
|
||||||
|
in force. You may convey covered works to others for the sole purpose
|
||||||
|
of having them make modifications exclusively for you, or provide you
|
||||||
|
with facilities for running those works, provided that you comply with
|
||||||
|
the terms of this License in conveying all material for which you do
|
||||||
|
not control copyright. Those thus making or running the covered works
|
||||||
|
for you must do so exclusively on your behalf, under your direction
|
||||||
|
and control, on terms that prohibit them from making any copies of
|
||||||
|
your copyrighted material outside their relationship with you.
|
||||||
|
|
||||||
|
Conveying under any other circumstances is permitted solely under
|
||||||
|
the conditions stated below. Sublicensing is not allowed; section 10
|
||||||
|
makes it unnecessary.
|
||||||
|
|
||||||
|
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||||
|
|
||||||
|
No covered work shall be deemed part of an effective technological
|
||||||
|
measure under any applicable law fulfilling obligations under article
|
||||||
|
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||||
|
similar laws prohibiting or restricting circumvention of such
|
||||||
|
measures.
|
||||||
|
|
||||||
|
When you convey a covered work, you waive any legal power to forbid
|
||||||
|
circumvention of technological measures to the extent such circumvention
|
||||||
|
is effected by exercising rights under this License with respect to
|
||||||
|
the covered work, and you disclaim any intention to limit operation or
|
||||||
|
modification of the work as a means of enforcing, against the work's
|
||||||
|
users, your or third parties' legal rights to forbid circumvention of
|
||||||
|
technological measures.
|
||||||
|
|
||||||
|
4. Conveying Verbatim Copies.
|
||||||
|
|
||||||
|
You may convey verbatim copies of the Program's source code as you
|
||||||
|
receive it, in any medium, provided that you conspicuously and
|
||||||
|
appropriately publish on each copy an appropriate copyright notice;
|
||||||
|
keep intact all notices stating that this License and any
|
||||||
|
non-permissive terms added in accord with section 7 apply to the code;
|
||||||
|
keep intact all notices of the absence of any warranty; and give all
|
||||||
|
recipients a copy of this License along with the Program.
|
||||||
|
|
||||||
|
You may charge any price or no price for each copy that you convey,
|
||||||
|
and you may offer support or warranty protection for a fee.
|
||||||
|
|
||||||
|
5. Conveying Modified Source Versions.
|
||||||
|
|
||||||
|
You may convey a work based on the Program, or the modifications to
|
||||||
|
produce it from the Program, in the form of source code under the
|
||||||
|
terms of section 4, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The work must carry prominent notices stating that you modified
|
||||||
|
it, and giving a relevant date.
|
||||||
|
|
||||||
|
b) The work must carry prominent notices stating that it is
|
||||||
|
released under this License and any conditions added under section
|
||||||
|
7. This requirement modifies the requirement in section 4 to
|
||||||
|
"keep intact all notices".
|
||||||
|
|
||||||
|
c) You must license the entire work, as a whole, under this
|
||||||
|
License to anyone who comes into possession of a copy. This
|
||||||
|
License will therefore apply, along with any applicable section 7
|
||||||
|
additional terms, to the whole of the work, and all its parts,
|
||||||
|
regardless of how they are packaged. This License gives no
|
||||||
|
permission to license the work in any other way, but it does not
|
||||||
|
invalidate such permission if you have separately received it.
|
||||||
|
|
||||||
|
d) If the work has interactive user interfaces, each must display
|
||||||
|
Appropriate Legal Notices; however, if the Program has interactive
|
||||||
|
interfaces that do not display Appropriate Legal Notices, your
|
||||||
|
work need not make them do so.
|
||||||
|
|
||||||
|
A compilation of a covered work with other separate and independent
|
||||||
|
works, which are not by their nature extensions of the covered work,
|
||||||
|
and which are not combined with it such as to form a larger program,
|
||||||
|
in or on a volume of a storage or distribution medium, is called an
|
||||||
|
"aggregate" if the compilation and its resulting copyright are not
|
||||||
|
used to limit the access or legal rights of the compilation's users
|
||||||
|
beyond what the individual works permit. Inclusion of a covered work
|
||||||
|
in an aggregate does not cause this License to apply to the other
|
||||||
|
parts of the aggregate.
|
||||||
|
|
||||||
|
6. Conveying Non-Source Forms.
|
||||||
|
|
||||||
|
You may convey a covered work in object code form under the terms
|
||||||
|
of sections 4 and 5, provided that you also convey the
|
||||||
|
machine-readable Corresponding Source under the terms of this License,
|
||||||
|
in one of these ways:
|
||||||
|
|
||||||
|
a) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by the
|
||||||
|
Corresponding Source fixed on a durable physical medium
|
||||||
|
customarily used for software interchange.
|
||||||
|
|
||||||
|
b) Convey the object code in, or embodied in, a physical product
|
||||||
|
(including a physical distribution medium), accompanied by a
|
||||||
|
written offer, valid for at least three years and valid for as
|
||||||
|
long as you offer spare parts or customer support for that product
|
||||||
|
model, to give anyone who possesses the object code either (1) a
|
||||||
|
copy of the Corresponding Source for all the software in the
|
||||||
|
product that is covered by this License, on a durable physical
|
||||||
|
medium customarily used for software interchange, for a price no
|
||||||
|
more than your reasonable cost of physically performing this
|
||||||
|
conveying of source, or (2) access to copy the
|
||||||
|
Corresponding Source from a network server at no charge.
|
||||||
|
|
||||||
|
c) Convey individual copies of the object code with a copy of the
|
||||||
|
written offer to provide the Corresponding Source. This
|
||||||
|
alternative is allowed only occasionally and noncommercially, and
|
||||||
|
only if you received the object code with such an offer, in accord
|
||||||
|
with subsection 6b.
|
||||||
|
|
||||||
|
d) Convey the object code by offering access from a designated
|
||||||
|
place (gratis or for a charge), and offer equivalent access to the
|
||||||
|
Corresponding Source in the same way through the same place at no
|
||||||
|
further charge. You need not require recipients to copy the
|
||||||
|
Corresponding Source along with the object code. If the place to
|
||||||
|
copy the object code is a network server, the Corresponding Source
|
||||||
|
may be on a different server (operated by you or a third party)
|
||||||
|
that supports equivalent copying facilities, provided you maintain
|
||||||
|
clear directions next to the object code saying where to find the
|
||||||
|
Corresponding Source. Regardless of what server hosts the
|
||||||
|
Corresponding Source, you remain obligated to ensure that it is
|
||||||
|
available for as long as needed to satisfy these requirements.
|
||||||
|
|
||||||
|
e) Convey the object code using peer-to-peer transmission, provided
|
||||||
|
you inform other peers where the object code and Corresponding
|
||||||
|
Source of the work are being offered to the general public at no
|
||||||
|
charge under subsection 6d.
|
||||||
|
|
||||||
|
A separable portion of the object code, whose source code is excluded
|
||||||
|
from the Corresponding Source as a System Library, need not be
|
||||||
|
included in conveying the object code work.
|
||||||
|
|
||||||
|
A "User Product" is either (1) a "consumer product", which means any
|
||||||
|
tangible personal property which is normally used for personal, family,
|
||||||
|
or household purposes, or (2) anything designed or sold for incorporation
|
||||||
|
into a dwelling. In determining whether a product is a consumer product,
|
||||||
|
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||||
|
product received by a particular user, "normally used" refers to a
|
||||||
|
typical or common use of that class of product, regardless of the status
|
||||||
|
of the particular user or of the way in which the particular user
|
||||||
|
actually uses, or expects or is expected to use, the product. A product
|
||||||
|
is a consumer product regardless of whether the product has substantial
|
||||||
|
commercial, industrial or non-consumer uses, unless such uses represent
|
||||||
|
the only significant mode of use of the product.
|
||||||
|
|
||||||
|
"Installation Information" for a User Product means any methods,
|
||||||
|
procedures, authorization keys, or other information required to install
|
||||||
|
and execute modified versions of a covered work in that User Product from
|
||||||
|
a modified version of its Corresponding Source. The information must
|
||||||
|
suffice to ensure that the continued functioning of the modified object
|
||||||
|
code is in no case prevented or interfered with solely because
|
||||||
|
modification has been made.
|
||||||
|
|
||||||
|
If you convey an object code work under this section in, or with, or
|
||||||
|
specifically for use in, a User Product, and the conveying occurs as
|
||||||
|
part of a transaction in which the right of possession and use of the
|
||||||
|
User Product is transferred to the recipient in perpetuity or for a
|
||||||
|
fixed term (regardless of how the transaction is characterized), the
|
||||||
|
Corresponding Source conveyed under this section must be accompanied
|
||||||
|
by the Installation Information. But this requirement does not apply
|
||||||
|
if neither you nor any third party retains the ability to install
|
||||||
|
modified object code on the User Product (for example, the work has
|
||||||
|
been installed in ROM).
|
||||||
|
|
||||||
|
The requirement to provide Installation Information does not include a
|
||||||
|
requirement to continue to provide support service, warranty, or updates
|
||||||
|
for a work that has been modified or installed by the recipient, or for
|
||||||
|
the User Product in which it has been modified or installed. Access to a
|
||||||
|
network may be denied when the modification itself materially and
|
||||||
|
adversely affects the operation of the network or violates the rules and
|
||||||
|
protocols for communication across the network.
|
||||||
|
|
||||||
|
Corresponding Source conveyed, and Installation Information provided,
|
||||||
|
in accord with this section must be in a format that is publicly
|
||||||
|
documented (and with an implementation available to the public in
|
||||||
|
source code form), and must require no special password or key for
|
||||||
|
unpacking, reading or copying.
|
||||||
|
|
||||||
|
7. Additional Terms.
|
||||||
|
|
||||||
|
"Additional permissions" are terms that supplement the terms of this
|
||||||
|
License by making exceptions from one or more of its conditions.
|
||||||
|
Additional permissions that are applicable to the entire Program shall
|
||||||
|
be treated as though they were included in this License, to the extent
|
||||||
|
that they are valid under applicable law. If additional permissions
|
||||||
|
apply only to part of the Program, that part may be used separately
|
||||||
|
under those permissions, but the entire Program remains governed by
|
||||||
|
this License without regard to the additional permissions.
|
||||||
|
|
||||||
|
When you convey a copy of a covered work, you may at your option
|
||||||
|
remove any additional permissions from that copy, or from any part of
|
||||||
|
it. (Additional permissions may be written to require their own
|
||||||
|
removal in certain cases when you modify the work.) You may place
|
||||||
|
additional permissions on material, added by you to a covered work,
|
||||||
|
for which you have or can give appropriate copyright permission.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, for material you
|
||||||
|
add to a covered work, you may (if authorized by the copyright holders of
|
||||||
|
that material) supplement the terms of this License with terms:
|
||||||
|
|
||||||
|
a) Disclaiming warranty or limiting liability differently from the
|
||||||
|
terms of sections 15 and 16 of this License; or
|
||||||
|
|
||||||
|
b) Requiring preservation of specified reasonable legal notices or
|
||||||
|
author attributions in that material or in the Appropriate Legal
|
||||||
|
Notices displayed by works containing it; or
|
||||||
|
|
||||||
|
c) Prohibiting misrepresentation of the origin of that material, or
|
||||||
|
requiring that modified versions of such material be marked in
|
||||||
|
reasonable ways as different from the original version; or
|
||||||
|
|
||||||
|
d) Limiting the use for publicity purposes of names of licensors or
|
||||||
|
authors of the material; or
|
||||||
|
|
||||||
|
e) Declining to grant rights under trademark law for use of some
|
||||||
|
trade names, trademarks, or service marks; or
|
||||||
|
|
||||||
|
f) Requiring indemnification of licensors and authors of that
|
||||||
|
material by anyone who conveys the material (or modified versions of
|
||||||
|
it) with contractual assumptions of liability to the recipient, for
|
||||||
|
any liability that these contractual assumptions directly impose on
|
||||||
|
those licensors and authors.
|
||||||
|
|
||||||
|
All other non-permissive additional terms are considered "further
|
||||||
|
restrictions" within the meaning of section 10. If the Program as you
|
||||||
|
received it, or any part of it, contains a notice stating that it is
|
||||||
|
governed by this License along with a term that is a further
|
||||||
|
restriction, you may remove that term. If a license document contains
|
||||||
|
a further restriction but permits relicensing or conveying under this
|
||||||
|
License, you may add to a covered work material governed by the terms
|
||||||
|
of that license document, provided that the further restriction does
|
||||||
|
not survive such relicensing or conveying.
|
||||||
|
|
||||||
|
If you add terms to a covered work in accord with this section, you
|
||||||
|
must place, in the relevant source files, a statement of the
|
||||||
|
additional terms that apply to those files, or a notice indicating
|
||||||
|
where to find the applicable terms.
|
||||||
|
|
||||||
|
Additional terms, permissive or non-permissive, may be stated in the
|
||||||
|
form of a separately written license, or stated as exceptions;
|
||||||
|
the above requirements apply either way.
|
||||||
|
|
||||||
|
8. Termination.
|
||||||
|
|
||||||
|
You may not propagate or modify a covered work except as expressly
|
||||||
|
provided under this License. Any attempt otherwise to propagate or
|
||||||
|
modify it is void, and will automatically terminate your rights under
|
||||||
|
this License (including any patent licenses granted under the third
|
||||||
|
paragraph of section 11).
|
||||||
|
|
||||||
|
However, if you cease all violation of this License, then your
|
||||||
|
license from a particular copyright holder is reinstated (a)
|
||||||
|
provisionally, unless and until the copyright holder explicitly and
|
||||||
|
finally terminates your license, and (b) permanently, if the copyright
|
||||||
|
holder fails to notify you of the violation by some reasonable means
|
||||||
|
prior to 60 days after the cessation.
|
||||||
|
|
||||||
|
Moreover, your license from a particular copyright holder is
|
||||||
|
reinstated permanently if the copyright holder notifies you of the
|
||||||
|
violation by some reasonable means, this is the first time you have
|
||||||
|
received notice of violation of this License (for any work) from that
|
||||||
|
copyright holder, and you cure the violation prior to 30 days after
|
||||||
|
your receipt of the notice.
|
||||||
|
|
||||||
|
Termination of your rights under this section does not terminate the
|
||||||
|
licenses of parties who have received copies or rights from you under
|
||||||
|
this License. If your rights have been terminated and not permanently
|
||||||
|
reinstated, you do not qualify to receive new licenses for the same
|
||||||
|
material under section 10.
|
||||||
|
|
||||||
|
9. Acceptance Not Required for Having Copies.
|
||||||
|
|
||||||
|
You are not required to accept this License in order to receive or
|
||||||
|
run a copy of the Program. Ancillary propagation of a covered work
|
||||||
|
occurring solely as a consequence of using peer-to-peer transmission
|
||||||
|
to receive a copy likewise does not require acceptance. However,
|
||||||
|
nothing other than this License grants you permission to propagate or
|
||||||
|
modify any covered work. These actions infringe copyright if you do
|
||||||
|
not accept this License. Therefore, by modifying or propagating a
|
||||||
|
covered work, you indicate your acceptance of this License to do so.
|
||||||
|
|
||||||
|
10. Automatic Licensing of Downstream Recipients.
|
||||||
|
|
||||||
|
Each time you convey a covered work, the recipient automatically
|
||||||
|
receives a license from the original licensors, to run, modify and
|
||||||
|
propagate that work, subject to this License. You are not responsible
|
||||||
|
for enforcing compliance by third parties with this License.
|
||||||
|
|
||||||
|
An "entity transaction" is a transaction transferring control of an
|
||||||
|
organization, or substantially all assets of one, or subdividing an
|
||||||
|
organization, or merging organizations. If propagation of a covered
|
||||||
|
work results from an entity transaction, each party to that
|
||||||
|
transaction who receives a copy of the work also receives whatever
|
||||||
|
licenses to the work the party's predecessor in interest had or could
|
||||||
|
give under the previous paragraph, plus a right to possession of the
|
||||||
|
Corresponding Source of the work from the predecessor in interest, if
|
||||||
|
the predecessor has it or can get it with reasonable efforts.
|
||||||
|
|
||||||
|
You may not impose any further restrictions on the exercise of the
|
||||||
|
rights granted or affirmed under this License. For example, you may
|
||||||
|
not impose a license fee, royalty, or other charge for exercise of
|
||||||
|
rights granted under this License, and you may not initiate litigation
|
||||||
|
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||||
|
any patent claim is infringed by making, using, selling, offering for
|
||||||
|
sale, or importing the Program or any portion of it.
|
||||||
|
|
||||||
|
11. Patents.
|
||||||
|
|
||||||
|
A "contributor" is a copyright holder who authorizes use under this
|
||||||
|
License of the Program or a work on which the Program is based. The
|
||||||
|
work thus licensed is called the contributor's "contributor version".
|
||||||
|
|
||||||
|
A contributor's "essential patent claims" are all patent claims
|
||||||
|
owned or controlled by the contributor, whether already acquired or
|
||||||
|
hereafter acquired, that would be infringed by some manner, permitted
|
||||||
|
by this License, of making, using, or selling its contributor version,
|
||||||
|
but do not include claims that would be infringed only as a
|
||||||
|
consequence of further modification of the contributor version. For
|
||||||
|
purposes of this definition, "control" includes the right to grant
|
||||||
|
patent sublicenses in a manner consistent with the requirements of
|
||||||
|
this License.
|
||||||
|
|
||||||
|
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||||
|
patent license under the contributor's essential patent claims, to
|
||||||
|
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||||
|
propagate the contents of its contributor version.
|
||||||
|
|
||||||
|
In the following three paragraphs, a "patent license" is any express
|
||||||
|
agreement or commitment, however denominated, not to enforce a patent
|
||||||
|
(such as an express permission to practice a patent or covenant not to
|
||||||
|
sue for patent infringement). To "grant" such a patent license to a
|
||||||
|
party means to make such an agreement or commitment not to enforce a
|
||||||
|
patent against the party.
|
||||||
|
|
||||||
|
If you convey a covered work, knowingly relying on a patent license,
|
||||||
|
and the Corresponding Source of the work is not available for anyone
|
||||||
|
to copy, free of charge and under the terms of this License, through a
|
||||||
|
publicly available network server or other readily accessible means,
|
||||||
|
then you must either (1) cause the Corresponding Source to be so
|
||||||
|
available, or (2) arrange to deprive yourself of the benefit of the
|
||||||
|
patent license for this particular work, or (3) arrange, in a manner
|
||||||
|
consistent with the requirements of this License, to extend the patent
|
||||||
|
license to downstream recipients. "Knowingly relying" means you have
|
||||||
|
actual knowledge that, but for the patent license, your conveying the
|
||||||
|
covered work in a country, or your recipient's use of the covered work
|
||||||
|
in a country, would infringe one or more identifiable patents in that
|
||||||
|
country that you have reason to believe are valid.
|
||||||
|
|
||||||
|
If, pursuant to or in connection with a single transaction or
|
||||||
|
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||||
|
covered work, and grant a patent license to some of the parties
|
||||||
|
receiving the covered work authorizing them to use, propagate, modify
|
||||||
|
or convey a specific copy of the covered work, then the patent license
|
||||||
|
you grant is automatically extended to all recipients of the covered
|
||||||
|
work and works based on it.
|
||||||
|
|
||||||
|
A patent license is "discriminatory" if it does not include within
|
||||||
|
the scope of its coverage, prohibits the exercise of, or is
|
||||||
|
conditioned on the non-exercise of one or more of the rights that are
|
||||||
|
specifically granted under this License. You may not convey a covered
|
||||||
|
work if you are a party to an arrangement with a third party that is
|
||||||
|
in the business of distributing software, under which you make payment
|
||||||
|
to the third party based on the extent of your activity of conveying
|
||||||
|
the work, and under which the third party grants, to any of the
|
||||||
|
parties who would receive the covered work from you, a discriminatory
|
||||||
|
patent license (a) in connection with copies of the covered work
|
||||||
|
conveyed by you (or copies made from those copies), or (b) primarily
|
||||||
|
for and in connection with specific products or compilations that
|
||||||
|
contain the covered work, unless you entered into that arrangement,
|
||||||
|
or that patent license was granted, prior to 28 March 2007.
|
||||||
|
|
||||||
|
Nothing in this License shall be construed as excluding or limiting
|
||||||
|
any implied license or other defenses to infringement that may
|
||||||
|
otherwise be available to you under applicable patent law.
|
||||||
|
|
||||||
|
12. No Surrender of Others' Freedom.
|
||||||
|
|
||||||
|
If conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot convey a
|
||||||
|
covered work so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you may
|
||||||
|
not convey it at all. For example, if you agree to terms that obligate you
|
||||||
|
to collect a royalty for further conveying from those to whom you convey
|
||||||
|
the Program, the only way you could satisfy both those terms and this
|
||||||
|
License would be to refrain entirely from conveying the Program.
|
||||||
|
|
||||||
|
13. Remote Network Interaction; Use with the GNU General Public License.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, if you modify the
|
||||||
|
Program, your modified version must prominently offer all users
|
||||||
|
interacting with it remotely through a computer network (if your version
|
||||||
|
supports such interaction) an opportunity to receive the Corresponding
|
||||||
|
Source of your version by providing access to the Corresponding Source
|
||||||
|
from a network server at no charge, through some standard or customary
|
||||||
|
means of facilitating copying of software. This Corresponding Source
|
||||||
|
shall include the Corresponding Source for any work covered by version 3
|
||||||
|
of the GNU General Public License that is incorporated pursuant to the
|
||||||
|
following paragraph.
|
||||||
|
|
||||||
|
Notwithstanding any other provision of this License, you have
|
||||||
|
permission to link or combine any covered work with a work licensed
|
||||||
|
under version 3 of the GNU General Public License into a single
|
||||||
|
combined work, and to convey the resulting work. The terms of this
|
||||||
|
License will continue to apply to the part which is the covered work,
|
||||||
|
but the work with which it is combined will remain governed by version
|
||||||
|
3 of the GNU General Public License.
|
||||||
|
|
||||||
|
14. Revised Versions of this License.
|
||||||
|
|
||||||
|
The Free Software Foundation may publish revised and/or new versions of
|
||||||
|
the GNU Affero General Public License from time to time. Such new versions
|
||||||
|
will be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the
|
||||||
|
Program specifies that a certain numbered version of the GNU Affero General
|
||||||
|
Public License "or any later version" applies to it, you have the
|
||||||
|
option of following the terms and conditions either of that numbered
|
||||||
|
version or of any later version published by the Free Software
|
||||||
|
Foundation. If the Program does not specify a version number of the
|
||||||
|
GNU Affero General Public License, you may choose any version ever published
|
||||||
|
by the Free Software Foundation.
|
||||||
|
|
||||||
|
If the Program specifies that a proxy can decide which future
|
||||||
|
versions of the GNU Affero General Public License can be used, that proxy's
|
||||||
|
public statement of acceptance of a version permanently authorizes you
|
||||||
|
to choose that version for the Program.
|
||||||
|
|
||||||
|
Later license versions may give you additional or different
|
||||||
|
permissions. However, no additional obligations are imposed on any
|
||||||
|
author or copyright holder as a result of your choosing to follow a
|
||||||
|
later version.
|
||||||
|
|
||||||
|
15. Disclaimer of Warranty.
|
||||||
|
|
||||||
|
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||||
|
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||||
|
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||||
|
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||||
|
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||||
|
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||||
|
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. Limitation of Liability.
|
||||||
|
|
||||||
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||||
|
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||||
|
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||||
|
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||||
|
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||||
|
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||||
|
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGES.
|
||||||
|
|
||||||
|
17. Interpretation of Sections 15 and 16.
|
||||||
|
|
||||||
|
If the disclaimer of warranty and limitation of liability provided
|
||||||
|
above cannot be given local legal effect according to their terms,
|
||||||
|
reviewing courts shall apply local law that most closely approximates
|
||||||
|
an absolute waiver of all civil liability in connection with the
|
||||||
|
Program, unless a warranty or assumption of liability accompanies a
|
||||||
|
copy of the Program in return for a fee.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
state the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Affero General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU Affero General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Affero General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If your software can interact with users remotely through a computer
|
||||||
|
network, you should also make sure that it provides a way for users to
|
||||||
|
get its source. For example, if your program is a web application, its
|
||||||
|
interface could display a "Source" link that leads users to an archive
|
||||||
|
of the code. There are many ways you could offer source, and different
|
||||||
|
solutions will be better for different programs; see section 13 for the
|
||||||
|
specific requirements.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or school,
|
||||||
|
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||||
|
For more information on this, and how to apply and follow the GNU AGPL, see
|
||||||
|
<http://www.gnu.org/licenses/>.
|
120
mastodon/README.md
Normal file
120
mastodon/README.md
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
# Introduction
|
||||||
|
|
||||||
|
This is a [Helm](https://helm.sh/) chart for installing Mastodon into a
|
||||||
|
Kubernetes cluster. The basic usage is:
|
||||||
|
|
||||||
|
1. edit `values.yaml` or create a separate yaml file for custom values
|
||||||
|
1. `helm dep update`
|
||||||
|
1. `helm install --namespace mastodon --create-namespace my-mastodon ./ -f path/to/additional/values.yaml`
|
||||||
|
|
||||||
|
This chart is tested with k8s 1.21+ and helm 3.6.0+.
|
||||||
|
|
||||||
|
# Configuration
|
||||||
|
|
||||||
|
The variables that _must_ be configured are:
|
||||||
|
|
||||||
|
- password and keys in the `mastodon.secrets`, `postgresql`, and `redis` groups; if
|
||||||
|
left blank, some of those values will be autogenerated, but will not persist
|
||||||
|
across upgrades.
|
||||||
|
|
||||||
|
- SMTP settings for your mailer in the `mastodon.smtp` group.
|
||||||
|
|
||||||
|
If your PersistentVolumeClaim is `ReadWriteOnce` and you're unable to use a S3-compatible service or
|
||||||
|
run a self-hosted compatible service like [Minio](https://min.io/docs/minio/kubernetes/upstream/index.html)
|
||||||
|
then you need to set the pod affinity so the web and sidekiq pods are scheduled to the same node.
|
||||||
|
|
||||||
|
Example configuration:
|
||||||
|
```yaml
|
||||||
|
podAffinity:
|
||||||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- labelSelector:
|
||||||
|
matchExpressions:
|
||||||
|
- key: app.kubernetes.io/part-of
|
||||||
|
operator: In
|
||||||
|
values:
|
||||||
|
- rails
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
|
```
|
||||||
|
|
||||||
|
# Administration
|
||||||
|
|
||||||
|
You can run [admin CLI](https://docs.joinmastodon.org/admin/tootctl/) commands in the web deployment.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
kubectl -n mastodon exec -it deployment/mastodon-web -- bash
|
||||||
|
tootctl accounts modify admin --reset-password
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
```bash
|
||||||
|
kubectl -n mastodon exec -it deployment/mastodon-web -- tootctl accounts modify admin --reset-password
|
||||||
|
```
|
||||||
|
|
||||||
|
# Missing features
|
||||||
|
|
||||||
|
Currently this chart does _not_ support:
|
||||||
|
|
||||||
|
- Hidden services
|
||||||
|
- Swift
|
||||||
|
|
||||||
|
# Upgrading
|
||||||
|
|
||||||
|
Because database migrations are managed as a Job separate from the Rails and
|
||||||
|
Sidekiq deployments, it’s possible they will occur in the wrong order. After
|
||||||
|
upgrading Mastodon versions, it may sometimes be necessary to manually delete
|
||||||
|
the Rails and Sidekiq pods so that they are recreated against the latest
|
||||||
|
migration.
|
||||||
|
|
||||||
|
# Upgrades in 2.1.0
|
||||||
|
|
||||||
|
## ingressClassName and tls-acme changes
|
||||||
|
The annotations previously defaulting to nginx have been removed and support
|
||||||
|
for ingressClassName has been added.
|
||||||
|
```yaml
|
||||||
|
ingress:
|
||||||
|
annotations:
|
||||||
|
kubernetes.io/ingress.class: nginx
|
||||||
|
kubernetes.io/tls-acme: "true"
|
||||||
|
```
|
||||||
|
|
||||||
|
To restore the old functionality simply add the above snippet to your `values.yaml`,
|
||||||
|
but the recommendation is to replace these with `ingress.ingressClassName` and use
|
||||||
|
cert-manager's issuer/cluster-issuer instead of tls-acme.
|
||||||
|
If you're uncertain about your current setup leave `ingressClassName` empty and add
|
||||||
|
`kubernetes.io/tls-acme` to `ingress.annotations` in your `values.yaml`.
|
||||||
|
|
||||||
|
# Upgrades in 2.0.0
|
||||||
|
|
||||||
|
## Fixed labels
|
||||||
|
Because of the changes in [#19706](https://github.com/mastodon/mastodon/pull/19706) the upgrade may fail with the following error:
|
||||||
|
```Error: UPGRADE FAILED: cannot patch "mastodon-sidekiq"```
|
||||||
|
|
||||||
|
If you want an easy upgrade and you're comfortable with some downtime then
|
||||||
|
simply delete the -sidekiq, -web, and -streaming Deployments manually.
|
||||||
|
|
||||||
|
If you require a no-downtime upgrade then:
|
||||||
|
1. run `helm template` instead of `helm upgrade`
|
||||||
|
2. Copy the new -web and -streaming services into `services.yml`
|
||||||
|
3. Copy the new -web and -streaming deployments into `deployments.yml`
|
||||||
|
4. Append -temp to the name of each deployment in `deployments.yml`
|
||||||
|
5. `kubectl apply -f deployments.yml` then wait until all pods are ready
|
||||||
|
6. `kubectl apply -f services.yml`
|
||||||
|
7. Delete the old -sidekiq, -web, and -streaming deployments manually
|
||||||
|
8. `helm upgrade` like normal
|
||||||
|
9. `kubectl delete -f deployments.yml` to clear out the temporary deployments
|
||||||
|
|
||||||
|
## PostgreSQL passwords
|
||||||
|
If you've previously installed the chart and you're having problems with
|
||||||
|
postgres not accepting your password then make sure to set `username` to
|
||||||
|
`postgres` and `password` and `postgresPassword` to the same passwords.
|
||||||
|
```yaml
|
||||||
|
postgresql:
|
||||||
|
auth:
|
||||||
|
username: postgres
|
||||||
|
password: <same password>
|
||||||
|
postgresPassword: <same password>
|
||||||
|
```
|
||||||
|
|
||||||
|
And make sure to set `password` to the same value as `postgres-password`
|
||||||
|
in your `mastodon-postgresql` secret:
|
||||||
|
```kubectl edit secret mastodon-postgresql```
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
25
mastodon/dev-values.yaml
Normal file
25
mastodon/dev-values.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# Chart values used for testing the Helm chart.
|
||||||
|
#
|
||||||
|
mastodon:
|
||||||
|
secrets:
|
||||||
|
secret_key_base: dummy-secret_key_base
|
||||||
|
otp_secret: dummy-otp_secret
|
||||||
|
vapid:
|
||||||
|
private_key: dummy-vapid-private_key
|
||||||
|
public_key: dummy-vapid-public_key
|
||||||
|
|
||||||
|
# ref: https://github.com/bitnami/charts/tree/main/bitnami/redis#parameters
|
||||||
|
redis:
|
||||||
|
replica:
|
||||||
|
replicaCount: 1
|
||||||
|
|
||||||
|
# ref: https://github.com/bitnami/charts/tree/main/bitnami/elasticsearch#parameters
|
||||||
|
elasticsearch:
|
||||||
|
master:
|
||||||
|
replicaCount: 1
|
||||||
|
data:
|
||||||
|
replicaCount: 1
|
||||||
|
coordinating:
|
||||||
|
replicaCount: 1
|
||||||
|
ingest:
|
||||||
|
replicaCount: 1
|
@ -1,37 +0,0 @@
|
|||||||
# Introduction
|
|
||||||
|
|
||||||
This is a [Helm](https://helm.sh/) chart for installing Mastodon into a
|
|
||||||
Kubernetes cluster. The basic usage is:
|
|
||||||
|
|
||||||
1. edit `values.yaml` or create a separate yaml file for custom values
|
|
||||||
1. `helm dep update`
|
|
||||||
1. `helm install --namespace mastodon --create-namespace my-mastodon ./ -f path/to/additional/values.yaml`
|
|
||||||
|
|
||||||
This chart has been tested on Helm 3.0.1 and above.
|
|
||||||
|
|
||||||
# Configuration
|
|
||||||
|
|
||||||
The variables that _must_ be configured are:
|
|
||||||
|
|
||||||
- password and keys in the `mastodon.secrets`, `postgresql`, and `redis` groups; if
|
|
||||||
left blank, some of those values will be autogenerated, but will not persist
|
|
||||||
across upgrades.
|
|
||||||
|
|
||||||
- SMTP settings for your mailer in the `mastodon.smtp` group.
|
|
||||||
|
|
||||||
# Missing features
|
|
||||||
|
|
||||||
Currently this chart does _not_ support:
|
|
||||||
|
|
||||||
- Hidden services
|
|
||||||
- Single Sign-On
|
|
||||||
- Swift
|
|
||||||
- configurations using `WEB_DOMAIN`
|
|
||||||
|
|
||||||
# Upgrading
|
|
||||||
|
|
||||||
Because database migrations are managed as a Job separate from the Rails and
|
|
||||||
Sidekiq deployments, it’s possible they will occur in the wrong order. After
|
|
||||||
upgrading Mastodon versions, it may sometimes be necessary to manually delete
|
|
||||||
the Rails and Sidekiq pods so that they are recreated against the latest
|
|
||||||
migration.
|
|
@ -51,6 +51,17 @@ app.kubernetes.io/name: {{ include "mastodon.name" . }}
|
|||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Rolling pod annotations
|
||||||
|
*/}}
|
||||||
|
{{- define "mastodon.rollingPodAnnotations" -}}
|
||||||
|
{{- if .Values.revisionPodAnnotation }}
|
||||||
|
rollme: {{ .Release.Revision | quote }}
|
||||||
|
{{- end }}
|
||||||
|
checksum/config-secrets: {{ include ( print $.Template.BasePath "/secrets.yaml" ) . | sha256sum | quote }}
|
||||||
|
checksum/config-configmap: {{ include ( print $.Template.BasePath "/configmap-env.yaml" ) . | sha256sum | quote }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create the name of the service account to use
|
Create the name of the service account to use
|
||||||
*/}}
|
*/}}
|
||||||
@ -77,3 +88,76 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
|
|||||||
{{- define "mastodon.postgresql.fullname" -}}
|
{{- define "mastodon.postgresql.fullname" -}}
|
||||||
{{- printf "%s-%s" .Release.Name "postgresql" | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-%s" .Release.Name "postgresql" | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Get the mastodon secret.
|
||||||
|
*/}}
|
||||||
|
{{- define "mastodon.secretName" -}}
|
||||||
|
{{- if .Values.mastodon.secrets.existingSecret }}
|
||||||
|
{{- printf "%s" (tpl .Values.mastodon.secrets.existingSecret $) -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s" (include "common.names.fullname" .) -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Get the smtp secret.
|
||||||
|
*/}}
|
||||||
|
{{- define "mastodon.smtp.secretName" -}}
|
||||||
|
{{- if .Values.mastodon.smtp.existingSecret }}
|
||||||
|
{{- printf "%s" (tpl .Values.mastodon.smtp.existingSecret $) -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s-smtp" (include "common.names.fullname" .) -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Get the postgresql secret.
|
||||||
|
*/}}
|
||||||
|
{{- define "mastodon.postgresql.secretName" -}}
|
||||||
|
{{- if (and (or .Values.postgresql.enabled .Values.postgresql.postgresqlHostname) .Values.postgresql.auth.existingSecret) }}
|
||||||
|
{{- printf "%s" (tpl .Values.postgresql.auth.existingSecret $) -}}
|
||||||
|
{{- else if .Values.postgresql.enabled -}}
|
||||||
|
{{- printf "%s-postgresql" (tpl .Release.Name $) -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s" (include "common.names.fullname" .) -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Get the redis secret.
|
||||||
|
*/}}
|
||||||
|
{{- define "mastodon.redis.secretName" -}}
|
||||||
|
{{- if .Values.redis.auth.existingSecret }}
|
||||||
|
{{- printf "%s" (tpl .Values.redis.auth.existingSecret $) -}}
|
||||||
|
{{- else if .Values.redis.existingSecret }}
|
||||||
|
{{- printf "%s" (tpl .Values.redis.existingSecret $) -}}
|
||||||
|
{{- else -}}
|
||||||
|
{{- printf "%s-redis" (tpl .Release.Name $) -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Return true if a mastodon secret object should be created
|
||||||
|
*/}}
|
||||||
|
{{- define "mastodon.createSecret" -}}
|
||||||
|
{{- if (or
|
||||||
|
(and .Values.mastodon.s3.enabled (not .Values.mastodon.s3.existingSecret))
|
||||||
|
(not .Values.mastodon.secrets.existingSecret )
|
||||||
|
(and (not .Values.postgresql.enabled) (not .Values.postgresql.auth.existingSecret))
|
||||||
|
) -}}
|
||||||
|
{{- true -}}
|
||||||
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Find highest number of needed database connections to set DB_POOL variable
|
||||||
|
*/}}
|
||||||
|
{{- define "mastodon.maxDbPool" -}}
|
||||||
|
{{/* Default MAX_THREADS for Puma is 5 */}}
|
||||||
|
{{- $poolSize := 5 }}
|
||||||
|
{{- range .Values.mastodon.sidekiq.workers }}
|
||||||
|
{{- $poolSize = max $poolSize .concurrency }}
|
||||||
|
{{- end }}
|
||||||
|
{{- $poolSize | quote }}
|
||||||
|
{{- end }}
|
||||||
|
@ -7,82 +7,100 @@ metadata:
|
|||||||
data:
|
data:
|
||||||
{{- if .Values.postgresql.enabled }}
|
{{- if .Values.postgresql.enabled }}
|
||||||
DB_HOST: {{ template "mastodon.postgresql.fullname" . }}
|
DB_HOST: {{ template "mastodon.postgresql.fullname" . }}
|
||||||
|
DB_PORT: "5432"
|
||||||
{{- else }}
|
{{- else }}
|
||||||
DB_HOST: {{ .Values.postgresql.postgresqlHostname }}
|
DB_HOST: {{ .Values.postgresql.postgresqlHostname }}
|
||||||
|
DB_PORT: {{ .Values.postgresql.postgresqlPort | default "5432" | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
DB_NAME: {{ .Values.postgresql.postgresqlDatabase }}
|
DB_NAME: {{ .Values.postgresql.auth.database }}
|
||||||
DB_POOL: {{ .Values.mastodon.sidekiq.concurrency | quote }}
|
DB_POOL: {{ include "mastodon.maxDbPool" . }}
|
||||||
DB_PORT: "5432"
|
DB_USER: {{ .Values.postgresql.auth.username }}
|
||||||
DB_USER: {{ .Values.postgresql.postgresqlUsername }}
|
PREPARED_STATEMENTS: {{ .Values.mastodon.preparedStatements | quote }}
|
||||||
DEFAULT_LOCALE: {{ .Values.mastodon.locale }}
|
DEFAULT_LOCALE: {{ .Values.mastodon.locale }}
|
||||||
{{- if .Values.elasticsearch.enabled }}
|
{{- if .Values.elasticsearch.enabled }}
|
||||||
ES_ENABLED: "true"
|
ES_ENABLED: "true"
|
||||||
ES_HOST: {{ template "mastodon.elasticsearch.fullname" . }}-master
|
ES_HOST: {{ template "mastodon.elasticsearch.fullname" . }}-master-hl
|
||||||
ES_PORT: "9200"
|
ES_PORT: "9200"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
LOCAL_DOMAIN: {{ .Values.mastodon.local_domain }}
|
LOCAL_DOMAIN: {{ .Values.mastodon.local_domain }}
|
||||||
{{- if .Values.mastodon.web_domain }}
|
{{- with .Values.mastodon.web_domain }}
|
||||||
WEB_DOMAIN: {{ .Values.mastodon.web_domain }}
|
WEB_DOMAIN: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.mastodon.singleUserMode }}
|
||||||
|
SINGLE_USER_MODE: "true"
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.mastodon.authorizedFetch }}
|
||||||
|
AUTHORIZED_FETCH: {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.mastodon.limitedFederationMode }}
|
||||||
|
LIMITED_FEDERATION_MODE: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
# https://devcenter.heroku.com/articles/tuning-glibc-memory-behavior
|
# https://devcenter.heroku.com/articles/tuning-glibc-memory-behavior
|
||||||
MALLOC_ARENA_MAX: "2"
|
MALLOC_ARENA_MAX: "2"
|
||||||
NODE_ENV: "production"
|
NODE_ENV: "production"
|
||||||
RAILS_ENV: "production"
|
RAILS_ENV: "production"
|
||||||
|
{{- if .Values.redis.enabled }}
|
||||||
REDIS_HOST: {{ template "mastodon.redis.fullname" . }}-master
|
REDIS_HOST: {{ template "mastodon.redis.fullname" . }}-master
|
||||||
REDIS_PORT: "6379"
|
{{- else }}
|
||||||
|
REDIS_HOST: {{ required "When the redis chart is disabled .Values.redis.hostname is required" .Values.redis.hostname }}
|
||||||
|
{{- end }}
|
||||||
|
REDIS_PORT: {{ .Values.redis.port | default "6379" | quote }}
|
||||||
{{- if .Values.mastodon.s3.enabled }}
|
{{- if .Values.mastodon.s3.enabled }}
|
||||||
S3_BUCKET: {{ .Values.mastodon.s3.bucket }}
|
S3_BUCKET: {{ .Values.mastodon.s3.bucket }}
|
||||||
S3_ENABLED: "true"
|
S3_ENABLED: "true"
|
||||||
S3_ENDPOINT: {{ .Values.mastodon.s3.endpoint }}
|
S3_ENDPOINT: {{ .Values.mastodon.s3.endpoint }}
|
||||||
S3_HOSTNAME: {{ .Values.mastodon.s3.hostname }}
|
S3_HOSTNAME: {{ .Values.mastodon.s3.hostname }}
|
||||||
S3_PROTOCOL: "https"
|
S3_PROTOCOL: "https"
|
||||||
{{- if .Values.mastodon.s3.region }}
|
{{- if .Values.mastodon.s3.permission }}
|
||||||
S3_REGION: {{ .Values.mastodon.s3.region }}
|
S3_PERMISSION: {{ .Values.mastodon.s3.permission }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.s3.alias_host }}
|
{{- with .Values.mastodon.s3.region }}
|
||||||
S3_ALIAS_HOST: {{ .Values.mastodon.s3.alias_host}}
|
S3_REGION: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.mastodon.s3.alias_host }}
|
||||||
|
S3_ALIAS_HOST: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.auth_method }}
|
{{- with .Values.mastodon.smtp.auth_method }}
|
||||||
SMTP_AUTH_METHOD: {{ .Values.mastodon.smtp.auth_method }}
|
SMTP_AUTH_METHOD: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.ca_file }}
|
{{- with .Values.mastodon.smtp.ca_file }}
|
||||||
SMTP_CA_FILE: {{ .Values.mastodon.smtp.ca_file }}
|
SMTP_CA_FILE: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.delivery_method }}
|
{{- with .Values.mastodon.smtp.delivery_method }}
|
||||||
SMTP_DELIVERY_METHOD: {{ .Values.mastodon.smtp.delivery_method }}
|
SMTP_DELIVERY_METHOD: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.domain }}
|
{{- with .Values.mastodon.smtp.domain }}
|
||||||
SMTP_DOMAIN: {{ .Values.mastodon.smtp.domain }}
|
SMTP_DOMAIN: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.enable_starttls_auto }}
|
{{- with .Values.mastodon.smtp.enable_starttls }}
|
||||||
SMTP_ENABLE_STARTTLS_AUTO: {{ .Values.mastodon.smtp.enable_starttls_auto | quote }}
|
SMTP_ENABLE_STARTTLS: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.from_address }}
|
{{- with .Values.mastodon.smtp.enable_starttls_auto }}
|
||||||
SMTP_FROM_ADDRESS: {{ .Values.mastodon.smtp.from_address }}
|
SMTP_ENABLE_STARTTLS_AUTO: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.login }}
|
{{- with .Values.mastodon.smtp.from_address }}
|
||||||
SMTP_LOGIN: {{ .Values.mastodon.smtp.login }}
|
SMTP_FROM_ADDRESS: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.openssl_verify_mode }}
|
{{- with .Values.mastodon.smtp.openssl_verify_mode }}
|
||||||
SMTP_OPENSSL_VERIFY_MODE: {{ .Values.mastodon.smtp.openssl_verify_mode }}
|
SMTP_OPENSSL_VERIFY_MODE: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.password }}
|
{{- with .Values.mastodon.smtp.port }}
|
||||||
SMTP_PASSWORD: {{ .Values.mastodon.smtp.password }}
|
SMTP_PORT: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.port }}
|
{{- with .Values.mastodon.smtp.reply_to }}
|
||||||
SMTP_PORT: {{ .Values.mastodon.smtp.port | quote }}
|
SMTP_REPLY_TO: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.reply_to }}
|
{{- with .Values.mastodon.smtp.server }}
|
||||||
SMTP_REPLY_TO: {{ .Values.mastodon.smtp.reply_to }}
|
SMTP_SERVER: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.mastodon.smtp.server }}
|
{{- with .Values.mastodon.smtp.tls }}
|
||||||
SMTP_SERVER: {{ .Values.mastodon.smtp.server }}
|
SMTP_TLS: {{ . | quote }}
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.mastodon.smtp.tls }}
|
|
||||||
SMTP_TLS: {{ .Values.mastodon.smtp.tls | quote }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
STREAMING_CLUSTER_NUM: {{ .Values.mastodon.streaming.workers | quote }}
|
STREAMING_CLUSTER_NUM: {{ .Values.mastodon.streaming.workers | quote }}
|
||||||
|
{{- with .Values.mastodon.streaming.base_url }}
|
||||||
|
STREAMING_API_BASE_URL: {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.enabled }}
|
{{- if .Values.externalAuth.oidc.enabled }}
|
||||||
OIDC_ENABLED: {{ .Values.externalAuth.oidc.enabled | quote }}
|
OIDC_ENABLED: {{ .Values.externalAuth.oidc.enabled | quote }}
|
||||||
OIDC_DISPLAY_NAME: {{ .Values.externalAuth.oidc.display_name }}
|
OIDC_DISPLAY_NAME: {{ .Values.externalAuth.oidc.display_name }}
|
||||||
@ -94,53 +112,53 @@ data:
|
|||||||
OIDC_CLIENT_SECRET: {{ .Values.externalAuth.oidc.client_secret }}
|
OIDC_CLIENT_SECRET: {{ .Values.externalAuth.oidc.client_secret }}
|
||||||
OIDC_REDIRECT_URI: {{ .Values.externalAuth.oidc.redirect_uri }}
|
OIDC_REDIRECT_URI: {{ .Values.externalAuth.oidc.redirect_uri }}
|
||||||
OIDC_SECURITY_ASSUME_EMAIL_IS_VERIFIED: {{ .Values.externalAuth.oidc.assume_email_is_verified | quote }}
|
OIDC_SECURITY_ASSUME_EMAIL_IS_VERIFIED: {{ .Values.externalAuth.oidc.assume_email_is_verified | quote }}
|
||||||
{{- if .Values.externalAuth.oidc.client_auth_method }}
|
{{- with .Values.externalAuth.oidc.client_auth_method }}
|
||||||
OIDC_CLIENT_AUTH_METHOD: {{ .Values.externalAuth.oidc.client_auth_method }}
|
OIDC_CLIENT_AUTH_METHOD: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.response_type }}
|
{{- with .Values.externalAuth.oidc.response_type }}
|
||||||
OIDC_RESPONSE_TYPE: {{ .Values.externalAuth.oidc.response_type }}
|
OIDC_RESPONSE_TYPE: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.response_mode }}
|
{{- with .Values.externalAuth.oidc.response_mode }}
|
||||||
OIDC_RESPONSE_MODE: {{ .Values.externalAuth.oidc.response_mode }}
|
OIDC_RESPONSE_MODE: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.display }}
|
{{- with .Values.externalAuth.oidc.display }}
|
||||||
OIDC_DISPLAY: {{ .Values.externalAuth.oidc.display }}
|
OIDC_DISPLAY: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.prompt }}
|
{{- with .Values.externalAuth.oidc.prompt }}
|
||||||
OIDC_PROMPT: {{ .Values.externalAuth.oidc.prompt }}
|
OIDC_PROMPT: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.send_nonce }}
|
{{- with .Values.externalAuth.oidc.send_nonce }}
|
||||||
OIDC_SEND_NONCE: {{ .Values.externalAuth.oidc.send_nonce }}
|
OIDC_SEND_NONCE: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.send_scope_to_token_endpoint }}
|
{{- with .Values.externalAuth.oidc.send_scope_to_token_endpoint }}
|
||||||
OIDC_SEND_SCOPE_TO_TOKEN_ENDPOINT: {{ .Values.externalAuth.oidc.send_scope_to_token_endpoint | quote }}
|
OIDC_SEND_SCOPE_TO_TOKEN_ENDPOINT: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.idp_logout_redirect_uri }}
|
{{- with .Values.externalAuth.oidc.idp_logout_redirect_uri }}
|
||||||
OIDC_IDP_LOGOUT_REDIRECT_URI: {{ .Values.externalAuth.oidc.idp_logout_redirect_uri }}
|
OIDC_IDP_LOGOUT_REDIRECT_URI: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.http_scheme }}
|
{{- with .Values.externalAuth.oidc.http_scheme }}
|
||||||
OIDC_HTTP_SCHEME: {{ .Values.externalAuth.oidc.http_scheme }}
|
OIDC_HTTP_SCHEME: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.host }}
|
{{- with .Values.externalAuth.oidc.host }}
|
||||||
OIDC_HOST: {{ .Values.externalAuth.oidc.host }}
|
OIDC_HOST: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.port }}
|
{{- with .Values.externalAuth.oidc.port }}
|
||||||
OIDC_PORT: {{ .Values.externalAuth.oidc.port }}
|
OIDC_PORT: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.jwks_uri }}
|
{{- with .Values.externalAuth.oidc.jwks_uri }}
|
||||||
OIDC_JWKS_URI: {{ .Values.externalAuth.oidc.jwks_uri }}
|
OIDC_JWKS_URI: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.auth_endpoint }}
|
{{- with .Values.externalAuth.oidc.auth_endpoint }}
|
||||||
OIDC_AUTH_ENDPOINT: {{ .Values.externalAuth.oidc.auth_endpoint }}
|
OIDC_AUTH_ENDPOINT: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.token_endpoint }}
|
{{- with .Values.externalAuth.oidc.token_endpoint }}
|
||||||
OIDC_TOKEN_ENDPOINT: {{ .Values.externalAuth.oidc.token_endpoint }}
|
OIDC_TOKEN_ENDPOINT: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.user_info_endpoint }}
|
{{- with .Values.externalAuth.oidc.user_info_endpoint }}
|
||||||
OIDC_USER_INFO_ENDPOINT: {{ .Values.externalAuth.oidc.user_info_endpoint }}
|
OIDC_USER_INFO_ENDPOINT: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oidc.end_session_endpoint }}
|
{{- with .Values.externalAuth.oidc.end_session_endpoint }}
|
||||||
OIDC_END_SESSION_ENDPOINT: {{ .Values.externalAuth.oidc.end_session_endpoint }}
|
OIDC_END_SESSION_ENDPOINT: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.enabled }}
|
{{- if .Values.externalAuth.saml.enabled }}
|
||||||
@ -149,54 +167,54 @@ data:
|
|||||||
SAML_ISSUER: {{ .Values.externalAuth.saml.issuer }}
|
SAML_ISSUER: {{ .Values.externalAuth.saml.issuer }}
|
||||||
SAML_IDP_SSO_TARGET_URL: {{ .Values.externalAuth.saml.idp_sso_target_url }}
|
SAML_IDP_SSO_TARGET_URL: {{ .Values.externalAuth.saml.idp_sso_target_url }}
|
||||||
SAML_IDP_CERT: {{ .Values.externalAuth.saml.idp_cert | quote }}
|
SAML_IDP_CERT: {{ .Values.externalAuth.saml.idp_cert | quote }}
|
||||||
{{- if .Values.externalAuth.saml.idp_cert_fingerprint }}
|
{{- with .Values.externalAuth.saml.idp_cert_fingerprint }}
|
||||||
SAML_IDP_CERT_FINGERPRINT: {{ .Values.externalAuth.saml.idp_cert_fingerprint | quote }}
|
SAML_IDP_CERT_FINGERPRINT: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.name_identifier_format }}
|
{{- with .Values.externalAuth.saml.name_identifier_format }}
|
||||||
SAML_NAME_IDENTIFIER_FORMAT: {{ .Values.externalAuth.saml.name_identifier_format }}
|
SAML_NAME_IDENTIFIER_FORMAT: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.cert }}
|
{{- with .Values.externalAuth.saml.cert }}
|
||||||
SAML_CERT: {{ .Values.externalAuth.saml.cert | quote }}
|
SAML_CERT: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.private_key }}
|
{{- with .Values.externalAuth.saml.private_key }}
|
||||||
SAML_PRIVATE_KEY: {{ .Values.externalAuth.saml.private_key | quote }}
|
SAML_PRIVATE_KEY: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.want_assertion_signed }}
|
{{- with .Values.externalAuth.saml.want_assertion_signed }}
|
||||||
SAML_SECURITY_WANT_ASSERTION_SIGNED: {{ .Values.externalAuth.saml.want_assertion_signed | quote }}
|
SAML_SECURITY_WANT_ASSERTION_SIGNED: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.want_assertion_encrypted }}
|
{{- with .Values.externalAuth.saml.want_assertion_encrypted }}
|
||||||
SAML_SECURITY_WANT_ASSERTION_ENCRYPTED: {{ .Values.externalAuth.saml.want_assertion_encrypted | quote }}
|
SAML_SECURITY_WANT_ASSERTION_ENCRYPTED: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.assume_email_is_verified }}
|
{{- with .Values.externalAuth.saml.assume_email_is_verified }}
|
||||||
SAML_SECURITY_ASSUME_EMAIL_IS_VERIFIED: {{ .Values.externalAuth.saml.assume_email_is_verified | quote }}
|
SAML_SECURITY_ASSUME_EMAIL_IS_VERIFIED: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.uid_attribute }}
|
{{- with .Values.externalAuth.saml.uid_attribute }}
|
||||||
SAML_UID_ATTRIBUTE: {{ .Values.externalAuth.saml.uid_attribute }}
|
SAML_UID_ATTRIBUTE: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.attributes_statements.uid }}
|
{{- with .Values.externalAuth.saml.attributes_statements.uid }}
|
||||||
SAML_ATTRIBUTES_STATEMENTS_UID: {{ .Values.externalAuth.saml.attributes_statements.uid | quote }}
|
SAML_ATTRIBUTES_STATEMENTS_UID: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.attributes_statements.email }}
|
{{- with .Values.externalAuth.saml.attributes_statements.email }}
|
||||||
SAML_ATTRIBUTES_STATEMENTS_EMAIL: {{ .Values.externalAuth.saml.attributes_statements.email | quote }}
|
SAML_ATTRIBUTES_STATEMENTS_EMAIL: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.attributes_statements.full_name }}
|
{{- with .Values.externalAuth.saml.attributes_statements.full_name }}
|
||||||
SAML_ATTRIBUTES_STATEMENTS_FULL_NAME: {{ .Values.externalAuth.saml.attributes_statements.full_name | quote }}
|
SAML_ATTRIBUTES_STATEMENTS_FULL_NAME: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.attributes_statements.first_name }}
|
{{- with .Values.externalAuth.saml.attributes_statements.first_name }}
|
||||||
SAML_ATTRIBUTES_STATEMENTS_FIRST_NAME: {{ .Values.externalAuth.saml.attributes_statements.first_name | quote }}
|
SAML_ATTRIBUTES_STATEMENTS_FIRST_NAME: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.attributes_statements.last_name }}
|
{{- with .Values.externalAuth.saml.attributes_statements.last_name }}
|
||||||
SAML_ATTRIBUTES_STATEMENTS_LAST_NAME: {{ .Values.externalAuth.saml.attributes_statements.last_name | quote }}
|
SAML_ATTRIBUTES_STATEMENTS_LAST_NAME: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.attributes_statements.verified }}
|
{{- with .Values.externalAuth.saml.attributes_statements.verified }}
|
||||||
SAML_ATTRIBUTES_STATEMENTS_VERIFIED: {{ .Values.externalAuth.saml.attributes_statements.verified | quote }}
|
SAML_ATTRIBUTES_STATEMENTS_VERIFIED: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.saml.attributes_statements.verified_email }}
|
{{- with .Values.externalAuth.saml.attributes_statements.verified_email }}
|
||||||
SAML_ATTRIBUTES_STATEMENTS_VERIFIED_EMAIL: {{ .Values.externalAuth.saml.attributes_statements.verified_email | quote }}
|
SAML_ATTRIBUTES_STATEMENTS_VERIFIED_EMAIL: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.oauth_global.oauth_redirect_at_sign_in }}
|
{{- with .Values.externalAuth.oauth_global.omniauth_only }}
|
||||||
OAUTH_REDIRECT_AT_SIGN_IN: {{ .Values.externalAuth.oauth_global.oauth_redirect_at_sign_in | quote }}
|
OMNIAUTH_ONLY: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.enabled }}
|
{{- if .Values.externalAuth.cas.enabled }}
|
||||||
CAS_ENABLED: {{ .Values.externalAuth.cas.enabled | quote }}
|
CAS_ENABLED: {{ .Values.externalAuth.cas.enabled | quote }}
|
||||||
@ -204,100 +222,106 @@ data:
|
|||||||
CAS_HOST: {{ .Values.externalAuth.cas.host }}
|
CAS_HOST: {{ .Values.externalAuth.cas.host }}
|
||||||
CAS_PORT: {{ .Values.externalAuth.cas.port }}
|
CAS_PORT: {{ .Values.externalAuth.cas.port }}
|
||||||
CAS_SSL: {{ .Values.externalAuth.cas.ssl | quote }}
|
CAS_SSL: {{ .Values.externalAuth.cas.ssl | quote }}
|
||||||
{{- if .Values.externalAuth.cas.validate_url }}
|
{{- with .Values.externalAuth.cas.validate_url }}
|
||||||
CAS_VALIDATE_URL: {{ .Values.externalAuth.cas.validate_url }}
|
CAS_VALIDATE_URL: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.callback_url }}
|
{{- with .Values.externalAuth.cas.callback_url }}
|
||||||
CAS_CALLBACK_URL: {{ .Values.externalAuth.cas.callback_url }}
|
CAS_CALLBACK_URL: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.logout_url }}
|
{{- with .Values.externalAuth.cas.logout_url }}
|
||||||
CAS_LOGOUT_URL: {{ .Values.externalAuth.cas.logout_url }}
|
CAS_LOGOUT_URL: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.login_url }}
|
{{- with .Values.externalAuth.cas.login_url }}
|
||||||
CAS_LOGIN_URL: {{ .Values.externalAuth.cas.login_url }}
|
CAS_LOGIN_URL: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.uid_field }}
|
{{- with .Values.externalAuth.cas.uid_field }}
|
||||||
CAS_UID_FIELD: {{ .Values.externalAuth.cas.uid_field | quote }}
|
CAS_UID_FIELD: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.ca_path }}
|
{{- with .Values.externalAuth.cas.ca_path }}
|
||||||
CAS_CA_PATH: {{ .Values.externalAuth.cas.ca_path }}
|
CAS_CA_PATH: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.disable_ssl_verification }}
|
{{- with .Values.externalAuth.cas.disable_ssl_verification }}
|
||||||
CAS_DISABLE_SSL_VERIFICATION: {{ .Values.externalAuth.cas.disable_ssl_verification | quote }}
|
CAS_DISABLE_SSL_VERIFICATION: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.assume_email_is_verified }}
|
{{- with .Values.externalAuth.cas.assume_email_is_verified }}
|
||||||
CAS_SECURITY_ASSUME_EMAIL_IS_VERIFIED: {{ .Values.externalAuth.cas.assume_email_is_verified | quote }}
|
CAS_SECURITY_ASSUME_EMAIL_IS_VERIFIED: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.keys.uid }}
|
{{- with .Values.externalAuth.cas.keys.uid }}
|
||||||
CAS_UID_KEY: {{ .Values.externalAuth.cas.keys.uid | quote }}
|
CAS_UID_KEY: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.keys.name }}
|
{{- with .Values.externalAuth.cas.keys.name }}
|
||||||
CAS_NAME_KEY: {{ .Values.externalAuth.cas.keys.name | quote }}
|
CAS_NAME_KEY: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.keys.email }}
|
{{- with .Values.externalAuth.cas.keys.email }}
|
||||||
CAS_EMAIL_KEY: {{ .Values.externalAuth.cas.keys.email | quote }}
|
CAS_EMAIL_KEY: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.keys.nickname }}
|
{{- with .Values.externalAuth.cas.keys.nickname }}
|
||||||
CAS_NICKNAME_KEY: {{ .Values.externalAuth.cas.keys.nickname | quote }}
|
CAS_NICKNAME_KEY: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.keys.first_name }}
|
{{- with .Values.externalAuth.cas.keys.first_name }}
|
||||||
CAS_FIRST_NAME_KEY: {{ .Values.externalAuth.cas.keys.first_name | quote }}
|
CAS_FIRST_NAME_KEY: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.keys.last_name }}
|
{{- with .Values.externalAuth.cas.keys.last_name }}
|
||||||
CAS_LAST_NAME_KEY: {{ .Values.externalAuth.cas.keys.last_name | quote }}
|
CAS_LAST_NAME_KEY: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.keys.location }}
|
{{- with .Values.externalAuth.cas.keys.location }}
|
||||||
CAS_LOCATION_KEY: {{ .Values.externalAuth.cas.keys.location | quote }}
|
CAS_LOCATION_KEY: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.keys.image }}
|
{{- with .Values.externalAuth.cas.keys.image }}
|
||||||
CAS_IMAGE_KEY: {{ .Values.externalAuth.cas.keys.image | quote }}
|
CAS_IMAGE_KEY: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.cas.keys.phone }}
|
{{- with .Values.externalAuth.cas.keys.phone }}
|
||||||
CAS_PHONE_KEY: {{ .Values.externalAuth.cas.keys.phone | quote }}
|
CAS_PHONE_KEY: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.pam.enabled }}
|
{{- with .Values.externalAuth.pam.enabled }}
|
||||||
PAM_ENABLED: {{ .Values.externalAuth.pam.enabled | quote }}
|
PAM_ENABLED: {{ . | quote }}
|
||||||
{{- if .Values.externalAuth.pam.email_domain }}
|
{{- with .Values.externalAuth.pam.email_domain }}
|
||||||
PAM_EMAIL_DOMAIN: {{ .Values.externalAuth.pam.email_domain }}
|
PAM_EMAIL_DOMAIN: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.pam.default_service }}
|
{{- with .Values.externalAuth.pam.default_service }}
|
||||||
PAM_DEFAULT_SERVICE: {{ .Values.externalAuth.pam.default_service }}
|
PAM_DEFAULT_SERVICE: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.pam.controlled_service }}
|
{{- with .Values.externalAuth.pam.controlled_service }}
|
||||||
PAM_CONTROLLED_SERVICE: {{ .Values.externalAuth.pam.controlled_service }}
|
PAM_CONTROLLED_SERVICE: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.ldap.enabled }}
|
{{- if .Values.externalAuth.ldap.enabled }}
|
||||||
LDAP_ENABLED: {{ .Values.externalAuth.ldap.enabled | quote }}
|
LDAP_ENABLED: {{ .Values.externalAuth.ldap.enabled | quote }}
|
||||||
LDAP_HOST: {{ .Values.externalAuth.ldap.host }}
|
LDAP_HOST: {{ .Values.externalAuth.ldap.host }}
|
||||||
LDAP_PORT: {{ .Values.externalAuth.ldap.port }}
|
LDAP_PORT: {{ .Values.externalAuth.ldap.port | quote }}
|
||||||
LDAP_METHOD: {{ .Values.externalAuth.ldap.method }}
|
LDAP_METHOD: {{ .Values.externalAuth.ldap.method }}
|
||||||
|
{{- if .Values.externalAuth.ldap.tls_no_verify }}
|
||||||
|
LDAP_TLS_NO_VERIFY: {{ .Values.externalAuth.ldap.tls_no_verify | quote }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.ldap.base }}
|
{{- if .Values.externalAuth.ldap.base }}
|
||||||
LDAP_BASE: {{ .Values.externalAuth.ldap.base }}
|
LDAP_BASE: {{ .Values.externalAuth.ldap.base }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.ldap.bind_on }}
|
{{- if .Values.externalAuth.ldap.bind_dn }}
|
||||||
LDAP_BIND_ON: {{ .Values.externalAuth.ldap.bind_on }}
|
LDAP_BIND_DN: {{ .Values.externalAuth.ldap.bind_dn }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.ldap.password }}
|
{{- with .Values.externalAuth.ldap.password }}
|
||||||
LDAP_PASSWORD: {{ .Values.externalAuth.ldap.password }}
|
LDAP_PASSWORD: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.ldap.uid }}
|
{{- with .Values.externalAuth.ldap.uid }}
|
||||||
LDAP_UID: {{ .Values.externalAuth.ldap.uid }}
|
LDAP_UID: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.ldap.mail }}
|
{{- with .Values.externalAuth.ldap.mail }}
|
||||||
LDAP_MAIL: {{ .Values.externalAuth.ldap.mail }}
|
LDAP_MAIL: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.ldap.search_filter }}
|
{{- with .Values.externalAuth.ldap.search_filter }}
|
||||||
LDAP_SEARCH_FILTER: {{ .Values.externalAuth.ldap.search_filter }}
|
LDAP_SEARCH_FILTER: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.ldap.uid_conversion.enabled }}
|
{{- with .Values.externalAuth.ldap.uid_conversion.enabled }}
|
||||||
LDAP_UID_CONVERSION_ENABLED: {{ .Values.externalAuth.ldap.uid_conversion.enabled | quote }}
|
LDAP_UID_CONVERSION_ENABLED: {{ . | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.ldap.uid_conversion.search }}
|
{{- with .Values.externalAuth.ldap.uid_conversion.search }}
|
||||||
LDAP_UID_CONVERSION_SEARCH: {{ .Values.externalAuth.ldap.uid_conversion.search }}
|
LDAP_UID_CONVERSION_SEARCH: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.externalAuth.ldap.uid_conversion.replace }}
|
{{- with .Values.externalAuth.ldap.uid_conversion.replace }}
|
||||||
LDAP_UID_CONVERSION_REPLACE: {{ .Values.externalAuth.ldap.uid_conversion.replace }}
|
LDAP_UID_CONVERSION_REPLACE: {{ . }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.mastodon.metrics.statsd.address }}
|
||||||
|
STATSD_ADDR: {{ . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
@ -1,5 +1,5 @@
|
|||||||
{{ if .Values.mastodon.cron.removeMedia.enabled }}
|
{{ if .Values.mastodon.cron.removeMedia.enabled -}}
|
||||||
apiVersion: batch/v1beta1
|
apiVersion: batch/v1
|
||||||
kind: CronJob
|
kind: CronJob
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-media-remove
|
name: {{ include "mastodon.fullname" . }}-media-remove
|
||||||
@ -12,6 +12,10 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-media-remove
|
name: {{ include "mastodon.fullname" . }}-media-remove
|
||||||
|
{{- with .Values.jobAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: OnFailure
|
restartPolicy: OnFailure
|
||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
@ -21,13 +25,13 @@ spec:
|
|||||||
affinity:
|
affinity:
|
||||||
podAffinity:
|
podAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: component
|
- key: app.kubernetes.io/part-of
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- rails
|
- rails
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: assets
|
- name: assets
|
||||||
@ -49,24 +53,32 @@ spec:
|
|||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "mastodon.fullname" . }}-env
|
name: {{ include "mastodon.fullname" . }}-env
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.secretName" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
{{- if .Values.postgresql.enabled }}
|
name: {{ template "mastodon.postgresql.secretName" . }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
key: password
|
||||||
{{- else }}
|
|
||||||
name: {{ template "mastodon.fullname" . }}
|
|
||||||
{{- end }}
|
|
||||||
key: postgresql-password
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ template "mastodon.redis.secretName" . }}
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.mastodon.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
{{- if (and .Values.mastodon.s3.enabled .Values.mastodon.s3.existingSecret) }}
|
||||||
|
- name: "AWS_SECRET_ACCESS_KEY"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.s3.existingSecret }}
|
||||||
|
key: AWS_SECRET_ACCESS_KEY
|
||||||
|
- name: "AWS_ACCESS_KEY_ID"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.s3.existingSecret }}
|
||||||
|
key: AWS_ACCESS_KEY_ID
|
||||||
|
{{- end }}
|
||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: assets
|
- name: assets
|
||||||
|
@ -1,92 +1,120 @@
|
|||||||
|
{{- $context := . }}
|
||||||
|
{{- range .Values.mastodon.sidekiq.workers }}
|
||||||
|
---
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-sidekiq
|
name: {{ include "mastodon.fullname" $context }}-sidekiq-{{ .name }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "mastodon.labels" . | nindent 4 }}
|
{{- include "mastodon.labels" $context | nindent 4 }}
|
||||||
|
app.kubernetes.io/component: sidekiq-{{ .name }}
|
||||||
|
app.kubernetes.io/part-of: rails
|
||||||
spec:
|
spec:
|
||||||
{{- if not .Values.autoscaling.enabled }}
|
{{- if (has "scheduler" .queues) }}
|
||||||
replicas: {{ .Values.replicaCount }}
|
{{- if (gt (int .replicas) 1) }}
|
||||||
{{- end }}
|
{{ fail "The scheduler queue should never have more than 1 replicas" }}
|
||||||
|
{{- end }}
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
{{- end }}
|
||||||
|
replicas: {{ .replicas }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "mastodon.selectorLabels" . | nindent 6 }}
|
{{- include "mastodon.selectorLabels" $context | nindent 6 }}
|
||||||
component: rails
|
app.kubernetes.io/component: sidekiq-{{ .name }}
|
||||||
|
app.kubernetes.io/part-of: rails
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.podAnnotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- with $context.Values.podAnnotations }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
# roll the pods to pick up any db migrations
|
{{- end }}
|
||||||
rollme: {{ randAlphaNum 5 | quote }}
|
# roll the pods to pick up any db migrations or other changes
|
||||||
{{- end }}
|
{{- include "mastodon.rollingPodAnnotations" $context | nindent 8 }}
|
||||||
|
checksum/config-secrets: {{ include ( print $.Template.BasePath "/secret-smtp.yaml" ) $context | sha256sum | quote }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "mastodon.selectorLabels" . | nindent 8 }}
|
{{- include "mastodon.selectorLabels" $context | nindent 8 }}
|
||||||
component: rails
|
app.kubernetes.io/component: sidekiq-{{ .name }}
|
||||||
|
app.kubernetes.io/part-of: rails
|
||||||
spec:
|
spec:
|
||||||
{{- with .Values.imagePullSecrets }}
|
{{- with $context.Values.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
serviceAccountName: {{ include "mastodon.serviceAccountName" . }}
|
serviceAccountName: {{ include "mastodon.serviceAccountName" $context }}
|
||||||
|
{{- with (default $context.Values.podSecurityContext $context.Values.mastodon.sidekiq.podSecurityContext) }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
|
||||||
# ensure we run on the same node as the other rails components; only
|
|
||||||
# required when using PVCs that are ReadWriteOnce
|
|
||||||
{{- if or (eq "ReadWriteOnce" .Values.mastodon.persistence.assets.accessMode) (eq "ReadWriteOnce" .Values.mastodon.persistence.system.accessMode) }}
|
|
||||||
affinity:
|
|
||||||
podAffinity:
|
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
|
||||||
- labelSelector:
|
|
||||||
matchExpressions:
|
|
||||||
- key: component
|
|
||||||
operator: In
|
|
||||||
values:
|
|
||||||
- rails
|
|
||||||
topologyKey: kubernetes.io/hostname
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- with (default (default $context.Values.affinity $context.Values.mastodon.sidekiq.affinity) .affinity) }}
|
||||||
|
affinity:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if (not $context.Values.mastodon.s3.enabled) }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: assets
|
- name: assets
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ template "mastodon.fullname" . }}-assets
|
claimName: {{ template "mastodon.fullname" $context }}-assets
|
||||||
- name: system
|
- name: system
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ template "mastodon.fullname" . }}-system
|
claimName: {{ template "mastodon.fullname" $context }}-system
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ $context.Chart.Name }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml $context.Values.mastodon.sidekiq.securityContext | nindent 12 }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ $context.Values.image.repository }}:{{ $context.Values.image.tag | default $context.Chart.AppVersion }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ $context.Values.image.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
- bundle
|
- bundle
|
||||||
- exec
|
- exec
|
||||||
- sidekiq
|
- sidekiq
|
||||||
- -c
|
- -c
|
||||||
- {{ .Values.mastodon.sidekiq.concurrency | quote }}
|
- {{ .concurrency | quote }}
|
||||||
|
{{- range .queues }}
|
||||||
|
- -q
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "mastodon.fullname" . }}-env
|
name: {{ include "mastodon.fullname" $context }}-env
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.secretName" $context }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
{{- if .Values.postgresql.enabled }}
|
name: {{ template "mastodon.postgresql.secretName" $context }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
key: password
|
||||||
{{- else }}
|
|
||||||
name: {{ template "mastodon.fullname" . }}
|
|
||||||
{{- end }}
|
|
||||||
key: postgresql-password
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ template "mastodon.redis.secretName" $context }}
|
||||||
key: redis-password
|
key: redis-password
|
||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
- name: "SMTP_LOGIN"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ include "mastodon.smtp.secretName" $context }}
|
||||||
|
key: login
|
||||||
|
optional: true
|
||||||
|
- name: "SMTP_PASSWORD"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ include "mastodon.smtp.secretName" $context }}
|
||||||
|
key: password
|
||||||
|
{{- if (and $context.Values.mastodon.s3.enabled $context.Values.mastodon.s3.existingSecret) }}
|
||||||
|
- name: "AWS_SECRET_ACCESS_KEY"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ $context.Values.mastodon.s3.existingSecret }}
|
||||||
|
key: AWS_SECRET_ACCESS_KEY
|
||||||
|
- name: "AWS_ACCESS_KEY_ID"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ $context.Values.mastodon.s3.existingSecret }}
|
||||||
|
key: AWS_ACCESS_KEY_ID
|
||||||
|
{{- end }}
|
||||||
|
{{- if (not $context.Values.mastodon.s3.enabled) }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: assets
|
- name: assets
|
||||||
mountPath: /opt/mastodon/public/assets
|
mountPath: /opt/mastodon/public/assets
|
||||||
@ -94,12 +122,13 @@ spec:
|
|||||||
mountPath: /opt/mastodon/public/system
|
mountPath: /opt/mastodon/public/system
|
||||||
{{- end }}
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml (default (default $context.Values.resources $context.Values.mastodon.sidekiq.resources) .resources) | nindent 12 }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with $context.Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.tolerations }}
|
{{- with $context.Values.tolerations }}
|
||||||
tolerations:
|
tolerations:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
@ -5,32 +5,38 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "mastodon.labels" . | nindent 4 }}
|
{{- include "mastodon.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
{{- if not .Values.autoscaling.enabled }}
|
replicas: {{ .Values.mastodon.streaming.replicas }}
|
||||||
replicas: {{ .Values.replicaCount }}
|
|
||||||
{{- end }}
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "mastodon.selectorLabels" . | nindent 6 }}
|
{{- include "mastodon.selectorLabels" . | nindent 6 }}
|
||||||
|
app.kubernetes.io/component: streaming
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.podAnnotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- with (default .Values.podAnnotations .Values.mastodon.streaming.podAnnotations) }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
# roll the pods to pick up any db migrations or other changes
|
||||||
|
{{- include "mastodon.rollingPodAnnotations" . | nindent 8 }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "mastodon.selectorLabels" . | nindent 8 }}
|
{{- include "mastodon.selectorLabels" . | nindent 8 }}
|
||||||
|
app.kubernetes.io/component: streaming
|
||||||
spec:
|
spec:
|
||||||
{{- with .Values.imagePullSecrets }}
|
{{- with .Values.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
serviceAccountName: {{ include "mastodon.serviceAccountName" . }}
|
serviceAccountName: {{ include "mastodon.serviceAccountName" . }}
|
||||||
|
{{- with (default .Values.podSecurityContext .Values.mastodon.streaming.podSecurityContext) }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}-streaming
|
||||||
|
{{- with (default .Values.securityContext .Values.mastodon.streaming.securityContext) }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
@ -43,16 +49,12 @@ spec:
|
|||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
{{- if .Values.postgresql.enabled }}
|
name: {{ template "mastodon.postgresql.secretName" . }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
key: password
|
||||||
{{- else }}
|
|
||||||
name: {{ template "mastodon.fullname" . }}
|
|
||||||
{{- end }}
|
|
||||||
key: postgresql-password
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ template "mastodon.redis.secretName" . }}
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.mastodon.streaming.port | quote }}
|
value: {{ .Values.mastodon.streaming.port | quote }}
|
||||||
@ -68,13 +70,15 @@ spec:
|
|||||||
httpGet:
|
httpGet:
|
||||||
path: /api/v1/streaming/health
|
path: /api/v1/streaming/health
|
||||||
port: streaming
|
port: streaming
|
||||||
|
{{- with (default .Values.resources .Values.mastodon.streaming.resources) }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.affinity }}
|
{{- with (default .Values.affinity .Values.mastodon.streaming.affinity) }}
|
||||||
affinity:
|
affinity:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -5,32 +5,34 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
{{- include "mastodon.labels" . | nindent 4 }}
|
{{- include "mastodon.labels" . | nindent 4 }}
|
||||||
spec:
|
spec:
|
||||||
{{- if not .Values.autoscaling.enabled }}
|
replicas: {{ .Values.mastodon.web.replicas }}
|
||||||
replicas: {{ .Values.replicaCount }}
|
|
||||||
{{- end }}
|
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
{{- include "mastodon.selectorLabels" . | nindent 6 }}
|
{{- include "mastodon.selectorLabels" . | nindent 6 }}
|
||||||
component: rails
|
app.kubernetes.io/component: web
|
||||||
|
app.kubernetes.io/part-of: rails
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
{{- with .Values.podAnnotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- with (default .Values.podAnnotations .Values.mastodon.web.podAnnotations) }}
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
# roll the pods to pick up any db migrations
|
{{- end }}
|
||||||
rollme: {{ randAlphaNum 5 | quote }}
|
# roll the pods to pick up any db migrations or other changes
|
||||||
{{- end }}
|
{{- include "mastodon.rollingPodAnnotations" . | nindent 8 }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "mastodon.selectorLabels" . | nindent 8 }}
|
{{- include "mastodon.selectorLabels" . | nindent 8 }}
|
||||||
component: rails
|
app.kubernetes.io/component: web
|
||||||
|
app.kubernetes.io/part-of: rails
|
||||||
spec:
|
spec:
|
||||||
{{- with .Values.imagePullSecrets }}
|
{{- with .Values.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
serviceAccountName: {{ include "mastodon.serviceAccountName" . }}
|
serviceAccountName: {{ include "mastodon.serviceAccountName" . }}
|
||||||
|
{{- with (default .Values.podSecurityContext .Values.mastodon.web.podSecurityContext) }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: assets
|
- name: assets
|
||||||
@ -41,9 +43,11 @@ spec:
|
|||||||
claimName: {{ template "mastodon.fullname" . }}-system
|
claimName: {{ template "mastodon.fullname" . }}-system
|
||||||
{{- end }}
|
{{- end }}
|
||||||
containers:
|
containers:
|
||||||
- name: {{ .Chart.Name }}
|
- name: {{ .Chart.Name }}-web
|
||||||
|
{{- with (default .Values.securityContext .Values.mastodon.web.securityContext) }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
command:
|
command:
|
||||||
@ -56,24 +60,48 @@ spec:
|
|||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "mastodon.fullname" . }}-env
|
name: {{ include "mastodon.fullname" . }}-env
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.secretName" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
{{- if .Values.postgresql.enabled }}
|
name: {{ template "mastodon.postgresql.secretName" . }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
key: password
|
||||||
{{- else }}
|
|
||||||
name: {{ template "mastodon.fullname" . }}
|
|
||||||
{{- end }}
|
|
||||||
key: postgresql-password
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ template "mastodon.redis.secretName" . }}
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.mastodon.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
{{- if .Values.mastodon.web.minThreads }}
|
||||||
|
- name: "MIN_THREADS"
|
||||||
|
value: {{ .Values.mastodon.web.minThreads | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.mastodon.web.maxThreads }}
|
||||||
|
- name: "MAX_THREADS"
|
||||||
|
value: {{ .Values.mastodon.web.maxThreads | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.mastodon.web.workers }}
|
||||||
|
- name: "WEB_CONCURRENCY"
|
||||||
|
value: {{ .Values.mastodon.web.workers | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.mastodon.web.persistentTimeout }}
|
||||||
|
- name: "PERSISTENT_TIMEOUT"
|
||||||
|
value: {{ .Values.mastodon.web.persistentTimeout | quote }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if (and .Values.mastodon.s3.enabled .Values.mastodon.s3.existingSecret) }}
|
||||||
|
- name: "AWS_SECRET_ACCESS_KEY"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.s3.existingSecret }}
|
||||||
|
key: AWS_SECRET_ACCESS_KEY
|
||||||
|
- name: "AWS_ACCESS_KEY_ID"
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: {{ .Values.mastodon.s3.existingSecret }}
|
||||||
|
key: AWS_ACCESS_KEY_ID
|
||||||
|
{{- end }}
|
||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: assets
|
- name: assets
|
||||||
@ -86,20 +114,27 @@ spec:
|
|||||||
containerPort: {{ .Values.mastodon.web.port }}
|
containerPort: {{ .Values.mastodon.web.port }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
tcpSocket:
|
||||||
path: /health
|
|
||||||
port: http
|
port: http
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /health
|
path: /health
|
||||||
port: http
|
port: http
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /health
|
||||||
|
port: http
|
||||||
|
failureThreshold: 30
|
||||||
|
periodSeconds: 5
|
||||||
|
{{- with (default .Values.resources .Values.mastodon.web.resources) }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.resources | nindent 12 }}
|
{{- toYaml . | nindent 12 }}
|
||||||
|
{{- end }}
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- with .Values.affinity }}
|
{{- with (default .Values.affinity .Values.mastodon.web.affinity) }}
|
||||||
affinity:
|
affinity:
|
||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
{{- if .Values.autoscaling.enabled }}
|
|
||||||
apiVersion: autoscaling/v2beta1
|
|
||||||
kind: HorizontalPodAutoscaler
|
|
||||||
metadata:
|
|
||||||
name: {{ include "mastodon.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "mastodon.labels" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
scaleTargetRef:
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
name: {{ include "mastodon.fullname" . }}
|
|
||||||
minReplicas: {{ .Values.autoscaling.minReplicas }}
|
|
||||||
maxReplicas: {{ .Values.autoscaling.maxReplicas }}
|
|
||||||
metrics:
|
|
||||||
{{- if .Values.autoscaling.targetCPUUtilizationPercentage }}
|
|
||||||
- type: Resource
|
|
||||||
resource:
|
|
||||||
name: cpu
|
|
||||||
targetAverageUtilization: {{ .Values.autoscaling.targetCPUUtilizationPercentage }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
|
||||||
- type: Resource
|
|
||||||
resource:
|
|
||||||
name: memory
|
|
||||||
targetAverageUtilization: {{ .Values.autoscaling.targetMemoryUtilizationPercentage }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
@ -2,12 +2,7 @@
|
|||||||
{{- $fullName := include "mastodon.fullname" . -}}
|
{{- $fullName := include "mastodon.fullname" . -}}
|
||||||
{{- $webPort := .Values.mastodon.web.port -}}
|
{{- $webPort := .Values.mastodon.web.port -}}
|
||||||
{{- $streamingPort := .Values.mastodon.streaming.port -}}
|
{{- $streamingPort := .Values.mastodon.streaming.port -}}
|
||||||
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
{{- if or (.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not (.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) -}}
|
||||||
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
|
||||||
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
@ -24,8 +19,8 @@ metadata:
|
|||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
|
{{- if .Values.ingress.ingressClassName }}
|
||||||
ingressClassName: {{ .Values.ingress.className }}
|
ingressClassName: {{ .Values.ingress.ingressClassName }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if .Values.ingress.tls }}
|
{{- if .Values.ingress.tls }}
|
||||||
tls:
|
tls:
|
||||||
@ -44,11 +39,8 @@ spec:
|
|||||||
paths:
|
paths:
|
||||||
{{- range .paths }}
|
{{- range .paths }}
|
||||||
- path: {{ .path }}
|
- path: {{ .path }}
|
||||||
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
|
||||||
pathType: {{ .pathType }}
|
|
||||||
{{- end }}
|
|
||||||
backend:
|
backend:
|
||||||
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
{{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
|
||||||
service:
|
service:
|
||||||
name: {{ $fullName }}-web
|
name: {{ $fullName }}-web
|
||||||
port:
|
port:
|
||||||
@ -57,12 +49,12 @@ spec:
|
|||||||
serviceName: {{ $fullName }}-web
|
serviceName: {{ $fullName }}-web
|
||||||
servicePort: {{ $webPort }}
|
servicePort: {{ $webPort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- path: {{ .path }}api/v1/streaming
|
{{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
|
||||||
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
pathType: Prefix
|
||||||
pathType: {{ .pathType }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
- path: {{ .path }}api/v1/streaming
|
||||||
backend:
|
backend:
|
||||||
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
{{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
|
||||||
service:
|
service:
|
||||||
name: {{ $fullName }}-streaming
|
name: {{ $fullName }}-streaming
|
||||||
port:
|
port:
|
||||||
@ -71,6 +63,9 @@ spec:
|
|||||||
serviceName: {{ $fullName }}-streaming
|
serviceName: {{ $fullName }}-streaming
|
||||||
servicePort: {{ $streamingPort }}
|
servicePort: {{ $streamingPort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
|
||||||
|
pathType: Prefix
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -12,6 +12,10 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-assets-precompile
|
name: {{ include "mastodon.fullname" . }}-assets-precompile
|
||||||
|
{{- with .Values.jobAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
@ -21,13 +25,13 @@ spec:
|
|||||||
affinity:
|
affinity:
|
||||||
podAffinity:
|
podAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: component
|
- key: app.kubernetes.io/part-of
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- rails
|
- rails
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: assets
|
- name: assets
|
||||||
@ -50,21 +54,17 @@ spec:
|
|||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "mastodon.fullname" . }}-env
|
name: {{ include "mastodon.fullname" . }}-env
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.secretName" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
{{- if .Values.postgresql.enabled }}
|
name: {{ template "mastodon.postgresql.secretName" . }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
key: password
|
||||||
{{- else }}
|
|
||||||
name: {{ template "mastodon.fullname" . }}
|
|
||||||
{{- end }}
|
|
||||||
key: postgresql-password
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ template "mastodon.redis.secretName" . }}
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.mastodon.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.elasticsearch.enabled }}
|
{{- if .Values.elasticsearch.enabled -}}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
@ -13,6 +13,10 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-chewy-upgrade
|
name: {{ include "mastodon.fullname" . }}-chewy-upgrade
|
||||||
|
{{- with .Values.jobAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
@ -22,13 +26,13 @@ spec:
|
|||||||
affinity:
|
affinity:
|
||||||
podAffinity:
|
podAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: component
|
- key: app.kubernetes.io/part-of
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- rails
|
- rails
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: assets
|
- name: assets
|
||||||
@ -51,21 +55,17 @@ spec:
|
|||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "mastodon.fullname" . }}-env
|
name: {{ include "mastodon.fullname" . }}-env
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.secretName" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
{{- if .Values.postgresql.enabled }}
|
name: {{ template "mastodon.postgresql.secretName" . }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
key: password
|
||||||
{{- else }}
|
|
||||||
name: {{ template "mastodon.fullname" . }}
|
|
||||||
{{- end }}
|
|
||||||
key: postgresql-password
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ template "mastodon.redis.secretName" . }}
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.mastodon.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{- if .Values.mastodon.createAdmin.enabled }}
|
{{- if .Values.mastodon.createAdmin.enabled -}}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
@ -13,6 +13,10 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-create-admin
|
name: {{ include "mastodon.fullname" . }}-create-admin
|
||||||
|
{{- with .Values.jobAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
@ -24,7 +28,7 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: component
|
- key: app.kubernetes.io/part-of
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- rails
|
- rails
|
||||||
@ -51,26 +55,22 @@ spec:
|
|||||||
- {{ .Values.mastodon.createAdmin.email }}
|
- {{ .Values.mastodon.createAdmin.email }}
|
||||||
- --confirmed
|
- --confirmed
|
||||||
- --role
|
- --role
|
||||||
- admin
|
- Owner
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "mastodon.fullname" . }}-env
|
name: {{ include "mastodon.fullname" . }}-env
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.secretName" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
{{- if .Values.postgresql.enabled }}
|
name: {{ template "mastodon.postgresql.secretName" . }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
key: password
|
||||||
{{- else }}
|
|
||||||
name: {{ template "mastodon.fullname" . }}
|
|
||||||
{{- end }}
|
|
||||||
key: postgresql-password
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ template "mastodon.redis.secretName" . }}
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.mastodon.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
@ -12,6 +12,10 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-db-migrate
|
name: {{ include "mastodon.fullname" . }}-db-migrate
|
||||||
|
{{- with .Values.jobAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
@ -21,13 +25,13 @@ spec:
|
|||||||
affinity:
|
affinity:
|
||||||
podAffinity:
|
podAffinity:
|
||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: component
|
- key: app.kubernetes.io/part-of
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- rails
|
- rails
|
||||||
topologyKey: kubernetes.io/hostname
|
topologyKey: kubernetes.io/hostname
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
- name: assets
|
- name: assets
|
||||||
@ -50,21 +54,17 @@ spec:
|
|||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "mastodon.fullname" . }}-env
|
name: {{ include "mastodon.fullname" . }}-env
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.secretName" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
{{- if .Values.postgresql.enabled }}
|
name: {{ template "mastodon.postgresql.secretName" . }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
key: password
|
||||||
{{- else }}
|
|
||||||
name: {{ template "mastodon.fullname" . }}
|
|
||||||
{{- end }}
|
|
||||||
key: postgresql-password
|
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ template "mastodon.redis.secretName" . }}
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.mastodon.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
{{- if .Values.mastodon.createAdmin.enabled }}
|
{{- if .Values.mastodon.createAdmin.enabled -}}
|
||||||
apiVersion: batch/v1
|
apiVersion: batch/v1
|
||||||
kind: Job
|
kind: Job
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-create-admin
|
name: {{ include "mastodon.fullname" . }}-set-admin-password
|
||||||
labels:
|
labels:
|
||||||
{{- include "mastodon.labels" . | nindent 4 }}
|
{{- include "mastodon.labels" . | nindent 4 }}
|
||||||
annotations:
|
annotations:
|
||||||
@ -13,6 +13,10 @@ spec:
|
|||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "mastodon.fullname" . }}-create-admin
|
name: {{ include "mastodon.fullname" . }}-create-admin
|
||||||
|
{{- with .Values.jobAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
{{- if (not .Values.mastodon.s3.enabled) }}
|
||||||
@ -24,7 +28,7 @@ spec:
|
|||||||
requiredDuringSchedulingIgnoredDuringExecution:
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||||||
- labelSelector:
|
- labelSelector:
|
||||||
matchExpressions:
|
matchExpressions:
|
||||||
- key: component
|
- key: app.kubernetes.io/part-of
|
||||||
operator: In
|
operator: In
|
||||||
values:
|
values:
|
||||||
- rails
|
- rails
|
||||||
@ -50,21 +54,21 @@ spec:
|
|||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: {{ include "mastodon.fullname" . }}-env
|
name: {{ include "mastodon.fullname" . }}-env
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.secretName" . }}
|
||||||
env:
|
env:
|
||||||
- name: "DB_PASS"
|
- name: "DB_PASS"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
{{- if .Values.postgresql.enabled }}
|
{{- if .Values.postgresql.enabled }}
|
||||||
name: {{ .Release.Name }}-postgresql
|
name: {{ template "mastodon.postgresql.secretName" . }}
|
||||||
{{- else }}
|
{{- else }}
|
||||||
name: {{ template "mastodon.fullname" . }}
|
name: {{ template "mastodon.fullname" . }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
key: postgresql-password
|
key: password
|
||||||
- name: "REDIS_PASSWORD"
|
- name: "REDIS_PASSWORD"
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: {{ .Release.Name }}-redis
|
name: {{ template "mastodon.redis.secretName" . }}
|
||||||
key: redis-password
|
key: redis-password
|
||||||
- name: "PORT"
|
- name: "PORT"
|
||||||
value: {{ .Values.mastodon.web.port | quote }}
|
value: {{ .Values.mastodon.web.port | quote }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
{{- if (not .Values.mastodon.s3.enabled) -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
@ -8,7 +8,9 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- {{ .Values.mastodon.persistence.system.accessMode }}
|
- {{ .Values.mastodon.persistence.system.accessMode }}
|
||||||
|
{{- with .Values.mastodon.persistence.assets.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.mastodon.persistence.assets.resources | nindent 4}}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
storageClassName: {{ .Values.mastodon.persistence.assets.storageClassName }}
|
storageClassName: {{ .Values.mastodon.persistence.assets.storageClassName }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{{- if (not .Values.mastodon.s3.enabled) }}
|
{{- if (not .Values.mastodon.s3.enabled) -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
@ -8,7 +8,9 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- {{ .Values.mastodon.persistence.system.accessMode }}
|
- {{ .Values.mastodon.persistence.system.accessMode }}
|
||||||
|
{{- with .Values.mastodon.persistence.system.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{- toYaml .Values.mastodon.persistence.system.resources | nindent 4}}
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
storageClassName: {{ .Values.mastodon.persistence.system.storageClassName }}
|
storageClassName: {{ .Values.mastodon.persistence.system.storageClassName }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
16
mastodon/templates/secret-smtp.yaml
Normal file
16
mastodon/templates/secret-smtp.yaml
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{{- if not .Values.mastodon.smtp.existingSecret -}}
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: {{ printf "%s-smtp" (include "common.names.fullname" .) }}
|
||||||
|
labels:
|
||||||
|
{{- include "mastodon.labels" . | nindent 4 }}
|
||||||
|
type: Opaque
|
||||||
|
data:
|
||||||
|
{{- with .Values.mastodon.smtp.login }}
|
||||||
|
login: {{ . | b64enc }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.mastodon.smtp.password }}
|
||||||
|
password: {{ . | b64enc }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
@ -1,3 +1,4 @@
|
|||||||
|
{{- if (include "mastodon.createSecret" .) -}}
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
@ -7,9 +8,12 @@ metadata:
|
|||||||
type: Opaque
|
type: Opaque
|
||||||
data:
|
data:
|
||||||
{{- if .Values.mastodon.s3.enabled }}
|
{{- if .Values.mastodon.s3.enabled }}
|
||||||
|
{{- if not .Values.mastodon.s3.existingSecret }}
|
||||||
AWS_ACCESS_KEY_ID: "{{ .Values.mastodon.s3.access_key | b64enc }}"
|
AWS_ACCESS_KEY_ID: "{{ .Values.mastodon.s3.access_key | b64enc }}"
|
||||||
AWS_SECRET_ACCESS_KEY: "{{ .Values.mastodon.s3.access_secret | b64enc }}"
|
AWS_SECRET_ACCESS_KEY: "{{ .Values.mastodon.s3.access_secret | b64enc }}"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if not .Values.mastodon.secrets.existingSecret }}
|
||||||
{{- if not (empty .Values.mastodon.secrets.secret_key_base) }}
|
{{- if not (empty .Values.mastodon.secrets.secret_key_base) }}
|
||||||
SECRET_KEY_BASE: "{{ .Values.mastodon.secrets.secret_key_base | b64enc }}"
|
SECRET_KEY_BASE: "{{ .Values.mastodon.secrets.secret_key_base | b64enc }}"
|
||||||
{{- else }}
|
{{- else }}
|
||||||
@ -30,6 +34,10 @@ data:
|
|||||||
{{- else }}
|
{{- else }}
|
||||||
VAPID_PUBLIC_KEY: {{ required "vapid.public_key is required" .Values.mastodon.secrets.vapid.public_key }}
|
VAPID_PUBLIC_KEY: {{ required "vapid.public_key is required" .Values.mastodon.secrets.vapid.public_key }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if not .Values.postgresql.enabled }}
|
|
||||||
postgresql-password: "{{ .Values.postgresql.postgresqlPassword | b64enc }}"
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if not .Values.postgresql.enabled }}
|
||||||
|
{{- if not .Values.postgresql.auth.existingSecret }}
|
||||||
|
password: "{{ .Values.postgresql.auth.password | b64enc }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
@ -13,3 +13,4 @@ spec:
|
|||||||
name: streaming
|
name: streaming
|
||||||
selector:
|
selector:
|
||||||
{{- include "mastodon.selectorLabels" . | nindent 4 }}
|
{{- include "mastodon.selectorLabels" . | nindent 4 }}
|
||||||
|
app.kubernetes.io/component: streaming
|
||||||
|
@ -13,3 +13,4 @@ spec:
|
|||||||
name: http
|
name: http
|
||||||
selector:
|
selector:
|
||||||
{{- include "mastodon.selectorLabels" . | nindent 4 }}
|
{{- include "mastodon.selectorLabels" . | nindent 4 }}
|
||||||
|
app.kubernetes.io/component: web
|
||||||
|
@ -11,5 +11,5 @@ spec:
|
|||||||
- name: wget
|
- name: wget
|
||||||
image: busybox
|
image: busybox
|
||||||
command: ['wget']
|
command: ['wget']
|
||||||
args: ['{{ include "mastodon.fullname" . }}:{{ .Values.service.port }}']
|
args: ['{{ include "mastodon.fullname" . }}-web:{{ .Values.service.port }}']
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
|
@ -1,40 +1,48 @@
|
|||||||
replicaCount: 1
|
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: tootsuite/mastodon
|
repository: ghcr.io/mastodon/mastodon
|
||||||
# https://hub.docker.com/r/tootsuite/mastodon/tags
|
# https://github.com/mastodon/mastodon/pkgs/container/mastodon
|
||||||
#
|
#
|
||||||
# alternatively, use `latest` for the latest release or `edge` for the image
|
# alternatively, use `latest` for the latest release or `edge` for the image
|
||||||
# built from the most recent commit
|
# built from the most recent commit
|
||||||
#
|
#
|
||||||
# tag: latest
|
# tag: latest
|
||||||
tag: v3.5.3
|
tag: "v4.1.2"
|
||||||
# use `Always` when using `latest` tag
|
# use `Always` when using `latest` tag
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
mastodon:
|
mastodon:
|
||||||
# create an initial administrator user; the password is autogenerated and will
|
# -- create an initial administrator user; the password is autogenerated and will
|
||||||
# have to be reset
|
# have to be reset
|
||||||
# CHANGE PASSWORD!!
|
|
||||||
createAdmin:
|
createAdmin:
|
||||||
|
# @ignored
|
||||||
enabled: false
|
enabled: false
|
||||||
|
# @ignored
|
||||||
username: not_gargron
|
username: not_gargron
|
||||||
password: mystronpassword
|
# @ignored
|
||||||
email: not@example.com
|
email: not@example.com
|
||||||
cron:
|
cron:
|
||||||
# run `tootctl media remove` every week
|
# -- run `tootctl media remove` every week
|
||||||
removeMedia:
|
removeMedia:
|
||||||
|
# @ignored
|
||||||
enabled: true
|
enabled: true
|
||||||
|
# @ignored
|
||||||
schedule: "0 0 * * 0"
|
schedule: "0 0 * * 0"
|
||||||
# available locales: https://github.com/tootsuite/mastodon/blob/master/config/application.rb#L43
|
# -- available locales: https://github.com/mastodon/mastodon/blob/main/config/application.rb#L71
|
||||||
locale: en
|
locale: en
|
||||||
local_domain: mastodon.local
|
local_domain: mastodon.local
|
||||||
# Use of WEB_DOMAIN requires careful consideration: https://docs.joinmastodon.org/admin/config/#federation
|
# -- Use of WEB_DOMAIN requires careful consideration: https://docs.joinmastodon.org/admin/config/#federation
|
||||||
# You must redirect the path LOCAL_DOMAIN/.well-known/ to WEB_DOMAIN/.well-known/ as described
|
# You must redirect the path LOCAL_DOMAIN/.well-known/ to WEB_DOMAIN/.well-known/ as described
|
||||||
# web_domain: mastodon.example.com
|
# Example: mastodon.example.com
|
||||||
|
web_domain: null
|
||||||
|
# -- If set to true, the frontpage of your Mastodon server will always redirect to the first profile in the database and registrations will be disabled.
|
||||||
|
singleUserMode: false
|
||||||
|
# -- Enables "Secure Mode" for more details see: https://docs.joinmastodon.org/admin/config/#authorized_fetch
|
||||||
|
authorizedFetch: false
|
||||||
|
# -- Enables "Limited Federation Mode" for more detauls see: https://docs.joinmastodon.org/admin/config/#limited_federation_mode
|
||||||
|
limitedFederationMode: false
|
||||||
persistence:
|
persistence:
|
||||||
assets:
|
assets:
|
||||||
# ReadWriteOnce is more widely supported than ReadWriteMany, but limits
|
# -- ReadWriteOnce is more widely supported than ReadWriteMany, but limits
|
||||||
# scalability, since it requires the Rails and Sidekiq pods to run on the
|
# scalability, since it requires the Rails and Sidekiq pods to run on the
|
||||||
# same node.
|
# same node.
|
||||||
accessMode: ReadWriteOnce
|
accessMode: ReadWriteOnce
|
||||||
@ -50,11 +58,15 @@ mastodon:
|
|||||||
enabled: false
|
enabled: false
|
||||||
access_key: ""
|
access_key: ""
|
||||||
access_secret: ""
|
access_secret: ""
|
||||||
|
# -- you can also specify the name of an existing Secret
|
||||||
|
# with keys AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
|
||||||
|
existingSecret: ""
|
||||||
bucket: ""
|
bucket: ""
|
||||||
endpoint: https://us-east-1.linodeobjects.com
|
endpoint: ""
|
||||||
hostname: us-east-1.linodeobjects.com
|
hostname: ""
|
||||||
region: ""
|
region: ""
|
||||||
# If you have a caching proxy, enter its base URL here.
|
permission: ""
|
||||||
|
# -- If you have a caching proxy, enter its base URL here.
|
||||||
alias_host: ""
|
alias_host: ""
|
||||||
# these must be set manually; autogenerated keys are rotated on each upgrade
|
# these must be set manually; autogenerated keys are rotated on each upgrade
|
||||||
secrets:
|
secrets:
|
||||||
@ -63,88 +75,220 @@ mastodon:
|
|||||||
vapid:
|
vapid:
|
||||||
private_key: ""
|
private_key: ""
|
||||||
public_key: ""
|
public_key: ""
|
||||||
|
# -- you can also specify the name of an existing Secret
|
||||||
|
# with keys SECRET_KEY_BASE and OTP_SECRET and
|
||||||
|
# VAPID_PRIVATE_KEY and VAPID_PUBLIC_KEY
|
||||||
|
existingSecret: ""
|
||||||
sidekiq:
|
sidekiq:
|
||||||
concurrency: 25
|
# -- Pod security context for all Sidekiq Pods, overwrites .Values.podSecurityContext
|
||||||
|
podSecurityContext: {}
|
||||||
|
# -- (Sidekiq Container) Security Context for all Pods, overwrites .Values.securityContext
|
||||||
|
securityContext: {}
|
||||||
|
# -- Resources for all Sidekiq Deployments unless overwritten
|
||||||
|
resources: {}
|
||||||
|
# -- Affinity for all Sidekiq Deployments unless overwritten, overwrites .Values.affinity
|
||||||
|
affinity: {}
|
||||||
|
# limits:
|
||||||
|
# cpu: "1"
|
||||||
|
# memory: 768Mi
|
||||||
|
# requests:
|
||||||
|
# cpu: 250m
|
||||||
|
# memory: 512Mi
|
||||||
|
workers:
|
||||||
|
- name: all-queues
|
||||||
|
# -- Number of threads / parallel sidekiq jobs that are executed per Pod
|
||||||
|
concurrency: 25
|
||||||
|
# -- Number of Pod replicas deployed by the Deployment
|
||||||
|
replicas: 1
|
||||||
|
# -- Resources for this specific deployment to allow optimised scaling, overwrites .Values.mastodon.sidekiq.resources
|
||||||
|
resources: {}
|
||||||
|
# -- Affinity for this specific deployment, overwrites .Values.affinity and .Values.mastodon.sidekiq.affinity
|
||||||
|
affinity: {}
|
||||||
|
# -- Sidekiq queues for Mastodon that are handled by this worker. See https://docs.joinmastodon.org/admin/scaling/#concurrency
|
||||||
|
# See https://github.com/mperham/sidekiq/wiki/Advanced-Options#queues for how to weight queues as argument
|
||||||
|
queues:
|
||||||
|
- default,8
|
||||||
|
- push,6
|
||||||
|
- ingress,4
|
||||||
|
- mailers,2
|
||||||
|
- pull
|
||||||
|
- scheduler # Make sure the scheduler queue only exists once and with a worker that has 1 replica.
|
||||||
|
#- name: push-pull
|
||||||
|
# concurrency: 50
|
||||||
|
# resources: {}
|
||||||
|
# replicas: 2
|
||||||
|
# queues:
|
||||||
|
# - push
|
||||||
|
# - pull
|
||||||
|
#- name: mailers
|
||||||
|
# concurrency: 25
|
||||||
|
# replicas: 2
|
||||||
|
# queues:
|
||||||
|
# - mailers
|
||||||
|
#- name: default
|
||||||
|
# concurrency: 25
|
||||||
|
# replicas: 2
|
||||||
|
# queues:
|
||||||
|
# - default
|
||||||
smtp:
|
smtp:
|
||||||
auth_method: plain
|
auth_method: plain
|
||||||
ca_file: /etc/ssl/certs/ca-certificates.crt
|
ca_file: /etc/ssl/certs/ca-certificates.crt
|
||||||
delivery_method: smtp
|
delivery_method: smtp
|
||||||
domain:
|
domain:
|
||||||
enable_starttls_auto: true
|
enable_starttls: 'auto'
|
||||||
from_address: notifications@example.com
|
from_address: notifications@example.com
|
||||||
login:
|
|
||||||
openssl_verify_mode: peer
|
openssl_verify_mode: peer
|
||||||
password:
|
|
||||||
port: 587
|
port: 587
|
||||||
reply_to:
|
reply_to:
|
||||||
server: smtp.mailgun.org
|
server: smtp.mailgun.org
|
||||||
tls: false
|
tls: false
|
||||||
|
login:
|
||||||
|
password:
|
||||||
|
# -- Instead of defining login/password above, you can specify the name of an existing secret here. Login and
|
||||||
|
# password must be located in keys named `login` and `password` respectively.
|
||||||
|
existingSecret:
|
||||||
streaming:
|
streaming:
|
||||||
port: 4000
|
port: 4000
|
||||||
# this should be set manually since os.cpus() returns the number of CPUs on
|
# -- this should be set manually since os.cpus() returns the number of CPUs on
|
||||||
# the node running the pod, which is unrelated to the resources allocated to
|
# the node running the pod, which is unrelated to the resources allocated to
|
||||||
# the pod by k8s
|
# the pod by k8s
|
||||||
workers: 1
|
workers: 1
|
||||||
# The base url for streaming can be set if the streaming API is deployed to
|
# -- The base url for streaming can be set if the streaming API is deployed to
|
||||||
# a different domain/subdomain.
|
# a different domain/subdomain.
|
||||||
# base_url: wws://streaming.example.com
|
base_url: null
|
||||||
|
# -- Number of Streaming Pods running
|
||||||
|
replicas: 1
|
||||||
|
# -- Affinity for Streaming Pods, overwrites .Values.affinity
|
||||||
|
affinity: {}
|
||||||
|
# -- Pod Security Context for Streaming Pods, overwrites .Values.podSecurityContext
|
||||||
|
podSecurityContext: {}
|
||||||
|
# -- (Streaming Container) Security Context for Streaming Pods, overwrites .Values.securityContext
|
||||||
|
securityContext: {}
|
||||||
|
# -- (Streaming Container) Resources for Streaming Pods, overwrites .Values.resources
|
||||||
|
resources: {}
|
||||||
|
# limits:
|
||||||
|
# cpu: "500m"
|
||||||
|
# memory: 512Mi
|
||||||
|
# requests:
|
||||||
|
# cpu: 250m
|
||||||
|
# memory: 128Mi
|
||||||
web:
|
web:
|
||||||
port: 3000
|
port: 3000
|
||||||
|
# -- Number of Web Pods running
|
||||||
|
replicas: 1
|
||||||
|
# -- Affinity for Web Pods, overwrites .Values.affinity
|
||||||
|
affinity: {}
|
||||||
|
# -- Pod Security Context for Web Pods, overwrites .Values.podSecurityContext
|
||||||
|
podSecurityContext: {}
|
||||||
|
# -- (Web Container) Security Context for Web Pods, overwrites .Values.securityContext
|
||||||
|
securityContext: {}
|
||||||
|
# -- (Web Container) Resources for Web Pods, overwrites .Values.resources
|
||||||
|
resources: {}
|
||||||
|
# limits:
|
||||||
|
# cpu: "1"
|
||||||
|
# memory: 1280Mi
|
||||||
|
# requests:
|
||||||
|
# cpu: 250m
|
||||||
|
# memory: 768Mi
|
||||||
|
# -- Puma-specific options. Below values are based on default behavior in
|
||||||
|
# config/puma.rb when no custom values are provided.
|
||||||
|
minThreads: "5"
|
||||||
|
maxThreads: "5"
|
||||||
|
workers: "2"
|
||||||
|
persistentTimeout: "20"
|
||||||
|
|
||||||
|
metrics:
|
||||||
|
statsd:
|
||||||
|
# -- Enable statsd publishing via STATSD_ADDR environment variable
|
||||||
|
address: ""
|
||||||
|
|
||||||
|
# Sets the PREPARED_STATEMENTS environment variable: https://docs.joinmastodon.org/admin/config/#prepared_statements
|
||||||
|
preparedStatements: true
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: true
|
||||||
className: ""
|
annotations:
|
||||||
annotations: {}
|
# For choosing an ingress ingressClassName is preferred over annotations
|
||||||
# nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
# kubernetes.io/ingress.class: nginx
|
||||||
# nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
#
|
||||||
# nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
# To automatically request TLS certificates use one of the following
|
||||||
|
# kubernetes.io/tls-acme: "true"
|
||||||
|
# cert-manager.io/cluster-issuer: "letsencrypt"
|
||||||
|
#
|
||||||
|
# ensure that NGINX's upload size matches Mastodon's
|
||||||
|
# for the K8s ingress controller:
|
||||||
|
# nginx.ingress.kubernetes.io/proxy-body-size: 40m
|
||||||
|
# for the NGINX ingress controller:
|
||||||
|
# nginx.org/client-max-body-size: 40m
|
||||||
|
# -- you can specify the ingressClassName if it differs from the default
|
||||||
|
ingressClassName:
|
||||||
hosts:
|
hosts:
|
||||||
- host: chart-example.local
|
- host: mastodon.local
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: '/'
|
||||||
pathType: ImplementationSpecific
|
tls:
|
||||||
tls: []
|
- secretName: mastodon-tls
|
||||||
# - secretName: chart-example-tls
|
hosts:
|
||||||
# hosts:
|
- mastodon.local
|
||||||
# - chart-example.local
|
|
||||||
|
|
||||||
# https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
|
# -- https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
# `false` will disable full-text search
|
# `false` will disable full-text search
|
||||||
#
|
#
|
||||||
# if you enable ES after the initial install, you will need to manually run
|
# if you enable ES after the initial install, you will need to manually run
|
||||||
# RAILS_ENV=production bundle exec rake chewy:sync
|
# RAILS_ENV=production bundle exec rake chewy:sync
|
||||||
# (https://docs.joinmastodon.org/admin/optional/elasticsearch/)
|
# (https://docs.joinmastodon.org/admin/optional/elasticsearch/)
|
||||||
|
# @ignored
|
||||||
enabled: true
|
enabled: true
|
||||||
|
# @ignored
|
||||||
image:
|
image:
|
||||||
tag: 7
|
tag: 7
|
||||||
|
|
||||||
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
|
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
|
||||||
postgresql:
|
postgresql:
|
||||||
# disable if you want to use an existing db; in which case the values below
|
# -- disable if you want to use an existing db; in which case the values below
|
||||||
# must match those of that external postgres instance
|
# must match those of that external postgres instance
|
||||||
enabled: true
|
enabled: true
|
||||||
# postgresqlHostname: preexisting-postgresql
|
# postgresqlHostname: preexisting-postgresql
|
||||||
postgresqlDatabase: mastodon_production
|
# postgresqlPort: 5432
|
||||||
# you must set a password; the password generated by the postgresql chart will
|
auth:
|
||||||
# be rotated on each upgrade:
|
database: mastodon_production
|
||||||
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrade
|
username: mastodon
|
||||||
postgresqlPassword: ""
|
# you must set a password; the password generated by the postgresql chart will
|
||||||
postgresqlUsername: postgres
|
# be rotated on each upgrade:
|
||||||
|
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#upgrade
|
||||||
|
password: ""
|
||||||
|
# Set the password for the "postgres" admin user
|
||||||
|
# set this to the same value as above if you've previously installed
|
||||||
|
# this chart and you're having problems getting mastodon to connect to the DB
|
||||||
|
# postgresPassword: ""
|
||||||
|
# you can also specify the name of an existing Secret
|
||||||
|
# with a key of password set to the password you want
|
||||||
|
existingSecret: ""
|
||||||
|
|
||||||
# https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
|
# https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
|
||||||
redis:
|
redis:
|
||||||
# you must set a password; the password generated by the redis chart will be
|
# disable if you want to use an existing redis instance; in which case the
|
||||||
# rotated on each upgrade:
|
# values below must match those of that external redis instance
|
||||||
password: ""
|
enabled: true
|
||||||
|
hostname: ""
|
||||||
|
port: 6379
|
||||||
|
auth:
|
||||||
|
# -- you must set a password; the password generated by the redis chart will be
|
||||||
|
# rotated on each upgrade:
|
||||||
|
password: ""
|
||||||
|
# you can also specify the name of an existing Secret
|
||||||
|
# with a key of redis-password set to the password you want
|
||||||
|
# existingSecret: ""
|
||||||
|
|
||||||
|
# @ignored
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
externalAuth:
|
externalAuth:
|
||||||
oidc:
|
oidc:
|
||||||
# OpenID Connect support is proposed in PR #16221 and awaiting merge.
|
# -- OpenID Connect support is proposed in PR #16221 and awaiting merge.
|
||||||
enabled: false
|
enabled: false
|
||||||
# display_name: "example-label"
|
# display_name: "example-label"
|
||||||
# issuer: https://login.example.space/auth/realms/example-space
|
# issuer: https://login.example.space/auth/realms/example-space
|
||||||
@ -155,62 +299,62 @@ externalAuth:
|
|||||||
# client_secret: SECRETKEY
|
# client_secret: SECRETKEY
|
||||||
# redirect_uri: https://example.com/auth/auth/openid_connect/callback
|
# redirect_uri: https://example.com/auth/auth/openid_connect/callback
|
||||||
# assume_email_is_verified: true
|
# assume_email_is_verified: true
|
||||||
# client_auth_method:
|
# client_auth_method:
|
||||||
# response_type:
|
# response_type:
|
||||||
# response_mode:
|
# response_mode:
|
||||||
# display:
|
# display:
|
||||||
# prompt:
|
# prompt:
|
||||||
# send_nonce:
|
# send_nonce:
|
||||||
# send_scope_to_token_endpoint:
|
# send_scope_to_token_endpoint:
|
||||||
# idp_logout_redirect_uri:
|
# idp_logout_redirect_uri:
|
||||||
# http_scheme:
|
# http_scheme:
|
||||||
# host:
|
# host:
|
||||||
# port:
|
# port:
|
||||||
# jwks_uri:
|
# jwks_uri:
|
||||||
# auth_endpoint:
|
# auth_endpoint:
|
||||||
# token_endpoint:
|
# token_endpoint:
|
||||||
# user_info_endpoint:
|
# user_info_endpoint:
|
||||||
# end_session_endpoint:
|
# end_session_endpoint:
|
||||||
saml:
|
saml:
|
||||||
enabled: false
|
enabled: false
|
||||||
# acs_url: http://mastodon.example.com/auth/auth/saml/callback
|
# acs_url: http://mastodon.example.com/auth/auth/saml/callback
|
||||||
# issuer: mastodon
|
# issuer: mastodon
|
||||||
# idp_sso_target_url: https://login.example.com/auth/realms/example/protocol/saml
|
# idp_sso_target_url: https://login.example.com/auth/realms/example/protocol/saml
|
||||||
# idp_cert: '-----BEGIN CERTIFICATE-----[your_cert_content]-----END CERTIFICATE-----'
|
# idp_cert: '-----BEGIN CERTIFICATE-----[your_cert_content]-----END CERTIFICATE-----'
|
||||||
# idp_cert_fingerprint:
|
# idp_cert_fingerprint:
|
||||||
# name_identifier_format: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
|
# name_identifier_format: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
|
||||||
# cert:
|
# cert:
|
||||||
# private_key:
|
# private_key:
|
||||||
# want_assertion_signed: true
|
# want_assertion_signed: true
|
||||||
# want_assertion_encrypted: true
|
# want_assertion_encrypted: true
|
||||||
# assume_email_is_verified: true
|
# assume_email_is_verified: true
|
||||||
# uid_attribute: "urn:oid:0.9.2342.19200300.100.1.1"
|
# uid_attribute: "urn:oid:0.9.2342.19200300.100.1.1"
|
||||||
# attributes_statements:
|
# attributes_statements:
|
||||||
# uid: "urn:oid:0.9.2342.19200300.100.1.1"
|
# uid: "urn:oid:0.9.2342.19200300.100.1.1"
|
||||||
# email: "urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
|
# email: "urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
|
||||||
# full_name: "urn:oid:2.16.840.1.113730.3.1.241"
|
# full_name: "urn:oid:2.16.840.1.113730.3.1.241"
|
||||||
# first_name: "urn:oid:2.5.4.42"
|
# first_name: "urn:oid:2.5.4.42"
|
||||||
# last_name: "urn:oid:2.5.4.4"
|
# last_name: "urn:oid:2.5.4.4"
|
||||||
# verified:
|
# verified:
|
||||||
# verified_email:
|
# verified_email:
|
||||||
oauth_global:
|
oauth_global:
|
||||||
# Force redirect local login to CAS. Does not function with SAML or LDAP.
|
# -- Automatically redirect to OIDC, CAS or SAML, and don't use local account authentication when clicking on Sign-In
|
||||||
oauth_redirect_at_sign_in: false
|
omniauth_only: false
|
||||||
cas:
|
cas:
|
||||||
enabled: false
|
enabled: false
|
||||||
# url: https://sso.myserver.com
|
# url: https://sso.myserver.com
|
||||||
# host: sso.myserver.com
|
# host: sso.myserver.com
|
||||||
# port: 443
|
# port: 443
|
||||||
# ssl: true
|
# ssl: true
|
||||||
# validate_url:
|
# validate_url:
|
||||||
# callback_url:
|
# callback_url:
|
||||||
# logout_url:
|
# logout_url:
|
||||||
# login_url:
|
# login_url:
|
||||||
# uid_field: 'user'
|
# uid_field: 'user'
|
||||||
# ca_path:
|
# ca_path:
|
||||||
# disable_ssl_verification: false
|
# disable_ssl_verification: false
|
||||||
# assume_email_is_verified: true
|
# assume_email_is_verified: true
|
||||||
# keys:
|
# keys:
|
||||||
# uid: 'user'
|
# uid: 'user'
|
||||||
# name: 'name'
|
# name: 'name'
|
||||||
# email: 'email'
|
# email: 'email'
|
||||||
@ -220,7 +364,7 @@ externalAuth:
|
|||||||
# location: 'location'
|
# location: 'location'
|
||||||
# image: 'image'
|
# image: 'image'
|
||||||
# phone: 'phone'
|
# phone: 'phone'
|
||||||
pam:
|
pam:
|
||||||
enabled: false
|
enabled: false
|
||||||
# email_domain: example.com
|
# email_domain: example.com
|
||||||
# default_service: rpam
|
# default_service: rpam
|
||||||
@ -228,11 +372,12 @@ externalAuth:
|
|||||||
ldap:
|
ldap:
|
||||||
enabled: false
|
enabled: false
|
||||||
# host: myservice.namespace.svc
|
# host: myservice.namespace.svc
|
||||||
# port: 389
|
# port: 636
|
||||||
# method: simple_tls
|
# method: simple_tls
|
||||||
# base:
|
# tls_no_verify: true
|
||||||
# bind_on:
|
# base:
|
||||||
# password:
|
# bind_dn:
|
||||||
|
# password:
|
||||||
# uid: cn
|
# uid: cn
|
||||||
# mail: mail
|
# mail: mail
|
||||||
# search_filter: "(|(%{uid}=%{email})(%{mail}=%{email}))"
|
# search_filter: "(|(%{uid}=%{email})(%{mail}=%{email}))"
|
||||||
@ -241,7 +386,7 @@ externalAuth:
|
|||||||
# search: "., -"
|
# search: "., -"
|
||||||
# replace: _
|
# replace: _
|
||||||
|
|
||||||
# https://github.com/tootsuite/mastodon/blob/master/Dockerfile#L88
|
# -- https://github.com/mastodon/mastodon/blob/main/Dockerfile#L75
|
||||||
#
|
#
|
||||||
# if you manually change the UID/GID environment variables, ensure these values
|
# if you manually change the UID/GID environment variables, ensure these values
|
||||||
# match:
|
# match:
|
||||||
@ -250,19 +395,31 @@ podSecurityContext:
|
|||||||
runAsGroup: 991
|
runAsGroup: 991
|
||||||
fsGroup: 991
|
fsGroup: 991
|
||||||
|
|
||||||
|
# @ignored
|
||||||
securityContext: {}
|
securityContext: {}
|
||||||
|
|
||||||
serviceAccount:
|
serviceAccount:
|
||||||
# Specifies whether a service account should be created
|
# -- Specifies whether a service account should be created
|
||||||
create: true
|
create: true
|
||||||
# Annotations to add to the service account
|
# -- Annotations to add to the service account
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# The name of the service account to use.
|
# -- The name of the service account to use.
|
||||||
# If not set and create is true, a name is generated using the fullname template
|
# If not set and create is true, a name is generated using the fullname template
|
||||||
name: ""
|
name: ""
|
||||||
|
|
||||||
|
# -- Kubernetes manages pods for jobs and pods for deployments differently, so you might
|
||||||
|
# need to apply different annotations to the two different sets of pods. The annotations
|
||||||
|
# set with podAnnotations will be added to all deployment-managed pods.
|
||||||
podAnnotations: {}
|
podAnnotations: {}
|
||||||
|
|
||||||
|
# If set to true, an annotation with the current chart release number will be added to all mastodon pods. This will
|
||||||
|
# cause all pods to be recreated every `helm upgrade` regardless of whether their config or spec changes.
|
||||||
|
revisionPodAnnotation: true
|
||||||
|
|
||||||
|
# The annotations set with jobAnnotations will be added to all job pods.
|
||||||
|
jobAnnotations: {}
|
||||||
|
|
||||||
|
# -- Default resources for all Deployments and jobs unless overwritten
|
||||||
resources: {}
|
resources: {}
|
||||||
# We usually recommend not to specify default resources and to leave this as a conscious
|
# We usually recommend not to specify default resources and to leave this as a conscious
|
||||||
# choice for the user. This also increases chances charts run on environments with little
|
# choice for the user. This also increases chances charts run on environments with little
|
||||||
@ -275,15 +432,11 @@ resources: {}
|
|||||||
# cpu: 100m
|
# cpu: 100m
|
||||||
# memory: 128Mi
|
# memory: 128Mi
|
||||||
|
|
||||||
autoscaling:
|
# @ignored
|
||||||
enabled: false
|
|
||||||
minReplicas: 1
|
|
||||||
maxReplicas: 100
|
|
||||||
targetCPUUtilizationPercentage: 80
|
|
||||||
# targetMemoryUtilizationPercentage: 80
|
|
||||||
|
|
||||||
nodeSelector: {}
|
nodeSelector: {}
|
||||||
|
|
||||||
|
# @ignored
|
||||||
tolerations: []
|
tolerations: []
|
||||||
|
|
||||||
|
# -- Affinity for all pods unless overwritten
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: postgres-operator-ui
|
name: postgres-operator-ui
|
||||||
version: 1.8.2
|
version: 1.9.0
|
||||||
appVersion: 1.8.2
|
appVersion: 1.9.0
|
||||||
home: https://github.com/zalando/postgres-operator
|
home: https://github.com/zalando/postgres-operator
|
||||||
description: Postgres Operator UI provides a graphical interface for a convenient database-as-a-service user experience
|
description: Postgres Operator UI provides a graphical interface for a convenient database-as-a-service user experience
|
||||||
keywords:
|
keywords:
|
||||||
|
@ -1,9 +1,32 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
entries:
|
entries:
|
||||||
postgres-operator-ui:
|
postgres-operator-ui:
|
||||||
|
- apiVersion: v2
|
||||||
|
appVersion: 1.9.0
|
||||||
|
created: "2023-01-17T15:45:57.564334046+01:00"
|
||||||
|
description: Postgres Operator UI provides a graphical interface for a convenient
|
||||||
|
database-as-a-service user experience
|
||||||
|
digest: df434af6c8b697fe0631017ecc25e3c79e125361ae6622347cea41a545153bdc
|
||||||
|
home: https://github.com/zalando/postgres-operator
|
||||||
|
keywords:
|
||||||
|
- postgres
|
||||||
|
- operator
|
||||||
|
- ui
|
||||||
|
- cloud-native
|
||||||
|
- patroni
|
||||||
|
- spilo
|
||||||
|
maintainers:
|
||||||
|
- email: opensource@zalando.de
|
||||||
|
name: Zalando
|
||||||
|
name: postgres-operator-ui
|
||||||
|
sources:
|
||||||
|
- https://github.com/zalando/postgres-operator
|
||||||
|
urls:
|
||||||
|
- postgres-operator-ui-1.9.0.tgz
|
||||||
|
version: 1.9.0
|
||||||
- apiVersion: v2
|
- apiVersion: v2
|
||||||
appVersion: 1.8.2
|
appVersion: 1.8.2
|
||||||
created: "2022-06-20T11:58:48.148537324+02:00"
|
created: "2023-01-17T15:45:57.562574292+01:00"
|
||||||
description: Postgres Operator UI provides a graphical interface for a convenient
|
description: Postgres Operator UI provides a graphical interface for a convenient
|
||||||
database-as-a-service user experience
|
database-as-a-service user experience
|
||||||
digest: fbfc90fa8fd007a08a7c02e0ec9108bb8282cbb42b8c976d88f2193d6edff30c
|
digest: fbfc90fa8fd007a08a7c02e0ec9108bb8282cbb42b8c976d88f2193d6edff30c
|
||||||
@ -26,7 +49,7 @@ entries:
|
|||||||
version: 1.8.2
|
version: 1.8.2
|
||||||
- apiVersion: v2
|
- apiVersion: v2
|
||||||
appVersion: 1.8.1
|
appVersion: 1.8.1
|
||||||
created: "2022-06-20T11:58:48.147974157+02:00"
|
created: "2023-01-17T15:45:57.561981294+01:00"
|
||||||
description: Postgres Operator UI provides a graphical interface for a convenient
|
description: Postgres Operator UI provides a graphical interface for a convenient
|
||||||
database-as-a-service user experience
|
database-as-a-service user experience
|
||||||
digest: d26342e385ea51a0fbfbe23477999863e9489664ae803ea5c56da8897db84d24
|
digest: d26342e385ea51a0fbfbe23477999863e9489664ae803ea5c56da8897db84d24
|
||||||
@ -49,7 +72,7 @@ entries:
|
|||||||
version: 1.8.1
|
version: 1.8.1
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
appVersion: 1.8.0
|
appVersion: 1.8.0
|
||||||
created: "2022-06-20T11:58:48.147454782+02:00"
|
created: "2023-01-17T15:45:57.561383172+01:00"
|
||||||
description: Postgres Operator UI provides a graphical interface for a convenient
|
description: Postgres Operator UI provides a graphical interface for a convenient
|
||||||
database-as-a-service user experience
|
database-as-a-service user experience
|
||||||
digest: d4a7b40c23fd167841cc28342afdbd5ecc809181913a5c31061c83139187f148
|
digest: d4a7b40c23fd167841cc28342afdbd5ecc809181913a5c31061c83139187f148
|
||||||
@ -72,7 +95,7 @@ entries:
|
|||||||
version: 1.8.0
|
version: 1.8.0
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
appVersion: 1.7.1
|
appVersion: 1.7.1
|
||||||
created: "2022-06-20T11:58:48.14693682+02:00"
|
created: "2023-01-17T15:45:57.560738084+01:00"
|
||||||
description: Postgres Operator UI provides a graphical interface for a convenient
|
description: Postgres Operator UI provides a graphical interface for a convenient
|
||||||
database-as-a-service user experience
|
database-as-a-service user experience
|
||||||
digest: 97aed1a1d37cd5f8441eea9522f38e56cc829786ad2134c437a5e6a15c995869
|
digest: 97aed1a1d37cd5f8441eea9522f38e56cc829786ad2134c437a5e6a15c995869
|
||||||
@ -95,7 +118,7 @@ entries:
|
|||||||
version: 1.7.1
|
version: 1.7.1
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
appVersion: 1.7.0
|
appVersion: 1.7.0
|
||||||
created: "2022-06-20T11:58:48.146431264+02:00"
|
created: "2023-01-17T15:45:57.560150807+01:00"
|
||||||
description: Postgres Operator UI provides a graphical interface for a convenient
|
description: Postgres Operator UI provides a graphical interface for a convenient
|
||||||
database-as-a-service user experience
|
database-as-a-service user experience
|
||||||
digest: 37fba1968347daad393dbd1c6ee6e5b6a24d1095f972c0102197531c62dcada8
|
digest: 37fba1968347daad393dbd1c6ee6e5b6a24d1095f972c0102197531c62dcada8
|
||||||
@ -116,96 +139,4 @@ entries:
|
|||||||
urls:
|
urls:
|
||||||
- postgres-operator-ui-1.7.0.tgz
|
- postgres-operator-ui-1.7.0.tgz
|
||||||
version: 1.7.0
|
version: 1.7.0
|
||||||
- apiVersion: v1
|
generated: "2023-01-17T15:45:57.558968127+01:00"
|
||||||
appVersion: 1.6.3
|
|
||||||
created: "2022-06-20T11:58:48.14552248+02:00"
|
|
||||||
description: Postgres Operator UI provides a graphical interface for a convenient
|
|
||||||
database-as-a-service user experience
|
|
||||||
digest: 08b810aa632dcc719e4785ef184e391267f7c460caa99677f2d00719075aac78
|
|
||||||
home: https://github.com/zalando/postgres-operator
|
|
||||||
keywords:
|
|
||||||
- postgres
|
|
||||||
- operator
|
|
||||||
- ui
|
|
||||||
- cloud-native
|
|
||||||
- patroni
|
|
||||||
- spilo
|
|
||||||
maintainers:
|
|
||||||
- email: opensource@zalando.de
|
|
||||||
name: Zalando
|
|
||||||
name: postgres-operator-ui
|
|
||||||
sources:
|
|
||||||
- https://github.com/zalando/postgres-operator
|
|
||||||
urls:
|
|
||||||
- postgres-operator-ui-1.6.3.tgz
|
|
||||||
version: 1.6.3
|
|
||||||
- apiVersion: v1
|
|
||||||
appVersion: 1.6.2
|
|
||||||
created: "2022-06-20T11:58:48.145033254+02:00"
|
|
||||||
description: Postgres Operator UI provides a graphical interface for a convenient
|
|
||||||
database-as-a-service user experience
|
|
||||||
digest: 14d1559bb0bd1e1e828f2daaaa6f6ac9ffc268d79824592c3589b55dd39241f6
|
|
||||||
home: https://github.com/zalando/postgres-operator
|
|
||||||
keywords:
|
|
||||||
- postgres
|
|
||||||
- operator
|
|
||||||
- ui
|
|
||||||
- cloud-native
|
|
||||||
- patroni
|
|
||||||
- spilo
|
|
||||||
maintainers:
|
|
||||||
- email: opensource@zalando.de
|
|
||||||
name: Zalando
|
|
||||||
name: postgres-operator-ui
|
|
||||||
sources:
|
|
||||||
- https://github.com/zalando/postgres-operator
|
|
||||||
urls:
|
|
||||||
- postgres-operator-ui-1.6.2.tgz
|
|
||||||
version: 1.6.2
|
|
||||||
- apiVersion: v1
|
|
||||||
appVersion: 1.6.1
|
|
||||||
created: "2022-06-20T11:58:48.144518247+02:00"
|
|
||||||
description: Postgres Operator UI provides a graphical interface for a convenient
|
|
||||||
database-as-a-service user experience
|
|
||||||
digest: 3d321352f2f1e7bb7450aa8876e3d818aa9f9da9bd4250507386f0490f2c1969
|
|
||||||
home: https://github.com/zalando/postgres-operator
|
|
||||||
keywords:
|
|
||||||
- postgres
|
|
||||||
- operator
|
|
||||||
- ui
|
|
||||||
- cloud-native
|
|
||||||
- patroni
|
|
||||||
- spilo
|
|
||||||
maintainers:
|
|
||||||
- email: opensource@zalando.de
|
|
||||||
name: Zalando
|
|
||||||
name: postgres-operator-ui
|
|
||||||
sources:
|
|
||||||
- https://github.com/zalando/postgres-operator
|
|
||||||
urls:
|
|
||||||
- postgres-operator-ui-1.6.1.tgz
|
|
||||||
version: 1.6.1
|
|
||||||
- apiVersion: v1
|
|
||||||
appVersion: 1.6.0
|
|
||||||
created: "2022-06-20T11:58:48.143943237+02:00"
|
|
||||||
description: Postgres Operator UI provides a graphical interface for a convenient
|
|
||||||
database-as-a-service user experience
|
|
||||||
digest: 1e0aa1e7db3c1daa96927ffbf6fdbcdb434562f961833cb5241ddbe132220ee4
|
|
||||||
home: https://github.com/zalando/postgres-operator
|
|
||||||
keywords:
|
|
||||||
- postgres
|
|
||||||
- operator
|
|
||||||
- ui
|
|
||||||
- cloud-native
|
|
||||||
- patroni
|
|
||||||
- spilo
|
|
||||||
maintainers:
|
|
||||||
- email: opensource@zalando.de
|
|
||||||
name: Zalando
|
|
||||||
name: postgres-operator-ui
|
|
||||||
sources:
|
|
||||||
- https://github.com/zalando/postgres-operator
|
|
||||||
urls:
|
|
||||||
- postgres-operator-ui-1.6.0.tgz
|
|
||||||
version: 1.6.0
|
|
||||||
generated: "2022-06-20T11:58:48.143164875+02:00"
|
|
||||||
|
@ -19,6 +19,10 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }}
|
app.kubernetes.io/name: {{ template "postgres-operator-ui.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- with .Values.podAnnotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: {{ include "postgres-operator-ui.serviceAccountName" . }}
|
serviceAccountName: {{ include "postgres-operator-ui.serviceAccountName" . }}
|
||||||
{{- if .Values.imagePullSecrets }}
|
{{- if .Values.imagePullSecrets }}
|
||||||
@ -75,7 +79,12 @@ spec:
|
|||||||
"cost_throughput": 0.0476,
|
"cost_throughput": 0.0476,
|
||||||
"cost_core": 0.0575,
|
"cost_core": 0.0575,
|
||||||
"cost_memory": 0.014375,
|
"cost_memory": 0.014375,
|
||||||
|
"free_iops": 3000,
|
||||||
|
"free_throughput": 125,
|
||||||
|
"limit_iops": 16000,
|
||||||
|
"limit_throughput": 1000,
|
||||||
"postgresql_versions": [
|
"postgresql_versions": [
|
||||||
|
"15",
|
||||||
"14",
|
"14",
|
||||||
"13",
|
"13",
|
||||||
"12",
|
"12",
|
||||||
|
@ -6,6 +6,10 @@ metadata:
|
|||||||
helm.sh/chart: {{ template "postgres-operator-ui.chart" . }}
|
helm.sh/chart: {{ template "postgres-operator-ui.chart" . }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- with .Values.service.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
name: {{ template "postgres-operator-ui.fullname" . }}
|
name: {{ template "postgres-operator-ui.fullname" . }}
|
||||||
namespace: {{ .Release.Namespace }}
|
namespace: {{ .Release.Namespace }}
|
||||||
spec:
|
spec:
|
||||||
|
@ -8,7 +8,7 @@ replicaCount: 1
|
|||||||
image:
|
image:
|
||||||
registry: registry.opensource.zalan.do
|
registry: registry.opensource.zalan.do
|
||||||
repository: acid/postgres-operator-ui
|
repository: acid/postgres-operator-ui
|
||||||
tag: v1.8.2
|
tag: v1.9.0
|
||||||
pullPolicy: "IfNotPresent"
|
pullPolicy: "IfNotPresent"
|
||||||
|
|
||||||
# Optionally specify an array of imagePullSecrets.
|
# Optionally specify an array of imagePullSecrets.
|
||||||
@ -48,6 +48,10 @@ envs:
|
|||||||
teams:
|
teams:
|
||||||
- "acid"
|
- "acid"
|
||||||
|
|
||||||
|
# Extra pod annotations
|
||||||
|
podAnnotations:
|
||||||
|
{}
|
||||||
|
|
||||||
# configure extra UI ENVs
|
# configure extra UI ENVs
|
||||||
# Extra ENVs are writen in kubenertes format and added "as is" to the pod's env variables
|
# Extra ENVs are writen in kubenertes format and added "as is" to the pod's env variables
|
||||||
# https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
|
# https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
|
||||||
@ -85,6 +89,8 @@ service:
|
|||||||
# If the type of the service is NodePort a port can be specified using the nodePort field
|
# If the type of the service is NodePort a port can be specified using the nodePort field
|
||||||
# If the nodePort field is not specified, or if it has no value, then a random port is used
|
# If the nodePort field is not specified, or if it has no value, then a random port is used
|
||||||
# nodePort: 32521
|
# nodePort: 32521
|
||||||
|
annotations:
|
||||||
|
{}
|
||||||
|
|
||||||
# configure UI ingress. If needed: "enabled: true"
|
# configure UI ingress. If needed: "enabled: true"
|
||||||
ingress:
|
ingress:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
name: postgres-operator
|
name: postgres-operator
|
||||||
version: 1.8.2
|
version: 1.9.0
|
||||||
appVersion: 1.8.2
|
appVersion: 1.9.0
|
||||||
home: https://github.com/zalando/postgres-operator
|
home: https://github.com/zalando/postgres-operator
|
||||||
description: Postgres Operator creates and manages PostgreSQL clusters running in Kubernetes
|
description: Postgres Operator creates and manages PostgreSQL clusters running in Kubernetes
|
||||||
keywords:
|
keywords:
|
||||||
|
@ -68,7 +68,7 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
docker_image:
|
docker_image:
|
||||||
type: string
|
type: string
|
||||||
default: "registry.opensource.zalan.do/acid/spilo-14:2.1-p6"
|
default: "ghcr.io/zalando/spilo-15:2.1-p9"
|
||||||
enable_crd_registration:
|
enable_crd_registration:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
@ -88,9 +88,14 @@ spec:
|
|||||||
enable_spilo_wal_path_compat:
|
enable_spilo_wal_path_compat:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
enable_team_id_clustername_prefix:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
etcd_host:
|
etcd_host:
|
||||||
type: string
|
type: string
|
||||||
default: ""
|
default: ""
|
||||||
|
ignore_instance_limits_annotation_key:
|
||||||
|
type: string
|
||||||
kubernetes_use_configmaps:
|
kubernetes_use_configmaps:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
@ -162,10 +167,10 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
minimal_major_version:
|
minimal_major_version:
|
||||||
type: string
|
type: string
|
||||||
default: "9.6"
|
default: "11"
|
||||||
target_major_version:
|
target_major_version:
|
||||||
type: string
|
type: string
|
||||||
default: "14"
|
default: "15"
|
||||||
kubernetes:
|
kubernetes:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -209,6 +214,9 @@ spec:
|
|||||||
enable_pod_disruption_budget:
|
enable_pod_disruption_budget:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
|
enable_readiness_probe:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
enable_sidecars:
|
enable_sidecars:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
@ -270,6 +278,9 @@ spec:
|
|||||||
pdb_name_format:
|
pdb_name_format:
|
||||||
type: string
|
type: string
|
||||||
default: "postgres-{cluster}-pdb"
|
default: "postgres-{cluster}-pdb"
|
||||||
|
pod_antiaffinity_preferred_during_scheduling:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
pod_antiaffinity_topology_key:
|
pod_antiaffinity_topology_key:
|
||||||
type: string
|
type: string
|
||||||
default: "kubernetes.io/hostname"
|
default: "kubernetes.io/hostname"
|
||||||
@ -303,6 +314,9 @@ spec:
|
|||||||
secret_name_template:
|
secret_name_template:
|
||||||
type: string
|
type: string
|
||||||
default: "{username}.{cluster}.credentials.{tprkind}.{tprgroup}"
|
default: "{username}.{cluster}.credentials.{tprkind}.{tprgroup}"
|
||||||
|
share_pgsocket_with_sidecars:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
spilo_allow_privilege_escalation:
|
spilo_allow_privilege_escalation:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: true
|
default: true
|
||||||
@ -319,6 +333,7 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
- "ebs"
|
- "ebs"
|
||||||
|
- "mixed"
|
||||||
- "pvc"
|
- "pvc"
|
||||||
- "off"
|
- "off"
|
||||||
default: "pvc"
|
default: "pvc"
|
||||||
@ -347,6 +362,12 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
||||||
default: "100Mi"
|
default: "100Mi"
|
||||||
|
max_cpu_request:
|
||||||
|
type: string
|
||||||
|
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
|
||||||
|
max_memory_request:
|
||||||
|
type: string
|
||||||
|
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
||||||
min_cpu_limit:
|
min_cpu_limit:
|
||||||
type: string
|
type: string
|
||||||
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
|
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
|
||||||
@ -411,9 +432,15 @@ spec:
|
|||||||
- "Local"
|
- "Local"
|
||||||
default: "Cluster"
|
default: "Cluster"
|
||||||
master_dns_name_format:
|
master_dns_name_format:
|
||||||
|
type: string
|
||||||
|
default: "{cluster}.{namespace}.{hostedzone}"
|
||||||
|
master_legacy_dns_name_format:
|
||||||
type: string
|
type: string
|
||||||
default: "{cluster}.{team}.{hostedzone}"
|
default: "{cluster}.{team}.{hostedzone}"
|
||||||
replica_dns_name_format:
|
replica_dns_name_format:
|
||||||
|
type: string
|
||||||
|
default: "{cluster}-repl.{namespace}.{hostedzone}"
|
||||||
|
replica_legacy_dns_name_format:
|
||||||
type: string
|
type: string
|
||||||
default: "{cluster}-repl.{team}.{hostedzone}"
|
default: "{cluster}-repl.{team}.{hostedzone}"
|
||||||
aws_or_gcp:
|
aws_or_gcp:
|
||||||
@ -448,16 +475,38 @@ spec:
|
|||||||
logical_backup:
|
logical_backup:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
logical_backup_azure_storage_account_name:
|
||||||
|
type: string
|
||||||
|
logical_backup_azure_storage_container:
|
||||||
|
type: string
|
||||||
|
logical_backup_azure_storage_account_key:
|
||||||
|
type: string
|
||||||
|
logical_backup_cpu_limit:
|
||||||
|
type: string
|
||||||
|
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
|
||||||
|
logical_backup_cpu_request:
|
||||||
|
type: string
|
||||||
|
pattern: '^(\d+m|\d+(\.\d{1,3})?)$'
|
||||||
logical_backup_docker_image:
|
logical_backup_docker_image:
|
||||||
type: string
|
type: string
|
||||||
default: "registry.opensource.zalan.do/acid/logical-backup:v1.8.2"
|
default: "registry.opensource.zalan.do/acid/logical-backup:v1.9.0"
|
||||||
logical_backup_google_application_credentials:
|
logical_backup_google_application_credentials:
|
||||||
type: string
|
type: string
|
||||||
logical_backup_job_prefix:
|
logical_backup_job_prefix:
|
||||||
type: string
|
type: string
|
||||||
default: "logical-backup-"
|
default: "logical-backup-"
|
||||||
|
logical_backup_memory_limit:
|
||||||
|
type: string
|
||||||
|
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
||||||
|
logical_backup_memory_request:
|
||||||
|
type: string
|
||||||
|
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
||||||
logical_backup_provider:
|
logical_backup_provider:
|
||||||
type: string
|
type: string
|
||||||
|
enum:
|
||||||
|
- "az"
|
||||||
|
- "gcs"
|
||||||
|
- "s3"
|
||||||
default: "s3"
|
default: "s3"
|
||||||
logical_backup_s3_access_key_id:
|
logical_backup_s3_access_key_id:
|
||||||
type: string
|
type: string
|
||||||
@ -588,7 +637,7 @@ spec:
|
|||||||
default: "pooler"
|
default: "pooler"
|
||||||
connection_pooler_image:
|
connection_pooler_image:
|
||||||
type: string
|
type: string
|
||||||
default: "registry.opensource.zalan.do/acid/pgbouncer:master-22"
|
default: "registry.opensource.zalan.do/acid/pgbouncer:master-26"
|
||||||
connection_pooler_max_db_connections:
|
connection_pooler_max_db_connections:
|
||||||
type: integer
|
type: integer
|
||||||
default: 60
|
default: 60
|
||||||
@ -618,6 +667,12 @@ spec:
|
|||||||
type: string
|
type: string
|
||||||
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
pattern: '^(\d+(e\d+)?|\d+(\.\d+)?(e\d+)?[EPTGMK]i?)$'
|
||||||
default: "100Mi"
|
default: "100Mi"
|
||||||
|
patroni:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
failsafe_mode:
|
||||||
|
type: boolean
|
||||||
|
default: false
|
||||||
status:
|
status:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
|
@ -223,6 +223,10 @@ spec:
|
|||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
pattern: '^\ *((Mon|Tue|Wed|Thu|Fri|Sat|Sun):(2[0-3]|[01]?\d):([0-5]?\d)|(2[0-3]|[01]?\d):([0-5]?\d))-((Mon|Tue|Wed|Thu|Fri|Sat|Sun):(2[0-3]|[01]?\d):([0-5]?\d)|(2[0-3]|[01]?\d):([0-5]?\d))\ *$'
|
pattern: '^\ *((Mon|Tue|Wed|Thu|Fri|Sat|Sun):(2[0-3]|[01]?\d):([0-5]?\d)|(2[0-3]|[01]?\d):([0-5]?\d))-((Mon|Tue|Wed|Thu|Fri|Sat|Sun):(2[0-3]|[01]?\d):([0-5]?\d)|(2[0-3]|[01]?\d):([0-5]?\d))\ *$'
|
||||||
|
masterServiceAnnotations:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
nodeAffinity:
|
nodeAffinity:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -320,6 +324,8 @@ spec:
|
|||||||
patroni:
|
patroni:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
failsafe_mode:
|
||||||
|
type: boolean
|
||||||
initdb:
|
initdb:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
@ -365,13 +371,12 @@ spec:
|
|||||||
version:
|
version:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
- "9.5"
|
|
||||||
- "9.6"
|
|
||||||
- "10"
|
- "10"
|
||||||
- "11"
|
- "11"
|
||||||
- "12"
|
- "12"
|
||||||
- "13"
|
- "13"
|
||||||
- "14"
|
- "14"
|
||||||
|
- "15"
|
||||||
parameters:
|
parameters:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
@ -401,6 +406,10 @@ spec:
|
|||||||
replicaLoadBalancer:
|
replicaLoadBalancer:
|
||||||
type: boolean
|
type: boolean
|
||||||
description: deprecated
|
description: deprecated
|
||||||
|
replicaServiceAnnotations:
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
resources:
|
resources:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
@ -620,7 +629,7 @@ spec:
|
|||||||
operator:
|
operator:
|
||||||
type: string
|
type: string
|
||||||
enum:
|
enum:
|
||||||
- DoesNotExists
|
- DoesNotExist
|
||||||
- Exists
|
- Exists
|
||||||
- In
|
- In
|
||||||
- NotIn
|
- NotIn
|
||||||
|
@ -1,9 +1,31 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
entries:
|
entries:
|
||||||
postgres-operator:
|
postgres-operator:
|
||||||
|
- apiVersion: v2
|
||||||
|
appVersion: 1.9.0
|
||||||
|
created: "2023-01-17T15:33:03.869287885+01:00"
|
||||||
|
description: Postgres Operator creates and manages PostgreSQL clusters running
|
||||||
|
in Kubernetes
|
||||||
|
digest: 64df90c898ca591eb3a330328173ffaadfbf9ddd474d8c42ed143edc9e3f4276
|
||||||
|
home: https://github.com/zalando/postgres-operator
|
||||||
|
keywords:
|
||||||
|
- postgres
|
||||||
|
- operator
|
||||||
|
- cloud-native
|
||||||
|
- patroni
|
||||||
|
- spilo
|
||||||
|
maintainers:
|
||||||
|
- email: opensource@zalando.de
|
||||||
|
name: Zalando
|
||||||
|
name: postgres-operator
|
||||||
|
sources:
|
||||||
|
- https://github.com/zalando/postgres-operator
|
||||||
|
urls:
|
||||||
|
- postgres-operator-1.9.0.tgz
|
||||||
|
version: 1.9.0
|
||||||
- apiVersion: v2
|
- apiVersion: v2
|
||||||
appVersion: 1.8.2
|
appVersion: 1.8.2
|
||||||
created: "2022-06-20T11:57:53.031245647+02:00"
|
created: "2023-01-17T15:33:03.86746187+01:00"
|
||||||
description: Postgres Operator creates and manages PostgreSQL clusters running
|
description: Postgres Operator creates and manages PostgreSQL clusters running
|
||||||
in Kubernetes
|
in Kubernetes
|
||||||
digest: f77ffad2e98b72a621e5527015cf607935d3ed688f10ba4b626435acb9631b5b
|
digest: f77ffad2e98b72a621e5527015cf607935d3ed688f10ba4b626435acb9631b5b
|
||||||
@ -25,7 +47,7 @@ entries:
|
|||||||
version: 1.8.2
|
version: 1.8.2
|
||||||
- apiVersion: v2
|
- apiVersion: v2
|
||||||
appVersion: 1.8.1
|
appVersion: 1.8.1
|
||||||
created: "2022-06-20T11:57:53.029722276+02:00"
|
created: "2023-01-17T15:33:03.865880826+01:00"
|
||||||
description: Postgres Operator creates and manages PostgreSQL clusters running
|
description: Postgres Operator creates and manages PostgreSQL clusters running
|
||||||
in Kubernetes
|
in Kubernetes
|
||||||
digest: ee0c3bb6ba72fa4289ba3b1c6060e5b312dd023faba2a61b4cb7d9e5e2cc57a5
|
digest: ee0c3bb6ba72fa4289ba3b1c6060e5b312dd023faba2a61b4cb7d9e5e2cc57a5
|
||||||
@ -47,7 +69,7 @@ entries:
|
|||||||
version: 1.8.1
|
version: 1.8.1
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
appVersion: 1.8.0
|
appVersion: 1.8.0
|
||||||
created: "2022-06-20T11:57:53.028188865+02:00"
|
created: "2023-01-17T15:33:03.8643608+01:00"
|
||||||
description: Postgres Operator creates and manages PostgreSQL clusters running
|
description: Postgres Operator creates and manages PostgreSQL clusters running
|
||||||
in Kubernetes
|
in Kubernetes
|
||||||
digest: 3ae232cf009e09aa2ad11c171484cd2f1b72e63c59735e58fbe2b6eb842f4c86
|
digest: 3ae232cf009e09aa2ad11c171484cd2f1b72e63c59735e58fbe2b6eb842f4c86
|
||||||
@ -69,7 +91,7 @@ entries:
|
|||||||
version: 1.8.0
|
version: 1.8.0
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
appVersion: 1.7.1
|
appVersion: 1.7.1
|
||||||
created: "2022-06-20T11:57:53.026647776+02:00"
|
created: "2023-01-17T15:33:03.862914146+01:00"
|
||||||
description: Postgres Operator creates and manages PostgreSQL clusters running
|
description: Postgres Operator creates and manages PostgreSQL clusters running
|
||||||
in Kubernetes
|
in Kubernetes
|
||||||
digest: 7262563bec0b058e669ae6bcff0226e33fa9ece9c41ac46a53274046afe7700c
|
digest: 7262563bec0b058e669ae6bcff0226e33fa9ece9c41ac46a53274046afe7700c
|
||||||
@ -91,7 +113,7 @@ entries:
|
|||||||
version: 1.7.1
|
version: 1.7.1
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
appVersion: 1.7.0
|
appVersion: 1.7.0
|
||||||
created: "2022-06-20T11:57:53.02514275+02:00"
|
created: "2023-01-17T15:33:03.861539439+01:00"
|
||||||
description: Postgres Operator creates and manages PostgreSQL clusters running
|
description: Postgres Operator creates and manages PostgreSQL clusters running
|
||||||
in Kubernetes
|
in Kubernetes
|
||||||
digest: c3e99fb94305f81484b8b1af18eefb78681f3b5d057d5ad10565e4afb7c65ffe
|
digest: c3e99fb94305f81484b8b1af18eefb78681f3b5d057d5ad10565e4afb7c65ffe
|
||||||
@ -111,92 +133,4 @@ entries:
|
|||||||
urls:
|
urls:
|
||||||
- postgres-operator-1.7.0.tgz
|
- postgres-operator-1.7.0.tgz
|
||||||
version: 1.7.0
|
version: 1.7.0
|
||||||
- apiVersion: v1
|
generated: "2023-01-17T15:33:03.859917247+01:00"
|
||||||
appVersion: 1.6.3
|
|
||||||
created: "2022-06-20T11:57:53.022692764+02:00"
|
|
||||||
description: Postgres Operator creates and manages PostgreSQL clusters running
|
|
||||||
in Kubernetes
|
|
||||||
digest: ea08f991bf23c9ad114bca98ebcbe3e2fa15beab163061399394905eaee89b35
|
|
||||||
home: https://github.com/zalando/postgres-operator
|
|
||||||
keywords:
|
|
||||||
- postgres
|
|
||||||
- operator
|
|
||||||
- cloud-native
|
|
||||||
- patroni
|
|
||||||
- spilo
|
|
||||||
maintainers:
|
|
||||||
- email: opensource@zalando.de
|
|
||||||
name: Zalando
|
|
||||||
name: postgres-operator
|
|
||||||
sources:
|
|
||||||
- https://github.com/zalando/postgres-operator
|
|
||||||
urls:
|
|
||||||
- postgres-operator-1.6.3.tgz
|
|
||||||
version: 1.6.3
|
|
||||||
- apiVersion: v1
|
|
||||||
appVersion: 1.6.2
|
|
||||||
created: "2022-06-20T11:57:53.021045272+02:00"
|
|
||||||
description: Postgres Operator creates and manages PostgreSQL clusters running
|
|
||||||
in Kubernetes
|
|
||||||
digest: d886f8a0879ca07d1e5246ee7bc55710e1c872f3977280fe495db6fc2057a7f4
|
|
||||||
home: https://github.com/zalando/postgres-operator
|
|
||||||
keywords:
|
|
||||||
- postgres
|
|
||||||
- operator
|
|
||||||
- cloud-native
|
|
||||||
- patroni
|
|
||||||
- spilo
|
|
||||||
maintainers:
|
|
||||||
- email: opensource@zalando.de
|
|
||||||
name: Zalando
|
|
||||||
name: postgres-operator
|
|
||||||
sources:
|
|
||||||
- https://github.com/zalando/postgres-operator
|
|
||||||
urls:
|
|
||||||
- postgres-operator-1.6.2.tgz
|
|
||||||
version: 1.6.2
|
|
||||||
- apiVersion: v1
|
|
||||||
appVersion: 1.6.1
|
|
||||||
created: "2022-06-20T11:57:53.019428631+02:00"
|
|
||||||
description: Postgres Operator creates and manages PostgreSQL clusters running
|
|
||||||
in Kubernetes
|
|
||||||
digest: 4ba5972cd486dcaa2d11c5613a6f97f6b7b831822e610fe9e10a57ea1db23556
|
|
||||||
home: https://github.com/zalando/postgres-operator
|
|
||||||
keywords:
|
|
||||||
- postgres
|
|
||||||
- operator
|
|
||||||
- cloud-native
|
|
||||||
- patroni
|
|
||||||
- spilo
|
|
||||||
maintainers:
|
|
||||||
- email: opensource@zalando.de
|
|
||||||
name: Zalando
|
|
||||||
name: postgres-operator
|
|
||||||
sources:
|
|
||||||
- https://github.com/zalando/postgres-operator
|
|
||||||
urls:
|
|
||||||
- postgres-operator-1.6.1.tgz
|
|
||||||
version: 1.6.1
|
|
||||||
- apiVersion: v1
|
|
||||||
appVersion: 1.6.0
|
|
||||||
created: "2022-06-20T11:57:53.017863057+02:00"
|
|
||||||
description: Postgres Operator creates and manages PostgreSQL clusters running
|
|
||||||
in Kubernetes
|
|
||||||
digest: f52149718ea364f46b4b9eec9a65f6253ad182bb78df541d14cd5277b9c8a8c3
|
|
||||||
home: https://github.com/zalando/postgres-operator
|
|
||||||
keywords:
|
|
||||||
- postgres
|
|
||||||
- operator
|
|
||||||
- cloud-native
|
|
||||||
- patroni
|
|
||||||
- spilo
|
|
||||||
maintainers:
|
|
||||||
- email: opensource@zalando.de
|
|
||||||
name: Zalando
|
|
||||||
name: postgres-operator
|
|
||||||
sources:
|
|
||||||
- https://github.com/zalando/postgres-operator
|
|
||||||
urls:
|
|
||||||
- postgres-operator-1.6.0.tgz
|
|
||||||
version: 1.6.0
|
|
||||||
generated: "2022-06-20T11:57:53.016179465+02:00"
|
|
||||||
|
@ -57,6 +57,14 @@ spec:
|
|||||||
{{ toYaml .Values.resources | indent 10 }}
|
{{ toYaml .Values.resources | indent 10 }}
|
||||||
securityContext:
|
securityContext:
|
||||||
{{ toYaml .Values.securityContext | indent 10 }}
|
{{ toYaml .Values.securityContext | indent 10 }}
|
||||||
|
{{- if .Values.readinessProbe }}
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /readyz
|
||||||
|
port: {{ .Values.configLoggingRestApi.api_port }}
|
||||||
|
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
|
||||||
|
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.imagePullSecrets }}
|
{{- if .Values.imagePullSecrets }}
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
{{ toYaml .Values.imagePullSecrets | indent 8 }}
|
{{ toYaml .Values.imagePullSecrets | indent 8 }}
|
||||||
|
@ -10,9 +10,9 @@ metadata:
|
|||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
configuration:
|
configuration:
|
||||||
{{ toYaml .Values.configGeneral | indent 2 }}
|
{{ tpl (toYaml .Values.configGeneral) . | indent 2 }}
|
||||||
users:
|
users:
|
||||||
{{ toYaml .Values.configUsers | indent 4 }}
|
{{ tpl (toYaml .Values.configUsers) . | indent 4 }}
|
||||||
major_version_upgrade:
|
major_version_upgrade:
|
||||||
{{ toYaml .Values.configMajorVersionUpgrade | indent 4 }}
|
{{ toYaml .Values.configMajorVersionUpgrade | indent 4 }}
|
||||||
kubernetes:
|
kubernetes:
|
||||||
@ -21,7 +21,7 @@ configuration:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
pod_service_account_name: {{ include "postgres-pod.serviceAccountName" . }}
|
pod_service_account_name: {{ include "postgres-pod.serviceAccountName" . }}
|
||||||
oauth_token_secret_name: {{ template "postgres-operator.fullname" . }}
|
oauth_token_secret_name: {{ template "postgres-operator.fullname" . }}
|
||||||
{{ toYaml .Values.configKubernetes | indent 4 }}
|
{{ tpl (toYaml .Values.configKubernetes) . | indent 4 }}
|
||||||
postgres_pod_resources:
|
postgres_pod_resources:
|
||||||
{{ toYaml .Values.configPostgresPodResources | indent 4 }}
|
{{ toYaml .Values.configPostgresPodResources | indent 4 }}
|
||||||
timeouts:
|
timeouts:
|
||||||
@ -35,7 +35,7 @@ configuration:
|
|||||||
debug:
|
debug:
|
||||||
{{ toYaml .Values.configDebug | indent 4 }}
|
{{ toYaml .Values.configDebug | indent 4 }}
|
||||||
teams_api:
|
teams_api:
|
||||||
{{ toYaml .Values.configTeamsApi | indent 4 }}
|
{{ tpl (toYaml .Values.configTeamsApi) . | indent 4 }}
|
||||||
logging_rest_api:
|
logging_rest_api:
|
||||||
{{ toYaml .Values.configLoggingRestApi | indent 4 }}
|
{{ toYaml .Values.configLoggingRestApi | indent 4 }}
|
||||||
connection_pooler:
|
connection_pooler:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
image:
|
image:
|
||||||
registry: registry.opensource.zalan.do
|
registry: registry.opensource.zalan.do
|
||||||
repository: acid/postgres-operator
|
repository: acid/postgres-operator
|
||||||
tag: v1.8.2
|
tag: v1.9.0
|
||||||
pullPolicy: "IfNotPresent"
|
pullPolicy: "IfNotPresent"
|
||||||
|
|
||||||
# Optionally specify an array of imagePullSecrets.
|
# Optionally specify an array of imagePullSecrets.
|
||||||
@ -33,12 +33,19 @@ configGeneral:
|
|||||||
enable_shm_volume: true
|
enable_shm_volume: true
|
||||||
# enables backwards compatible path between Spilo 12 and Spilo 13+ images
|
# enables backwards compatible path between Spilo 12 and Spilo 13+ images
|
||||||
enable_spilo_wal_path_compat: false
|
enable_spilo_wal_path_compat: false
|
||||||
|
# operator will sync only clusters where name starts with teamId prefix
|
||||||
|
enable_team_id_clustername_prefix: false
|
||||||
# etcd connection string for Patroni. Empty uses K8s-native DCS.
|
# etcd connection string for Patroni. Empty uses K8s-native DCS.
|
||||||
etcd_host: ""
|
etcd_host: ""
|
||||||
|
# Spilo docker image
|
||||||
|
docker_image: ghcr.io/zalando/spilo-15:2.1-p9
|
||||||
|
|
||||||
|
# key name for annotation to ignore globally configured instance limits
|
||||||
|
# ignore_instance_limits_annotation_key: ""
|
||||||
|
|
||||||
# Select if setup uses endpoints (default), or configmaps to manage leader (DCS=k8s)
|
# Select if setup uses endpoints (default), or configmaps to manage leader (DCS=k8s)
|
||||||
# kubernetes_use_configmaps: false
|
# kubernetes_use_configmaps: false
|
||||||
# Spilo docker image
|
|
||||||
docker_image: registry.opensource.zalan.do/acid/spilo-14:2.1-p6
|
|
||||||
# min number of instances in Postgres cluster. -1 = no limit
|
# min number of instances in Postgres cluster. -1 = no limit
|
||||||
min_instances: -1
|
min_instances: -1
|
||||||
# max number of instances in Postgres cluster. -1 = no limit
|
# max number of instances in Postgres cluster. -1 = no limit
|
||||||
@ -82,9 +89,9 @@ configMajorVersionUpgrade:
|
|||||||
# - acid
|
# - acid
|
||||||
|
|
||||||
# minimal Postgres major version that will not automatically be upgraded
|
# minimal Postgres major version that will not automatically be upgraded
|
||||||
minimal_major_version: "9.6"
|
minimal_major_version: "11"
|
||||||
# target Postgres major version when upgrading clusters automatically
|
# target Postgres major version when upgrading clusters automatically
|
||||||
target_major_version: "14"
|
target_major_version: "15"
|
||||||
|
|
||||||
configKubernetes:
|
configKubernetes:
|
||||||
# list of additional capabilities for postgres container
|
# list of additional capabilities for postgres container
|
||||||
@ -122,6 +129,8 @@ configKubernetes:
|
|||||||
enable_pod_antiaffinity: false
|
enable_pod_antiaffinity: false
|
||||||
# toggles PDB to set to MinAvailabe 0 or 1
|
# toggles PDB to set to MinAvailabe 0 or 1
|
||||||
enable_pod_disruption_budget: true
|
enable_pod_disruption_budget: true
|
||||||
|
# toogles readiness probe for database pods
|
||||||
|
enable_readiness_probe: false
|
||||||
# enables sidecar containers to run alongside Spilo in the same pod
|
# enables sidecar containers to run alongside Spilo in the same pod
|
||||||
enable_sidecars: true
|
enable_sidecars: true
|
||||||
|
|
||||||
@ -156,6 +165,8 @@ configKubernetes:
|
|||||||
|
|
||||||
# defines the template for PDB (Pod Disruption Budget) names
|
# defines the template for PDB (Pod Disruption Budget) names
|
||||||
pdb_name_format: "postgres-{cluster}-pdb"
|
pdb_name_format: "postgres-{cluster}-pdb"
|
||||||
|
# switches pod anti affinity type to `preferredDuringSchedulingIgnoredDuringExecution`
|
||||||
|
pod_antiaffinity_preferred_during_scheduling: false
|
||||||
# override topology key for pod anti affinity
|
# override topology key for pod anti affinity
|
||||||
pod_antiaffinity_topology_key: "kubernetes.io/hostname"
|
pod_antiaffinity_topology_key: "kubernetes.io/hostname"
|
||||||
# namespaced name of the ConfigMap with environment variables to populate on every pod
|
# namespaced name of the ConfigMap with environment variables to populate on every pod
|
||||||
@ -180,9 +191,12 @@ configKubernetes:
|
|||||||
# if the user is in different namespace than cluster and cross namespace secrets
|
# if the user is in different namespace than cluster and cross namespace secrets
|
||||||
# are enabled via `enable_cross_namespace_secret` flag in the configuration.
|
# are enabled via `enable_cross_namespace_secret` flag in the configuration.
|
||||||
secret_name_template: "{username}.{cluster}.credentials.{tprkind}.{tprgroup}"
|
secret_name_template: "{username}.{cluster}.credentials.{tprkind}.{tprgroup}"
|
||||||
|
# sharing unix socket of PostgreSQL (`pg_socket`) with the sidecars
|
||||||
|
share_pgsocket_with_sidecars: false
|
||||||
# set user and group for the spilo container (required to run Spilo as non-root process)
|
# set user and group for the spilo container (required to run Spilo as non-root process)
|
||||||
# spilo_runasuser: 101
|
# spilo_runasuser: 101
|
||||||
# spilo_runasgroup: 103
|
# spilo_runasgroup: 103
|
||||||
|
|
||||||
# group ID with write-access to volumes (required to run Spilo as non-root process)
|
# group ID with write-access to volumes (required to run Spilo as non-root process)
|
||||||
# spilo_fsgroup: 103
|
# spilo_fsgroup: 103
|
||||||
|
|
||||||
@ -191,7 +205,7 @@ configKubernetes:
|
|||||||
# whether the Spilo container should run with additional permissions other than parent.
|
# whether the Spilo container should run with additional permissions other than parent.
|
||||||
# required by cron which needs setuid
|
# required by cron which needs setuid
|
||||||
spilo_allow_privilege_escalation: true
|
spilo_allow_privilege_escalation: true
|
||||||
# storage resize strategy, available options are: ebs, pvc, off
|
# storage resize strategy, available options are: ebs, pvc, off or mixed
|
||||||
storage_resize_mode: pvc
|
storage_resize_mode: pvc
|
||||||
# pod toleration assigned to instances of every Postgres cluster
|
# pod toleration assigned to instances of every Postgres cluster
|
||||||
# toleration:
|
# toleration:
|
||||||
@ -212,6 +226,12 @@ configPostgresPodResources:
|
|||||||
default_memory_limit: 500Mi
|
default_memory_limit: 500Mi
|
||||||
# memory request value for the postgres containers
|
# memory request value for the postgres containers
|
||||||
default_memory_request: 100Mi
|
default_memory_request: 100Mi
|
||||||
|
# optional upper boundary for CPU request
|
||||||
|
# max_cpu_request: "1"
|
||||||
|
|
||||||
|
# optional upper boundary for memory request
|
||||||
|
# max_memory_request: 4Gi
|
||||||
|
|
||||||
# hard CPU minimum required to properly run a Postgres cluster
|
# hard CPU minimum required to properly run a Postgres cluster
|
||||||
min_cpu_limit: 250m
|
min_cpu_limit: 250m
|
||||||
# hard memory minimum required to properly run a Postgres cluster
|
# hard memory minimum required to properly run a Postgres cluster
|
||||||
@ -256,9 +276,13 @@ configLoadBalancer:
|
|||||||
# define external traffic policy for the load balancer
|
# define external traffic policy for the load balancer
|
||||||
external_traffic_policy: "Cluster"
|
external_traffic_policy: "Cluster"
|
||||||
# defines the DNS name string template for the master load balancer cluster
|
# defines the DNS name string template for the master load balancer cluster
|
||||||
master_dns_name_format: "{cluster}.{team}.{hostedzone}"
|
master_dns_name_format: "{cluster}.{namespace}.{hostedzone}"
|
||||||
|
# deprecated DNS template for master load balancer using team name
|
||||||
|
master_legacy_dns_name_format: "{cluster}.{team}.{hostedzone}"
|
||||||
# defines the DNS name string template for the replica load balancer cluster
|
# defines the DNS name string template for the replica load balancer cluster
|
||||||
replica_dns_name_format: "{cluster}-repl.{team}.{hostedzone}"
|
replica_dns_name_format: "{cluster}-repl.{namespace}.{hostedzone}"
|
||||||
|
# deprecated DNS template for replica load balancer using team name
|
||||||
|
replica_legacy_dns_name_format: "{cluster}-repl.{team}.{hostedzone}"
|
||||||
|
|
||||||
# options to aid debugging of the operator itself
|
# options to aid debugging of the operator itself
|
||||||
configDebug:
|
configDebug:
|
||||||
@ -284,7 +308,7 @@ configAwsOrGcp:
|
|||||||
# Path to mount the above Secret in the filesystem of the container(s)
|
# Path to mount the above Secret in the filesystem of the container(s)
|
||||||
# additional_secret_mount_path: "/some/dir"
|
# additional_secret_mount_path: "/some/dir"
|
||||||
|
|
||||||
# AWS region used to store ESB volumes
|
# AWS region used to store EBS volumes
|
||||||
aws_region: eu-central-1
|
aws_region: eu-central-1
|
||||||
|
|
||||||
# enable automatic migration on AWS from gp2 to gp3 volumes
|
# enable automatic migration on AWS from gp2 to gp3 volumes
|
||||||
@ -312,6 +336,17 @@ configAwsOrGcp:
|
|||||||
|
|
||||||
# configure K8s cron job managed by the operator
|
# configure K8s cron job managed by the operator
|
||||||
configLogicalBackup:
|
configLogicalBackup:
|
||||||
|
# Azure Storage Account specs to store backup results
|
||||||
|
# logical_backup_azure_storage_account_name: ""
|
||||||
|
# logical_backup_azure_storage_container: ""
|
||||||
|
# logical_backup_azure_storage_account_key: ""
|
||||||
|
|
||||||
|
# resources for logical backup pod, if empty configPostgresPodResources will be used
|
||||||
|
# logical_backup_cpu_limit: ""
|
||||||
|
# logical_backup_cpu_request: ""
|
||||||
|
# logical_backup_memory_limit: ""
|
||||||
|
# logical_backup_memory_request: ""
|
||||||
|
|
||||||
# image for pods of the logical backup job (example runs pg_dumpall)
|
# image for pods of the logical backup job (example runs pg_dumpall)
|
||||||
logical_backup_docker_image: "registry.opensource.zalan.do/acid/logical-backup:v1.8.0"
|
logical_backup_docker_image: "registry.opensource.zalan.do/acid/logical-backup:v1.8.0"
|
||||||
# path of google cloud service account json file
|
# path of google cloud service account json file
|
||||||
@ -319,7 +354,7 @@ configLogicalBackup:
|
|||||||
|
|
||||||
# prefix for the backup job name
|
# prefix for the backup job name
|
||||||
logical_backup_job_prefix: "logical-backup-"
|
logical_backup_job_prefix: "logical-backup-"
|
||||||
# storage provider - either "s3" or "gcs"
|
# storage provider - either "s3", "gcs" or "az"
|
||||||
logical_backup_provider: "s3"
|
logical_backup_provider: "s3"
|
||||||
# S3 Access Key ID
|
# S3 Access Key ID
|
||||||
logical_backup_s3_access_key_id: ""
|
logical_backup_s3_access_key_id: ""
|
||||||
@ -381,7 +416,7 @@ configConnectionPooler:
|
|||||||
# db user for pooler to use
|
# db user for pooler to use
|
||||||
connection_pooler_user: "pooler"
|
connection_pooler_user: "pooler"
|
||||||
# docker image
|
# docker image
|
||||||
connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-22"
|
connection_pooler_image: "registry.opensource.zalan.do/acid/pgbouncer:master-26"
|
||||||
# max db connections the pooler should hold
|
# max db connections the pooler should hold
|
||||||
connection_pooler_max_db_connections: 60
|
connection_pooler_max_db_connections: 60
|
||||||
# default pooling mode
|
# default pooling mode
|
||||||
@ -394,6 +429,10 @@ configConnectionPooler:
|
|||||||
connection_pooler_default_cpu_limit: "1"
|
connection_pooler_default_cpu_limit: "1"
|
||||||
connection_pooler_default_memory_limit: 100Mi
|
connection_pooler_default_memory_limit: 100Mi
|
||||||
|
|
||||||
|
configPatroni:
|
||||||
|
# enable Patroni DCS failsafe_mode feature
|
||||||
|
failsafe_mode: false
|
||||||
|
|
||||||
# Zalando's internal CDC stream feature
|
# Zalando's internal CDC stream feature
|
||||||
enableStreams: false
|
enableStreams: false
|
||||||
|
|
||||||
@ -435,6 +474,11 @@ securityContext:
|
|||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
|
|
||||||
|
# Allow to setup operator Deployment readiness probe
|
||||||
|
readinessProbe:
|
||||||
|
initialDelaySeconds: 5
|
||||||
|
periodSeconds: 10
|
||||||
|
|
||||||
# Affinity for pod assignment
|
# Affinity for pod assignment
|
||||||
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
|
||||||
affinity: {}
|
affinity: {}
|
||||||
|
Loading…
Reference in New Issue
Block a user