Skip to content

Instantly share code, notes, and snippets.

View fenar's full-sized avatar
💭
I may be slow to respond.

Fatih Nar fenar

💭
I may be slow to respond.
  • Texas
View GitHub Profile
@fenar
fenar / SNO-HP-32Coresx2
Created January 18, 2024 18:23
SNO-HP-32Coresx2
---
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: sno-hugepages-patch
namespace: openshift-cluster-node-tuning-operator
spec:
profile:
- data: |
[main]
@fenar
fenar / p5g-prep-guide.yaml
Last active January 26, 2024 12:32
P5G RH-OCP Prep Guide
### Main Guideline
https://docs.openshift.com/container-platform/4.14/scalability_and_performance/ztp_far_edge/ztp-reference-cluster-configuration-for-vdu.html#sno-configure-for-vdu
### Enable SCTP
https://docs.openshift.com/container-platform/4.14/networking/using-sctp.html
For SNO make sure -> machineconfiguration.openshift.io/role: master
### Install Service Mesh
https://docs.openshift.com/container-platform/4.14/service_mesh/v2x/installing-ossm.html
@fenar
fenar / SNO-HugePages
Created January 8, 2024 14:42
OCP SNO Hugepages
---
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: sno-hugepages-patch
namespace: openshift-cluster-node-tuning-operator
spec:
profile:
- data: |
[main]
@fenar
fenar / 5gcore-cnf-metrics.json
Created October 30, 2023 17:34
3gpp 5g cnf grafana dashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@fenar
fenar / gist:52094e0d36ed8a18a882de4ee9fdcd2e
Created August 25, 2023 13:00
5Gcore-GrafanaDashboard
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@fenar
fenar / dell-server-etc.md
Last active August 11, 2023 14:51
100GBps-Dell-Intel-Mikrotik

---Incase You Have a Messed-Up Bios---- Start
(A) Clear all pending jobs via iDRAC WebUI: Maintenance -> Job Queue

(B) Revert back to initial BIOS
ssh to iDRAC terminal
% ssh root@
racadm>>racadm recover BIOS.Setup.1-1
---Incase You Have a Messed-Up Bios---- End

Enabling Dell-Intel-E810 on Server Side

@fenar
fenar / gist:58ab59311bae109f8fe80beceea5178a
Last active July 31, 2023 15:17
OCP-SNO Bootstrap Fails due to pending CSRs
Error: kubelet_node_status "unable to register node with api server" err="nodes is forbidden: user \"system:anonymous\" cannot create resource \"nodes\" in api group \"\" at the cluster scope"
<br>
$ oc get csr
<br>
'''
NAME AGE SIGNERNAME REQUESTOR REQUESTEDDURATION CONDITION
csr-7vmxb 33m kubernetes.io/kube-apiserver-client-kubelet system:serviceaccount:openshift-machine-config-operator:node-bootstrapper <none> Pending
csr-c2hc8 8m5s kubernetes.io/kube-apiserver-client-kubelet system:serviceaccount:openshift-machine-config-operator:node-bootstrapper <none> Pending
csr-nd65q 23m kubernetes.io/kube-apiserver-client-kubelet system:serviceaccount:openshift-mach
@fenar
fenar / AnsibleClusterClaim
Created March 31, 2023 15:29
Ansible playbook that can be used to claim a hibernated clusters from RH-ACM
Here is an example Ansible playbook that can be used to claim a hibernated cluster over Red Hat Advanced Cluster Manager (ACM):
---
---
- name: Claim a hibernated cluster on Red Hat ACM
hosts: localhost
gather_facts: no
vars:
acm_username: "acm-admin"
acm_password: "mypassword"
Here's an example of a liveness probe that checks if Apache is able to handle incoming web traffic on an OpenShift container:
---
apiVersion: v1
kind: Pod
metadata:
name: my-apache-pod
spec:
containers:
- name: apache
image: httpd:2.4
#Requirements:
1x RHACM HUB
2x+ Managed Clusters
#Join clusters
Go ahead and make sure that all your ManagedClusters joined the RHACM Hub and are in ready state.
#ManagedClusters must have labels that will be used for app placement together with the LatencyCheck operator. For example, if we plan to use the label `ddosify` as the one used by the operator when creating the PlacementRule, that label should have the following values:
- If using locationMatchingStrategy set to city: NA.US.TX.SA