create_user_for_namespace.sh: Create$namespace-adminServiceAccount with full access to specified namespace and get KUBECONFIG
./create-user-for-namespace YOUR_FANCY_NAMESPACE| # applied under the namespace "ms" | |
| apiVersion: apps/v1 | |
| kind: StatefulSet | |
| metadata: | |
| name: mysql | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: mysql | |
| serviceName: mysql |
| // gcc getifaddrs_linux.c -o getifaddrs_linux | |
| // ./getifaddrs_linux | |
| // https://stackoverflow.com/a/12878352 | |
| #include <stdlib.h> //exit() | |
| #include <stdio.h> //printf(),perror() | |
| #include <string.h> //memset | |
| #include <ifaddrs.h> //struct ifaddrs,getifaddrs() | |
| #include <arpa/inet.h> //INET6_ADDRSTRLEN,inet_ntop() | |
| #include <netinet/in.h> //sockaddr_in,sockaddr_in6 |
| #!/bin/sh | |
| # https://ubuntu.com/server/docs/service-nfs | |
| # client | |
| # https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/4/html/reference_guide/s2-nfs-client-config-options | |
| sudo mount 172.16.0.7:/home/ubuntu/nfsroot /opt/172-16-0-7/ -o nfsvers=2 | |
| cat /proc/mounts | grep nfsroot | |
| cat /opt/172-16-0-7/README.md | |
| # sudo umount /opt/172-16-0-7/ |