github.com/mirantis/virtlet@v1.5.2-0.20191204181327-1659b8a48e9b/examples/fedora-vm-with-testuser.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 name: fedora-vm-with-testuser 5 annotations: 6 kubernetes.io/target-runtime: virtlet.cloud 7 VirtletCloudInitUserData: | 8 ssh_pwauth: True 9 users: 10 - name: testuser 11 gecos: User 12 primary-group: testuser 13 groups: users 14 lock_passwd: false 15 shell: /bin/bash 16 # the password is "testuser" 17 passwd: "$6$rounds=4096$wPs4Hz4tfs$a8ssMnlvH.3GX88yxXKF2cKMlVULsnydoOKgkuStTErTq2dzKZiIx9R/pPWWh5JLxzoZEx7lsSX5T2jW5WISi1" 18 sudo: ALL=(ALL) NOPASSWD:ALL 19 ssh-authorized-keys: 20 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaJEcFDXEK2ZbX0ZLS1EIYFZRbDAcRfuVjpstSc0De8+sV1aiu+dePxdkuDRwqFtCyk6dEZkssjOkBXtri00MECLkir6FcH3kKOJtbJ6vy3uaJc9w1ERo+wyl6SkAh/+JTJkp7QRXj8oylW5E20LsbnA/dIwWzAF51PPwF7A7FtNg9DnwPqMkxFo1Th/buOMKbP5ZA1mmNNtmzbMpMfJATvVyiv3ccsSJKOiyQr6UG+j7sc/7jMVz5Xk34Vd0l8GwcB0334MchHckmqDB142h/NCWTr8oLakDNvkfC1YneAfAO41hDkUbxPtVBG5M/o7P4fxoqiHEX+ZLfRxDtHB53 me@localhost 21 VirtletSSHKeys: | 22 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCaJEcFDXEK2ZbX0ZLS1EIYFZRbDAcRfuVjpstSc0De8+sV1aiu+dePxdkuDRwqFtCyk6dEZkssjOkBXtri00MECLkir6FcH3kKOJtbJ6vy3uaJc9w1ERo+wyl6SkAh/+JTJkp7QRXj8oylW5E20LsbnA/dIwWzAF51PPwF7A7FtNg9DnwPqMkxFo1Th/buOMKbP5ZA1mmNNtmzbMpMfJATvVyiv3ccsSJKOiyQr6UG+j7sc/7jMVz5Xk34Vd0l8GwcB0334MchHckmqDB142h/NCWTr8oLakDNvkfC1YneAfAO41hDkUbxPtVBG5M/o7P4fxoqiHEX+ZLfRxDtHB53 me@localhost 23 spec: 24 nodeSelector: 25 extraRuntime: virtlet 26 27 # This is the number of seconds Virtlet gives the VM to shut down cleanly. 28 # The default value of 30 seconds is ok for containers but probably too 29 # low for VM, so overriding it here is strongly advised. 30 terminationGracePeriodSeconds: 120 31 containers: 32 - name: fedora-vm 33 image: virtlet.cloud/fedora 34 imagePullPolicy: IfNotPresent 35 # tty and stdin required for `kubectl attach -t` to work 36 tty: true 37 stdin: true 38 resources: 39 limits: 40 # This memory limit is applied to the libvirt domain definition 41 memory: 256Mi