mirror of
https://github.com/thejimnicholson/pdns-admin.git
synced 2025-12-06 03:30:42 +00:00
Initial commit
This commit is contained in:
parent
6ebef823de
commit
2d6c4e824b
40
admin/deployment.yaml
Normal file
40
admin/deployment.yaml
Normal file
@ -0,0 +1,40 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: powerdns-admin
|
||||
namespace: pdns
|
||||
labels:
|
||||
app: powerdns-admin
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: powerdns-admin
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: powerdns-admin
|
||||
spec:
|
||||
containers:
|
||||
- image: ngoduykhanh/powerdns-admin:latest
|
||||
name: powedns-admin
|
||||
ports:
|
||||
- name: http-port
|
||||
containerPort: 80
|
||||
env:
|
||||
- name: SECRET_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: pdns-admin-secrets
|
||||
key: secret_key
|
||||
volumeMounts:
|
||||
- name: pdns-admin-vol
|
||||
mountPath: /data
|
||||
securityContext:
|
||||
fsGroup: 1000
|
||||
volumes:
|
||||
- name: pdns-admin-vol
|
||||
persistentVolumeClaim:
|
||||
claimName: pdns-admin-claim
|
||||
20
admin/ingress.yaml
Normal file
20
admin/ingress.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: pdns-admin-ingress
|
||||
namespace: pdns
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "traefik"
|
||||
spec:
|
||||
rules:
|
||||
- host: pdns.home.thejimnicholson.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: pdns-admin
|
||||
port:
|
||||
number: 80
|
||||
9
admin/kustomization.yaml
Normal file
9
admin/kustomization.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- volume.yaml
|
||||
- secrets.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
6
admin/namespace.yaml
Normal file
6
admin/namespace.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
|
||||
---
|
||||
kind: Namespace
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: pdns
|
||||
8
admin/secrets.yaml
Normal file
8
admin/secrets.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
type: Opaque
|
||||
metadata:
|
||||
name: pdns-admin-secrets
|
||||
namespace: pdns
|
||||
annotations:
|
||||
secret-generator.v1.mittwald.de/autogenerate: secret_key
|
||||
13
admin/service.yaml
Normal file
13
admin/service.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: pdns-admin
|
||||
namespace: pdns
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: powerdns-admin
|
||||
13
admin/volume.yaml
Normal file
13
admin/volume.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: pdns-admin-claim
|
||||
namespace: pdns
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
storageClassName: longhorn
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
Loading…
Reference in New Issue
Block a user