This task creates a nsx-t transport node profile.
nsx-t-installation
: a git resource containing this repo's tasks
NSXT_MANAGER_URL
: where nsx-t manager lives, egnsxmgr-01.haas-417.example.com
NSXT_ADMIN_USERNAME
: egadmin
# | |
# Postfacto, a free, open-source and self-hosted retro tool aimed at helping | |
# remote teams. | |
# | |
# Copyright (C) 2016 - Present Pivotal Software, Inc. | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# | |
# it under the terms of the GNU Affero General Public License as | |
# |
#!/bin/bash | |
# Script to populate all of the current environment's Concourse Credhub values | |
# based off the Terraform output | |
set -e | |
credhub_client_secret="$1" | |
[[ -z "$credhub_client_secret" ]] && { echo "Error: expected the client secret for credhub_admin_client"; exit 1; } |
readonly FUGACIOUS_URL='https://fugacio.us/m' | |
readonly FUGACIOUS_MAX_VIEWS=3 | |
readonly FUGACIOUS_HOURS='2' | |
createFugaciousSecret() { | |
local user_password="${1}" | |
response=$(curl \ | |
--silent \ | |
--request POST \ |
Assuming you've already deployed a pod named helloworld
running Nginx on the non-privileged port 8080,
for example using the quay.io/bitnami/nginx
image.
$ kubectl get pods -o wide
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
helloworld 1/1 Running 0 36m 10.200.1.7 f0287b6b-f419-485c-9ea8-9fc6e21237af <none> <none>
Expose a new NodePort service:
$ cat > ./cf_prod_tcp_vm_extension.yml <<YAML
vm-extension-config:
name: cf_prod_tcp_vm_extension
cloud_properties:
nsxt:
lb:
server_pools:
- name: cf-prod-tcp-router
YAML
#!/usr/bin/env bash | |
brew install openssl@1.1 | |
mkdir -p /usr/local/opt/openssl/lib/ | |
ln -s /usr/local/opt/openssl@1.1/lib/libcrypto.1.1.dylib /usr/local/opt/openssl/lib/ | |
ln -s /usr/local/opt/openssl@1.1/lib/libssl.1.1.dylib /usr/local/opt/openssl/lib/ | |
pushd /usr/local/opt/openssl/lib/ | |
ln -s libssl.1.1.dylib libssl.dylib | |
ln -s libcrypto.1.1.dylib libcrypto.dylib | |
popd |
package main | |
import ( | |
"context" | |
"fmt" | |
"github.com/vmware/govmomi" | |
"github.com/vmware/govmomi/find" | |
"github.com/vmware/govmomi/object" | |
"github.com/vmware/govmomi/property" | |
"github.com/vmware/govmomi/session" |
This explains how to create a PersistentVolume using existing (vsphereVolume) persistent disks populated with data, and how to use the PersistentVolume in a Pod.
Create a storage class in the nginx namespace, here we're using the obsolete in-tree VCP provisioner:
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: vcp-storage