Skip to content

Instantly share code, notes, and snippets.

View lcostea's full-sized avatar
💭
K8s, GitOps, go

Liviu Costea lcostea

💭
K8s, GitOps, go
View GitHub Profile
docker ps                                                                                                                             
CONTAINER ID   IMAGE                  COMMAND                  CREATED         STATUS         PORTS                       NAMES
c33f33c7f334   kindest/node:v1.20.2   "/usr/local/bin/entr…"   3 minutes ago   Up 3 minutes   127.0.0.1:55004->6443/tcp   dev-cluster-control-plane
docker version
Client: Docker Engine - Community
 Cloud integration: 1.0.7
name: Docker-Image-BuildKit
on:
push:
jobs:
docker-build:
runs-on: ubuntu-latest
env:
GOPATH: /home/runner/work/argo-cd/argo-cd
apiVersion: argoproj.io/v1alpha1
kind: AppProject
metadata:
name: remote-server-guestbook-proj
spec:
clusterResourceWhitelist:
- group: '*'
kind: '*'
description: Project to configure argocd installation
destinations:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
apiServerAddress: "192.168.1.123"
apiServerPort: 8443
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: local-server-guestbook-app
spec:
destination:
name: in-cluster
namespace: guestbook
project: default
source:
{{- define "kong.postgresql.fullname" -}}
{{- $name := default "postgresql" .Values.postgresql.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
apiVersion: apps/v1beta2
kind: StatefulSet
metadata:
name: {{ template "postgresql.master.fullname" . }}
$tempDestination = "D:\Temp\WebClient"
$webclientRemoteLocation = "\\impiis1\wwwroot\CodelessProducts\Runtime Environment\Web UI development versions"
$webClientLocalPath = "C:\inetpub\wwwroot\Codeless.WebClient\"
$localServerUrl = "http://localhost/ASPortalWeb"
Add-Type -AssemblyName System.IO.Compression.FileSystem
function Unzip
{
param([string]$zipfile, [string]$outpath)
@lcostea
lcostea / Program.cs
Created December 20, 2017 20:18
memory management for wantsome (module 6)
using System;
namespace TestOr
{
internal class Program
{
static void Main(string[] args)
{
int x = 3;
@lcostea
lcostea / copyIISConfig.js
Created November 12, 2017 10:39
simple js to copy the web.config from the iisConfig folder to the build folder when using react-scripts
const fs = require('fs-extra');
const webConfigPath = './build/web.config';
if (fs.existsSync(webConfigPath)) {
fs.unlinkSync(webConfigPath);
}
fs.copySync('./iisConfig/web.config', webConfigPath);