TfState--

This commit is contained in:
Danny Bessems 2022-06-02 14:42:42 +02:00
parent 6c61acf97a
commit ee376a4b4f
2 changed files with 0 additions and 102 deletions

View File

@ -1,78 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: tfstate
spec:
ports:
- protocol: TCP
name: db
port: 5432
selector:
app: tfstate
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tfstate
labels:
app: tfstate
spec:
replicas: 1
selector:
matchLabels:
app: tfstate
template:
metadata:
labels:
app: tfstate
spec:
containers:
- name: postgres
image: bv11-cr01.bessems.eu/proxy/library/postgres:14-alpine
env:
- name: POSTGRES_DB
value: terraform_backend
envFrom:
- secretRef:
name: tfstate-secret
ports:
- name: db
containerPort: 5432
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: flexvolsmb-tfstate-db
volumes:
- name: flexvolsmb-tfstate-db
persistentVolumeClaim:
claimName: flexvolsmb-tfstate-db
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-tfstate-db
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-tfstate-db
flexVolume:
driver: mount/smb
secretRef:
name: smb-secret
options:
opts: domain=bessems.eu,file_mode=0600,dir_mode=0700,uid=70,gid=70,iocharset=utf8,nobrl
server: 192.168.11.225
share: /K3s.Volumes/tfstate/db
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-tfstate-db
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-tfstate-db
resources:
requests:
storage: 1Gi

View File

@ -1,24 +0,0 @@
{
"kind": "SealedSecret",
"apiVersion": "bitnami.com/v1alpha1",
"metadata": {
"name": "tfstate-secret",
"namespace": "default",
"creationTimestamp": null
},
"spec": {
"template": {
"metadata": {
"name": "tfstate-secret",
"namespace": "default",
"creationTimestamp": null
},
"type": "Opaque",
"data": null
},
"encryptedData": {
"POSTGRES_PASSWORD": "AgCTsPK7n1PYReT5IjN9nDfPBQN260vAK+iNdeq5Zw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