generated from phoenix-oss/tenant-tpl
added deployment for ubuntu
This commit is contained in:
parent
3396f65ef9
commit
401c03d556
5 changed files with 98 additions and 0 deletions
19
deployment/ks.yaml
Normal file
19
deployment/ks.yaml
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: &app ubuntu-deployment
|
||||||
|
namespace: demo
|
||||||
|
spec:
|
||||||
|
targetNamespace: demo
|
||||||
|
commonMetadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: *app
|
||||||
|
path: ./deployment/ubuntu-deployment
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: tenant-repos
|
||||||
|
wait: false
|
||||||
|
interval: 30m
|
||||||
|
retryInterval: 1m
|
||||||
|
timeout: 5m
|
14
deployment/ubuntu-deployment/datadisk.yaml
Normal file
14
deployment/ubuntu-deployment/datadisk.yaml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: ubuntu-pod-datadisk-1
|
||||||
|
namespace: demo
|
||||||
|
labels:
|
||||||
|
app: ubuntu-deployment
|
||||||
|
spec:
|
||||||
|
volumeMode: Filesystem
|
||||||
|
accessModes: [ "ReadWriteOnce" ]
|
||||||
|
storageClassName: ocs-storagecluster-ceph-rbd
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 50Gi
|
15
deployment/ubuntu-deployment/pod-service.yaml
Normal file
15
deployment/ubuntu-deployment/pod-service.yaml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: ubuntu-pod-ssh
|
||||||
|
namespace: demo
|
||||||
|
labels:
|
||||||
|
app: ubuntu-deployment
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: ubuntu-deployment
|
||||||
|
clusterIP: None
|
||||||
|
ports:
|
||||||
|
- name: internal
|
||||||
|
port: 21354
|
||||||
|
targetPort: 21354
|
49
deployment/ubuntu-deployment/pod.yaml
Normal file
49
deployment/ubuntu-deployment/pod.yaml
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: ubuntu-deployment
|
||||||
|
namespace: demo
|
||||||
|
labels:
|
||||||
|
app: ubuntu-deployment
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: ubuntu-deployment
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: ubuntu-deployment
|
||||||
|
spec:
|
||||||
|
hostname: ubuntu
|
||||||
|
subdomain: pod
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
|
fsGroup: 1002070000
|
||||||
|
fsGroupChangePolicy: OnRootMismatch
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
containers:
|
||||||
|
- name: ubuntu-deployment-pod
|
||||||
|
image: ubuntu:22.04
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
command: ["bash","-lc","sleep infinity"]
|
||||||
|
securityContext:
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
capabilities:
|
||||||
|
drop: ["ALL"]
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 512Mi
|
||||||
|
limits:
|
||||||
|
cpu: "1"
|
||||||
|
memory: 1Gi
|
||||||
|
volumeMounts:
|
||||||
|
- name: ubuntu-pod-datadisk-1
|
||||||
|
mountPath: /data
|
||||||
|
volumes:
|
||||||
|
- name: ubuntu-pod-datadisk-1
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: ubuntu-pod-datadisk-1
|
|
@ -15,6 +15,7 @@ resources:
|
||||||
- ubuntu-vm-4-john/ks.yaml
|
- ubuntu-vm-4-john/ks.yaml
|
||||||
- ubuntu-vm-5/ks.yaml
|
- ubuntu-vm-5/ks.yaml
|
||||||
- ubuntu-vm-6/ks.yaml
|
- ubuntu-vm-6/ks.yaml
|
||||||
|
- deployment/ubuntu-deployment/ks.yaml
|
||||||
- container/ks-debug.yaml
|
- container/ks-debug.yaml
|
||||||
- templates/image-server/ks-nginx.yaml
|
- templates/image-server/ks-nginx.yaml
|
||||||
- templates/image-server/ks-pvc.yaml
|
- templates/image-server/ks-pvc.yaml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue