This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| virt-install --name node1 --ram=2048 --disk /dev/sdb1 --vcpus 1 --os-type linux --os-variant ubuntu20.04 --graphics none --location 'http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/' --extra-args "console=tty0 console=ttyS0,115200n8" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| virt-install --name vm1 --ram=8192 --disk size=10 --vcpus 1 --os-type linux --os-variant ubuntu20.04 --graphics none --location 'http://archive.ubuntu.com/ubuntu/dists/focal/main/installer-amd64/' --extra-args "console=tty0 console=ttyS0,115200n8" | |
| # When prompted, use the vm name for the host name, and be sure to add openssh when asked for software to pre-install | |
| # otherwise take defaults or most reasonable options. Follow install instructions till reboot, then ^] | |
| virsh domifaddr vm1 # get ip address | |
| ssh-copy-id [email protected] # use ip address from previous step |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: networking.k8s.io/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| name: readnews-ingress | |
| annotations: | |
| cert-manager.io/issuer: ca-issuer | |
| spec: | |
| rules: | |
| - host: readnews.local | |
| http: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: cert-manager.io/v1alpha2 | |
| kind: Issuer | |
| metadata: | |
| name: ca-issuer | |
| spec: | |
| ca: | |
| secretName: ca-key-pair |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: readnews-deployment | |
| labels: | |
| app: readnews | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: readnews |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: batch/v1beta1 | |
| kind: CronJob | |
| metadata: | |
| name: | |
| newsreader-cronjob | |
| labels: | |
| app: newsreader | |
| spec: | |
| schedule: "0 * * * *" | |
| jobTemplate: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: | |
| newsreader-pod | |
| labels: | |
| app: newsreader | |
| spec: | |
| containers: | |
| - name: newsreader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: PersistentVolumeClaim | |
| metadata: | |
| name: gluster-claim | |
| spec: | |
| accessModes: | |
| - ReadWriteMany | |
| volumeMode: Filesystem | |
| resources: | |
| requests: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: PersistentVolume | |
| metadata: | |
| name: gluster-pv | |
| labels: | |
| pv: gluster-pv | |
| spec: | |
| capacity: | |
| storage: 130Gi | |
| accessModes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Endpoints | |
| metadata: | |
| name: glusterfs-cluster | |
| subsets: | |
| - addresses: | |
| - ip: 192.168.0.104 | |
| ports: | |
| - port: 1 | |
| --- |