sudo apt-get install vim #vim for terminal editing
sudo apt-get install apache2 #apache
Following change required to run perl script using apache
#!/usr/bin/perl -w | |
=head1 NAME | |
ethtool_stats.pl - Sample changing adapter statistics from ethtool -S | |
=head1 SYNOPSIS | |
ethtool_stats.pl --dev DEVICE [options] |
# Copyright 2018 The Knative Authors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
# Copyright 2020 The Knative Authors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
# Copyright 2019 The Knative Authors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
# Copyright 2020 The Knative Authors | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# https://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
This work is an attempt to deploy knative serving in K0s with minimum resources. Let's try 1 CPU and 1 GB RAM.
This document has three sections. In first section we capture the resource required by knative serving and K0s. In second section we monitor the actual resource used by Knative and K0s, to determine the size of our k0s (edge) node. Finally, we install knative serving with reduced resource request/limit to K0s node with 1 CPU and 1.5 GB RAM (Why 1.5 GB ? , see Knative + K0s resource usage )
If you just want to install knative serving in k0s, you can directly skip to Knative in K0s Installation section.
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
version = "~> 4.16" | |
} | |
} | |
required_version = ">= 1.2.0" | |
} |