generated from phoenix-oss/tenant-tpl
test ubuntu simple
This commit is contained in:
parent
18efeeef18
commit
3396f65ef9
3 changed files with 69 additions and 0 deletions
|
@ -14,6 +14,7 @@ resources:
|
||||||
- ubuntu-vm-3/ks.yaml
|
- ubuntu-vm-3/ks.yaml
|
||||||
- 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
|
||||||
- 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
|
||||||
|
|
18
ubuntu-vm-6/ks.yaml
Normal file
18
ubuntu-vm-6/ks.yaml
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||||
|
kind: Kustomization
|
||||||
|
metadata:
|
||||||
|
name: &app ubuntu-vm-6
|
||||||
|
namespace: ${TENANT_NAMESPACE}
|
||||||
|
spec:
|
||||||
|
commonMetadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: *app
|
||||||
|
path: ./ubuntu-vm-3/ubuntu
|
||||||
|
prune: true
|
||||||
|
sourceRef:
|
||||||
|
kind: GitRepository
|
||||||
|
name: tenant-repos
|
||||||
|
wait: false
|
||||||
|
interval: 30m
|
||||||
|
retryInterval: 1m
|
||||||
|
timeout: 5m
|
50
ubuntu-vm-6/ubuntu/ubuntu-vm.yaml
Normal file
50
ubuntu-vm-6/ubuntu/ubuntu-vm.yaml
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
apiVersion: kubevirt.io/v1
|
||||||
|
kind: VirtualMachine
|
||||||
|
metadata:
|
||||||
|
name: ubuntu-vm-3
|
||||||
|
namespace: ${TENANT_NAMESPACE}
|
||||||
|
spec:
|
||||||
|
running: true
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
kubevirt.io/domain: ubuntu-vm-3
|
||||||
|
spec:
|
||||||
|
domain:
|
||||||
|
cpu:
|
||||||
|
cores: 2
|
||||||
|
devices:
|
||||||
|
disks:
|
||||||
|
- disk:
|
||||||
|
bus: virtio
|
||||||
|
name: containerdisk
|
||||||
|
- disk:
|
||||||
|
bus: virtio
|
||||||
|
name: cloudinitdisk
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: 2Gi
|
||||||
|
cpu: 1
|
||||||
|
limits:
|
||||||
|
memory: 2Gi
|
||||||
|
cpu: 2
|
||||||
|
memory:
|
||||||
|
guest: 2Gi
|
||||||
|
volumes:
|
||||||
|
- name: containerdisk
|
||||||
|
containerDisk:
|
||||||
|
image: quay.io/containerdisks/ubuntu:22.04
|
||||||
|
- name: cloudinitdisk
|
||||||
|
cloudInitNoCloud:
|
||||||
|
userData: |
|
||||||
|
#cloud-config
|
||||||
|
users:
|
||||||
|
- name: testuser
|
||||||
|
groups: [sudo]
|
||||||
|
sudo: "ALL=(ALL) NOPASSWD:ALL"
|
||||||
|
lock_passwd: false
|
||||||
|
passwd: "$6$oMZf5uou7t0.oAJ1$825Te06yt7JZwHSSj4MGQMjpd87LflANQpajCwIVPASkKZdOJo4L2bAEDDuK.jtu.fsRNc9bZAsYefmoqdN8O1"
|
||||||
|
|
||||||
|
chpasswd:
|
||||||
|
expire: false
|
||||||
|
ssh_pwauth: true
|
Loading…
Add table
Add a link
Reference in a new issue