-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
267 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
apiVersion: v1 | ||
name: ushahidi-platform-api | ||
version: 0.0.1-alpha.14 | ||
version: 0.0.1-alpha.15 | ||
icon: https://github.ushahidi.org/helm-charts/icon.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{{- if .Values.memcached.enabled }} | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
annotations: {} | ||
labels: | ||
app: platform | ||
service: memcached | ||
name: memcached | ||
|
||
spec: | ||
progressDeadlineSeconds: 600 | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: platform | ||
service: memcached | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 1 | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
app: platform | ||
service: memcached | ||
spec: | ||
containers: | ||
- env: [] | ||
image: memcached:1-alpine | ||
imagePullPolicy: Always | ||
name: memcached | ||
ports: | ||
- containerPort: 11211 | ||
name: mysql | ||
protocol: TCP | ||
resources: | ||
limits: | ||
cpu: {{ .Values.memcached.limits.cpu }} | ||
memory: {{ .Values.memcached.limits.memory }} | ||
requests: | ||
cpu: {{ .Values.memcached.requests.cpu }} | ||
memory: {{ .Values.memcached.requests.memory }} | ||
terminationGracePeriodSeconds: 5 | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: platform | ||
service: memcached | ||
name: memcached | ||
spec: | ||
ports: | ||
- name: memcached | ||
port: 11211 | ||
protocol: TCP | ||
targetPort: 11211 | ||
selector: | ||
app: platform | ||
service: memcached | ||
type: ClusterIP | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,18 +7,32 @@ image: | |
tag: latest | ||
|
||
config: | ||
appenv: staging | ||
timezone: UTC | ||
hdx_url: https://data.humdata.org/ | ||
|
||
# appkey: | ||
# appkey_secret: | ||
# name: | ||
# key: | ||
timezone: UTC | ||
hdx_url: https://data.humdata.org/ | ||
|
||
# -- used for "signature authentication" | ||
# shared_secret: | ||
# shared_secret_ref: | ||
# name: | ||
# key: | ||
|
||
# ush_analytics_prefix: | ||
|
||
## this is mostly a placeholder for now, all that enabling multisite | ||
## does is disabling the database migrations | ||
## it also disables liveness checks since we don't have a proper endpoint | ||
## that is independent of the backend finding the deployment | ||
multisite: | ||
enabled: false | ||
# domain: | ||
# api_domain: | ||
# email: | ||
## | ||
db: | ||
host: mysql | ||
|
@@ -32,12 +46,15 @@ config: | |
redis: | ||
host: redis | ||
port: 6379 | ||
memcached: | ||
host: memcached | ||
port: 11211 | ||
drivers: | ||
cache: redis | ||
ratelimiter_cache: redis | ||
queue: redis | ||
filesystem: local | ||
mail: log # -> e-mail disabled by default | ||
# filesystem: local | ||
# mail: log # -> e-mail disabled by default | ||
mail_from: | ||
address: [email protected] | ||
name: "Platform Deployment Admin" | ||
|
@@ -56,6 +73,30 @@ config: | |
# secret_ref: | ||
# name: | ||
# key: | ||
# | ||
# rackspace_filesystem: | ||
# region: | ||
# container: | ||
# username: | ||
# apikey: | ||
# apikey_secret: | ||
# name: | ||
# key: | ||
# TODO | ||
# s3_filesystem: | ||
# endpoint: | ||
# region: | ||
# bucket: | ||
# access_key_id: | ||
# access_key_id_secret: | ||
# name: | ||
# key: | ||
# secret_access_key: | ||
# secret_access_key_secret: | ||
# name: | ||
# key: | ||
|
||
|
||
## | ||
## Additional settings provided in .env file, note that this only works for | ||
## versions after commit | ||
|
@@ -153,3 +194,14 @@ redis: | |
requests: | ||
cpu: "10m" | ||
memory: "64Mi" | ||
|
||
# This provides a compatible memcached server | ||
memcached: | ||
## Set to true to enable | ||
enabled: false | ||
limits: | ||
cpu: "1" | ||
memory: "128Mi" | ||
requests: | ||
cpu: "10m" | ||
memory: "128Mi" |