- To create ssh secret:
oc create secret generic sshsecret \
--from-file=ssh-privatekey=$HOME/.ssh/id_rsa
import os | |
import sys | |
import pytest | |
try: | |
# python3, mock is built in. | |
from unittest.mock import patch | |
except ImportError: | |
# In python2, mock is installed via pip. |
# Docker daemon | |
systemctl is-active docker | |
# Check that Docker volume group has adequate space | |
echo $(echo \"$(docker info 2>/dev/null | awk '/Data Space Available/ {print $4}') / $(docker info 2>/dev/null | awk '/Data Space Total/ {print $4}')\" | bc -l) '>' 0.3 | bc -l | |
# Check that Docker volume group has adequate metadata space | |
echo $(echo \"$(docker info 2>/dev/null | awk '/Metadata Space Available/ {print $4}') / $(docker info 2>/dev/null | awk '/Metadata Space Total/ {print $4}')\" | bc -l) '>' 0.3 | bc -l | |
# etcd is active |
# A test to see if a route can bind to endpoints w/o a svc. | |
# Create an endpoints | |
apiVersion: v1 | |
kind: Endpoints | |
metadata: | |
labels: | |
app: console | |
name: console-test | |
namespace: openshift-console |
--- | |
- name: Create partitions on master | |
hosts: masters | |
become: yes | |
tasks: | |
- name: Create LVEtcd logical volume | |
lvol: | |
lv: LVEtcd | |
size: 10g |
#!/usr/bin/env oo-ruby | |
require "/var/www/openshift/broker/config/environment" | |
Rails.configuration.analytics[:enabled] = false | |
Mongoid.raise_not_found_error = false | |
class Regenerate | |
def self.run | |
entries = [] | |
Application.all.each do |app| |
# kubernetes - is an open source system for managing containerized | |
# applications across multiple hosts, providing basic mechanisms for | |
# deployment, maintenance, and scaling of applications. | |
# See: https://kubernetes.io | |
function __kubectl_no_command | |
set -l cmd (commandline -poc) | |
if not set -q cmd[2] | |
return 0 | |
end |
So I found this by googling for prometheusoperator.0.27.0
It looks like there was a 0.32.0 version added to OperatorHub 8 days ago, but maybe it's not published yet. https://github.com/operator-framework/community-operators/tree/master/upstream-community-operators/prometheus
So just create a new project my-prometheus, update metadata.namespace from 'placeholder' to 'my-prometheus'
oc new-build --binary=true --name=ola2 --image-stream=redhat-openjdk18-openshift
oc start-build ola2 --from-file=./target/ola.jar --follow
oc new-app