This commit is contained in:
7
kube/dev/gh_secret.yaml
Normal file
7
kube/dev/gh_secret.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: ghcr.io
|
||||
data:
|
||||
.dockerconfigjson: eyJhdXRocyI6eyJnaGNyLmlvIjp7InVzZXJuYW1lIjoibWNidGFndWlhZCIsInBhc3N3b3JkIjoiZ2hwXzVmWGZ3T1RDQmFLRW1OZ0k0Q1lDclpoQXZVNW8xaDBJNE9mRiIsImVtYWlsIjoibWFya3RhZ3VpYWRAdGFnc2Rldi5jbGljayIsImF1dGgiOiJiV05pZEdGbmRXbGhaRHBuYUhCZk5XWllabmRQVkVOQ1lVdEZiVTVuU1RSRFdVTnlXbWhCZGxVMWJ6Rm9NRWswVDJaRyJ9fX0=
|
||||
type: kubernetes.io/dockerconfigjson
|
||||
33
kube/dev/ingress-web.yaml
Normal file
33
kube/dev/ingress-web.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: marktaguiad-dev-ingress-dev
|
||||
annotations:
|
||||
gethomepage.dev/description: "Mark Taguiad"
|
||||
gethomepage.dev/enabled: "true"
|
||||
gethomepage.dev/group: Links
|
||||
gethomepage.dev/icon: https://raw.githubusercontent.com/mcbtaguiad/marktaguiad.dev-hugo/main/app/static/images/fa-tags-nobg.png
|
||||
gethomepage.dev/name: marktaguiad-dev
|
||||
# kubernetes.io/ingress.class: "nginx"
|
||||
# cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
||||
cert-manager.io/issuer: prod-issuer
|
||||
cert-manager.io/issuer-kind: OriginIssuer
|
||||
cert-manager.io/issuer-group: cert-manager.k8s.cloudflare.com
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls:
|
||||
- hosts:
|
||||
- dev.marktaguiad.dev
|
||||
secretName: marktaguiad-dev-tls-dev
|
||||
rules:
|
||||
- host: dev.marktaguiad.dev
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
#pathType: ImplementationSpecific
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: dev-marktaguiad-dev
|
||||
port:
|
||||
number: 80
|
||||
80
kube/dev/web-deployment.yaml
Normal file
80
kube/dev/web-deployment.yaml
Normal file
@@ -0,0 +1,80 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: marktaguiad-dev-dev
|
||||
name: marktaguiad-dev-dev
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: marktaguiad-dev-dev
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: marktaguiad-dev-dev
|
||||
spec:
|
||||
# affinity:
|
||||
# nodeAffinity:
|
||||
# requiredDuringSchedulingIgnoredDuringExecution:
|
||||
# nodeSelectorTerms:
|
||||
# - matchExpressions:
|
||||
# - key: kubernetes.io/arch
|
||||
# operator: In
|
||||
# values:
|
||||
# - "amd64"
|
||||
# preferredDuringSchedulingIgnoredDuringExecution:
|
||||
# - weight: 10
|
||||
# preference:
|
||||
# matchExpressions:
|
||||
# - key: kubernetes.io/role
|
||||
# operator: In
|
||||
# values:
|
||||
# - 'worker'
|
||||
# - weight: 10
|
||||
# preference:
|
||||
# matchExpressions:
|
||||
# - key: node-role.kubernetes.io/master
|
||||
# operator: In
|
||||
# values:
|
||||
# - 'true'
|
||||
# - weight: 10
|
||||
# preference:
|
||||
# matchExpressions:
|
||||
# - key: core
|
||||
# operator: In
|
||||
# values:
|
||||
# - "4"
|
||||
# - weight: 5
|
||||
# preference:
|
||||
# matchExpressions:
|
||||
# - key: core
|
||||
# operator: In
|
||||
# values:
|
||||
# - "3"
|
||||
# - weight: 5
|
||||
# preference:
|
||||
# matchExpressions:
|
||||
# - key: disk
|
||||
# operator: In
|
||||
# values:
|
||||
# - "ssd"
|
||||
imagePullSecrets:
|
||||
- name: ghcr.io
|
||||
containers:
|
||||
- image: ghcr.io/mcbtaguiad/marktaguiad.dev:dev
|
||||
name: marktaguiad-dev-dev
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
# volumeMounts:
|
||||
# - name: static
|
||||
# subPath: static
|
||||
# mountPath: /usr/local/apache2/htdocs/static
|
||||
# volumes:
|
||||
# - name: static
|
||||
# persistentVolumeClaim:
|
||||
# claimName: ``eb-tagsdev-pvc
|
||||
restartPolicy: Always
|
||||
15
kube/dev/web-service.yaml
Normal file
15
kube/dev/web-service.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: marktaguiad-dev-dev
|
||||
name: marktaguiad-dev-dev
|
||||
spec:
|
||||
ports:
|
||||
- name: "80"
|
||||
port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: marktaguiad-dev-dev
|
||||
status:
|
||||
loadBalancer: {}
|
||||
7
kube/prod/gh_secret.yaml
Normal file
7
kube/prod/gh_secret.yaml
Normal file
@@ -0,0 +1,7 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: ghcr.io
|
||||
data:
|
||||
.dockerconfigjson: eyJhdXRocyI6eyJnaGNyLmlvIjp7InVzZXJuYW1lIjoibWNidGFndWlhZCIsInBhc3N3b3JkIjoiZ2hwXzVmWGZ3T1RDQmFLRW1OZ0k0Q1lDclpoQXZVNW8xaDBJNE9mRiIsImVtYWlsIjoibWFya3RhZ3VpYWRAdGFnc2Rldi5jbGljayIsImF1dGgiOiJiV05pZEdGbmRXbGhaRHBuYUhCZk5XWllabmRQVkVOQ1lVdEZiVTVuU1RSRFdVTnlXbWhCZGxVMWJ6Rm9NRWswVDJaRyJ9fX0=
|
||||
type: kubernetes.io/dockerconfigjson
|
||||
33
kube/prod/ingress-web.yaml
Normal file
33
kube/prod/ingress-web.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: marktaguiad-dev-ingress
|
||||
annotations:
|
||||
gethomepage.dev/description: "Mark Taguiad"
|
||||
gethomepage.dev/enabled: "true"
|
||||
gethomepage.dev/group: Links
|
||||
gethomepage.dev/icon: https://raw.githubusercontent.com/mcbtaguiad/marktaguiad.dev-hugo/main/app/static/images/fa-tags-nobg.png
|
||||
gethomepage.dev/name: marktaguiad-dev
|
||||
# kubernetes.io/ingress.class: "nginx"
|
||||
cert-manager.io/cluster-issuer: "letsencrypt-issuer-cloudflare"
|
||||
# cert-manager.io/issuer: prod-issuer
|
||||
# cert-manager.io/issuer-kind: OriginIssuer
|
||||
# cert-manager.io/issuer-group: cert-manager.k8s.cloudflare.com
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
tls:
|
||||
- hosts:
|
||||
- marktaguiad.dev
|
||||
secretName: marktaguiad-dev-tls
|
||||
rules:
|
||||
- host: marktaguiad.dev
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
#pathType: ImplementationSpecific
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: marktaguiad-dev
|
||||
port:
|
||||
number: 80
|
||||
80
kube/prod/web-deployment.yaml
Normal file
80
kube/prod/web-deployment.yaml
Normal file
@@ -0,0 +1,80 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: marktaguiad-dev
|
||||
name: marktaguiad-dev
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: marktaguiad-dev
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: marktaguiad-dev
|
||||
spec:
|
||||
# affinity:
|
||||
# nodeAffinity:
|
||||
# requiredDuringSchedulingIgnoredDuringExecution:
|
||||
# nodeSelectorTerms:
|
||||
# - matchExpressions:
|
||||
# - key: kubernetes.io/arch
|
||||
# operator: In
|
||||
# values:
|
||||
# - "amd64"
|
||||
# preferredDuringSchedulingIgnoredDuringExecution:
|
||||
# - weight: 10
|
||||
# preference:
|
||||
# matchExpressions:
|
||||
# - key: kubernetes.io/role
|
||||
# operator: In
|
||||
# values:
|
||||
# - 'worker'
|
||||
# - weight: 10
|
||||
# preference:
|
||||
# matchExpressions:
|
||||
# - key: node-role.kubernetes.io/master
|
||||
# operator: In
|
||||
# values:
|
||||
# - 'true'
|
||||
# - weight: 10
|
||||
# preference:
|
||||
# matchExpressions:
|
||||
# - key: core
|
||||
# operator: In
|
||||
# values:
|
||||
# - "4"
|
||||
# - weight: 5
|
||||
# preference:
|
||||
# matchExpressions:
|
||||
# - key: core
|
||||
# operator: In
|
||||
# values:
|
||||
# - "3"
|
||||
# - weight: 5
|
||||
# preference:
|
||||
# matchExpressions:
|
||||
# - key: disk
|
||||
# operator: In
|
||||
# values:
|
||||
# - "ssd"
|
||||
imagePullSecrets:
|
||||
- name: ghcr.io
|
||||
containers:
|
||||
- image: ghcr.io/mcbtaguiad/marktaguiad.dev:main
|
||||
name: marktaguiad-dev
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
# volumeMounts:
|
||||
# - name: static
|
||||
# subPath: static
|
||||
# mountPath: /usr/local/apache2/htdocs/static
|
||||
# volumes:
|
||||
# - name: static
|
||||
# persistentVolumeClaim:
|
||||
# claimName: ``eb-tagsdev-pvc
|
||||
restartPolicy: Always
|
||||
15
kube/prod/web-service.yaml
Normal file
15
kube/prod/web-service.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: marktaguiad-dev
|
||||
name: marktaguiad-dev
|
||||
spec:
|
||||
ports:
|
||||
- name: "80"
|
||||
port: 80
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: marktaguiad-dev
|
||||
status:
|
||||
loadBalancer: {}
|
||||
Reference in New Issue
Block a user