Skip to content

Instantly share code, notes, and snippets.

View naveenrajm7's full-sized avatar
🎮
Playing... with code

Naveenraj M naveenrajm7

🎮
Playing... with code
View GitHub Profile
@naveenrajm7
naveenrajm7 / main.tf
Created May 22, 2023 07:07
Microshift in AWS
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.16"
}
}
required_version = ">= 1.2.0"
}
@naveenrajm7
naveenrajm7 / serving-default-domain.yaml
Last active March 18, 2023 07:17
K0s knative serving default domain
# 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,
@naveenrajm7
naveenrajm7 / kourier.yaml
Last active March 18, 2023 07:16
K0s knative kourier
# 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,
@naveenrajm7
naveenrajm7 / serving-core.yaml
Last active March 18, 2023 07:12
K0s knative-serving core
# 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,
@naveenrajm7
naveenrajm7 / serving-crds.yaml
Last active March 18, 2023 21:39
K0s knative-serving crds
# 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,
@naveenrajm7
naveenrajm7 / k0snative.md
Last active March 18, 2023 23:53
Knative Serving in K0s : Knative Serving installed with bare minimum resources

Knative Serving in k0s

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.

@naveenrajm7
naveenrajm7 / ethtool_stats.pl
Last active December 4, 2022 17:42
Scripts for XDP benchmarking
#!/usr/bin/perl -w
=head1 NAME
ethtool_stats.pl - Sample changing adapter statistics from ethtool -S
=head1 SYNOPSIS
ethtool_stats.pl --dev DEVICE [options]
@naveenrajm7
naveenrajm7 / student_model.ipynb
Created June 21, 2018 22:13
PgmPy Model for Student Example
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@naveenrajm7
naveenrajm7 / perl4apache.md
Last active June 10, 2018 22:27
Perl and Apache - Running and Debugging

Follow these command on ubuntu to intsall apache, my-sql, php, perl (LAMP)

Apache

sudo apt-get install vim  #vim for terminal editing
sudo apt-get install apache2  #apache

Following change required to run perl script using apache

1. add following to 000-default.conf file