- Create the secret
apiVersion: v1
kind: Secret
metadata:
namespace: <namespace>
name: usernaut-secrets
stringData:
fivetran_key: fivetran_key
fivetran_secret: fivetran_secret
- Create the configmap with appconfig YAML
kubectl create cm usernaut-config --from-file=platformtest.yaml=./appconfig/platformtest.yaml --from-file=default.yaml=./appconfig/default.yaml -n <namespace>
- In case a redis server is needed:
apiVersion: v1
kind: Service
metadata:
name: redis
spec:
ports:
- port: 6379
protocol: TCP
targetPort: 6379
selector:
run: redis
status:
loadBalancer: {}
---
apiVersion: v1
kind: Pod
metadata:
labels:
run: redis
name: redis
spec:
containers:
- image: redis
name: redis
ports:
- containerPort: 6379
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 1000m
memory: 1000Mi
dnsPolicy: ClusterFirst
restartPolicy: Always
status: {}