Add general-api
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Tyler Perkins 2023-11-03 18:44:26 -04:00
parent 99bfb45aae
commit 3b0618a265
3 changed files with 49 additions and 3 deletions

View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: general-api-config-map
namespace: api-ns
data:
config.yaml: |
images:
access_key: ${ACCESS_KEY}
secret_key: ${SECRET_KEY}
endpoint: s3.clortox.com
bucket: backgrounds
secure: True

View File

@ -13,16 +13,32 @@ spec:
template: template:
metadata: metadata:
labels: labels:
app: torrenter-apps app: api-apps
spec: spec:
containers: containers:
- name: general-api - name: general-api
image: git.clortox.com/tyler/general-api:latest image: git.clortox.com/tyler/general-api:latest
env: env:
- name: ACCESS_KEY - name: ACCESS_KEY
value: "FOO" valueFrom:
secretKeyRef:
name: general-api-secret
value: access-key
- name: SECRET_KEY - name: SECRET_KEY
value: "FOO" valueFrom:
secretKeyRef:
name: general-api-secret
value: secret-key
- name: CONFIG
value: "/config.yaml"
ports: ports:
- containerPort: 8000 - containerPort: 8000
volumes:
- name: config-volume
configMap:
name: general-api-config-map
items:
- key: config.yaml
path: /config.yaml

View File

@ -0,0 +1,16 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: general-api-secret
namespace: api-ns
spec:
encryptedData:
access-key: AgAPhGl0HfCpVQEmmLhArZgJgfXRUBEvokXse1mzEbsrIiSech0beSlKgTwrDwIFt//HISitEn3qtJkU1UXtVjhv8iTco9JgFLg/xmv+24eiRwG5smrtZqPN1iE7SL5kGfxM4RDvpSMxwdNnfsF53WGjsXIYaHtIVn316e2TQf85vSyLpq+BUgbgP5GqG931ur5ErZf48LHIdZ91wvxd1Lcog+C/jVKRmq0KvDKQZPJZD5qF1uyUiMz/ttY2NDLieGzkhQRpjVJmZaqHTdb6nBGcsMhdu8rI1pCkP8PHe8LsnwooRqPdZwg63Vdna7PzztrEesy5koyQwm4IOduB8xU48wY7KGiQ7ZLk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NCf+hqVH52a2UB9Q758FLO+N+iSpzD61hQZg==
template:
metadata:
creationTimestamp: null
name: general-api-secret
namespace: api-ns
---