This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
annotations: | |
cert-manager.io/cluster-issuer: self-signed | |
dns.alpha.kubernetes.io/external: "true" | |
meta.helm.sh/release-name: kube-prometheus-stack | |
meta.helm.sh/release-namespace: monitoring | |
nginx.ingress.kubernetes.io/service-upstream: "true" | |
creationTimestamp: "2022-03-26T18:00:23Z" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: cert-manager.io/v1 | |
kind: Certificate | |
metadata: | |
name: org0-ca-cert-issuer | |
spec: | |
isCA: true | |
privateKey: | |
algorithm: ECDSA | |
size: 256 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: vector | |
spec: | |
replicas: 1 | |
selector: | |
template: | |
metadata: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
role: "Stateless-Aggregator" | |
replicas: 1 | |
serviceAccount: | |
create: true | |
annotations: | |
eks.amazonaws.com/role-arn: <ARN> | |
env: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: all | |
tasks: | |
- name: Get mac addresses of all interfaces except local | |
debug: | |
msg: "{{ ansible_interfaces | difference(['lo']) | map('regex_replace', '^(.*)$', 'ansible_\\1' ) | map('extract', hostvars[inventory_hostname], 'macaddress') | list }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
## works only on ansible >= 2.0 | |
###### inventory: | |
# [group1] | |
# test-01 | |
# [group2] | |
# test-02 | |
- hosts: group2 | |
tasks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum groupinstall "Development tools" | |
yum install bzip2-devel openssl-devel ncurses-devel zlib-devel | |
cd /usr/local/src/ | |
wget https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz | |
tar xzvf Python-2.7.10.tgz | |
cd Python-2.7.10/ | |
./configure --prefix=/usr/local | |
make && make altinstall | |
/usr/local/bin/python2.7 -m ensurepip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vi_cv_path_python=/usr/local/bin/python2.7 ./configure --enable-pythoninterp --with-features=huge --enable-multibyte --enable-rubyinterp --enable-perlinterp --prefix=/usr/local/ |