new file: origin33/deployment.yml
|
@ -0,0 +1,42 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: origin33
|
||||
namespace: origin33
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: origin33
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: origin33
|
||||
spec:
|
||||
containers:
|
||||
- name: origin33
|
||||
image: gitea-ptl.akamai-lab.com/akamai/origin33
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: "1Gi"
|
||||
requests:
|
||||
cpu: "0.5"
|
||||
memory: "200Mi"
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
volumeMounts:
|
||||
- name: origin33-data
|
||||
mountPath: /usr/share/nginx/html/learn
|
||||
volumes:
|
||||
- name: origin33-data
|
||||
persistentVolumeClaim:
|
||||
claimName: origin33-data-pvc
|
|
@ -0,0 +1,32 @@
|
|||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: origin33-data-pvc
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
volumeMode: Filesystem
|
||||
storageClassName: ""
|
||||
resources:
|
||||
requests:
|
||||
storage: 1Gi
|
||||
volumeName: origin33-data
|
||||
|
||||
---
|
||||
|
||||
apiVersion: v1
|
||||
kind: PersistentVolume
|
||||
metadata:
|
||||
name: origin33-data
|
||||
namespace: origin33
|
||||
spec:
|
||||
capacity:
|
||||
storage: 1Gi
|
||||
volumeMode: Filesystem
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
persistentVolumeReclaimPolicy: Recycle
|
||||
storageClassName: ""
|
||||
nfs:
|
||||
path: /nfs/share/origin33/volumes/learn
|
||||
server: 10.0.0.5
|
|
@ -0,0 +1,13 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: origin33
|
||||
namespace: origin33
|
||||
spec:
|
||||
selector:
|
||||
app: origin33
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
targetPort: http
|
||||
type: ClusterIP
|
|
@ -0,0 +1,66 @@
|
|||
apiVersion: traefik.io/v1alpha1
|
||||
kind: Middleware
|
||||
metadata:
|
||||
name: origin33-redir
|
||||
namespace: origin33
|
||||
spec:
|
||||
redirectScheme:
|
||||
scheme: https
|
||||
permanent: true # Set to true for permanent (301) redirect
|
||||
|
||||
---
|
||||
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: origin33-http
|
||||
namespace: origin33
|
||||
|
||||
spec:
|
||||
entryPoints:
|
||||
- web
|
||||
|
||||
routes:
|
||||
- match: Host(`origin-33.akamai-lab.com`) && PathPrefix(`/`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: origin33
|
||||
port: 80
|
||||
sticky:
|
||||
cookie:
|
||||
httpOnly: true
|
||||
sameSite: strict
|
||||
|
||||
# middlewares:
|
||||
# - name: akashop-redir
|
||||
|
||||
---
|
||||
|
||||
apiVersion: traefik.io/v1alpha1
|
||||
kind: IngressRoute
|
||||
metadata:
|
||||
name: origin33-https
|
||||
namespace: origin33
|
||||
|
||||
spec:
|
||||
entryPoints:
|
||||
- websecure
|
||||
|
||||
tls:
|
||||
certResolver: le
|
||||
|
||||
routes:
|
||||
- match: Host(`origin-33.akamai-lab.com`) && PathPrefix(`/`)
|
||||
kind: Rule
|
||||
services:
|
||||
- name: origin33
|
||||
port: 80
|
||||
sticky:
|
||||
cookie:
|
||||
httpOnly: true
|
||||
# name: cookie
|
||||
# secure: true
|
||||
sameSite: strict
|
||||
# strategy: RoundRobin
|
||||
# weight: 10
|
||||
# nativeLB: true
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 315 KiB After Width: | Height: | Size: 315 KiB |
Before Width: | Height: | Size: 315 KiB After Width: | Height: | Size: 315 KiB |
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 113 KiB |
Before Width: | Height: | Size: 315 KiB After Width: | Height: | Size: 315 KiB |
Before Width: | Height: | Size: 259 KiB After Width: | Height: | Size: 259 KiB |
Before Width: | Height: | Size: 819 KiB After Width: | Height: | Size: 819 KiB |