Skip to content

Instantly share code, notes, and snippets.

View rmalenko's full-sized avatar
💭
Open to work

Rostyslav rmalenko

💭
Open to work
View GitHub Profile
argocd_repositories = {
[
"private-repo" = {
url = "https://repo.git"
username = "argocd"
password = "access_token"
},
"git-repo" = {
url = "https://repo.git"
password = "argocd_access_token"
@rmalenko
rmalenko / Karpenter Controller Policy
Last active May 6, 2022 14:29
Karpenter Controller Policy
################################################################################
# Karpenter Controller Policy
################################################################################
# curl -fsSL https://karpenter.sh/v0.6.1/getting-started/cloudformation.yaml
data "aws_iam_policy_document" "karpenter_controller" {
count = var.create_role && var.attach_karpenter_controller_policy ? 1 : 0
statement {
actions = [
module "eks" {
source = "../modules/terraform-aws-eks"
cluster_name = local.cluster_name
cluster_version = local.cluster_version
cluster_endpoint_private_access = true
cluster_endpoint_public_access = true
cluster_ip_family = "ipv6"
vpc_id = local.vpc_id
subnet_ids = local.private_subnets
@rmalenko
rmalenko / gist:fc7c0f515cafa578f14dcafee1654f9c
Created January 28, 2022 17:19
Istio for kubernetes dashboard
apiVersion: v1
kind: Service
...
spec:
ports:
- name: http
protocol: TCP
port: 80
targetPort: http
nodePort: 31482
@rmalenko
rmalenko / kubernetes_manifest
Created December 30, 2021 08:23
kubernetes_manifest - error
goroutine 118 [running]:
github.com/hashicorp/terraform-plugin-go/tftypes.NewValue(...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/vendor/github.com/hashicorp/terraform-plugin-go/tftypes/value.go:277
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.morphTupleIntoType(0x26d6380, 0xc001295980, 0x1f48820, 0xc00000da70, 0x26d6260, 0xc003c44810, 0xc0028a8f48, 0x0, 0x203000, 0x203000, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:201 +0x1b85
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.ValueToType(0x26d6380, 0xc001295980, 0x1f48820, 0xc00000da70, 0x26d6260, 0xc003c44810, 0xc0028a8f48, 0x8, 0x26d63c8, 0xc003c9c270, ...)
/opt/teamcity-agent/work/5d79fe75d4460a2f/src/github.com/hashicorp/terraform-provider-kubernetes/manifest/morph/morph.go:30 +0xa09
github.com/hashicorp/terraform-provider-kubernetes/manifest/morph.morphObjectToType(0x26d62f0, 0x
@rmalenko
rmalenko / index.php
Created August 13, 2021 14:38
php health check
<?php
$timestamp = time();
echo $timestamp . "<br>";
echo date("d/m/Y", $timestamp);
?>