Created
July 16, 2019 16:12
-
-
Save sr229/1960bdcecda19528375bc2f25d709974 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: bot | |
spec: | |
selector: | |
matchLabels: | |
app: clara.discordapp | |
tier: frontend | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: clara.discordapp | |
tier: frontend | |
spec: | |
containers: | |
- name: clara-nightly | |
image: chinodesuuu/clara:alpine | |
resources: | |
requests: | |
cpu: 10m | |
memory: 64Mi | |
limits: | |
cpu: 100m | |
memory: 256Mi | |
env: | |
- name: REDIS_URL | |
value: 'redis://redis:6379/0' | |
- name: CLARA_GENERAL_MAX_SHARDS | |
value: '1' | |
- name: CLARA_GENERAL_OWNERID | |
value: '' | |
- name: CLARA_GENERAL_TOKEN | |
value: '' | |
- name: CLARA_GENERAL_MAINPREFIX | |
value: '' | |
- name: CLARA_TOKENS_OSU | |
value: '' | |
- name: CLARA_TOKENS_SAUCENAO | |
value: '' | |
- name: CLARA_TOKENS_NASA | |
value: '' | |
- name: CLARA_TOKENS_IBSEARCH | |
value: '' | |
--- | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: redis-pvc | |
labels: | |
app: redis | |
spec: | |
accessModes: | |
- ReadWriteOnce | |
resources: | |
requests: | |
# How much storage should we request from the system? | |
# By default KubeSail gives you 100Mi of SSD | |
storage: 100Mi | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: redis | |
spec: | |
selector: | |
matchLabels: | |
app: redis | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: redis | |
spec: | |
containers: | |
- name: master | |
image: redis:5-alpine | |
imagePullPolicy: Always | |
resources: | |
requests: | |
cpu: 10m | |
memory: 64Mi | |
limits: | |
cpu: 500m | |
memory: 256Mi | |
ports: | |
- containerPort: 6379 | |
volumeMounts: | |
- mountPath: /data | |
name: redis-data | |
volumes: | |
- name: redis-data | |
persistentVolumeClaim: | |
claimName: redis-pvc | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: redis | |
labels: | |
app: redis | |
spec: | |
type: NodePort | |
ports: | |
- port: 6379 | |
selector: | |
app: redis |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment