- wget to external ip's port 80 is failing
This file contains hidden or 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
| Configuring Network Policy on default cirros pod to allow traffic only from cirros pod of Nuthan | |
| kubectl create -f nut_ns.yml | |
| kubectl create -f kir_ns.yml | |
| kubectl run cirros --image=cirros -l app=kirthan -n kirthan | |
| kubectl run cirros --image=cirros -l app=nuthan -n nuthan | |
| kubectl run cirros --image=cirros -l app=default |
This file contains hidden or 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
| Physical setup fip is fixed please see the details and configs below . | |
| I verified it manually ..please run the script and check once .. | |
| [root@nodeg12 ~]# kubectl get svc -n ctest-namespace-48338615 | |
| NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | |
| ctest-nginx-svc-54593658 ClusterIP 10.98.106.110 10.204.220.196 80/TCP 84m | |
This file contains hidden or 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
| #! /bin/bash <cluster_name> | |
| POD_FILE='pod-name-uid-list' | |
| HOST_FILE='hosts' | |
| kubectl get pods --all-namespaces -o custom-columns=namespace:.metadata.namespace,name:.metadata.name,uid:.metadata.uid | grep -v namespace | sed 's/ * /:/g' | sed 's/:/__/1' | sed "s/^/$1__/g" > $POD_FILE | |
| kubectl get nodes | grep -v NAME | cut -d ' ' -f 1 > $HOST_FILE | |
| export ANSIBLE_HOST_KEY_CHECKING=false | |
| ansible-playbook -i $HOST_FILE setup.yml --extra-vars "ansible_user=root ansible_password=c0ntrail123" | |
| rm $POD_FILE | |
| rm $HOST_FILE |
This file contains hidden or 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
| deployment: | |
| type: | |
| contrail: | |
| branch: R2011 | |
| registry: bng-artifactory.juniper.net/contrail-nightly | |
| sku: queens | |
| os: centos7 | |
| version: "R2011.L1.297" | |
| orchestrator: kubernetes | |
| deployer: contrail-ansible-deployer |
This file contains hidden or 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
| deployment: | |
| type: | |
| contrail: | |
| branch: R1912 | |
| registry: bng-artifactory.juniper.net/contrail-nightly | |
| sku: queens | |
| os: centos7 | |
| version: "1912.L2.58" | |
| orchestrator: kubernetes | |
| deployer: contrail-ansible-deployer |
This file contains hidden or 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
| cd /root/ActiveTcl-8.4/bin | |
| pwd | |
| ls | |
| tclsh | |
| which tclsh | |
| tclsh | |
| ls /volume/labtools/lib/Spirent/ActiveTcl-8.4/bin | |
| cd | |
| c | |
| echo $PATH |
This file contains hidden or 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
| # $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $ | |
| # This is the sshd server system-wide configuration file. See | |
| # sshd_config(5) for more information. | |
| # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin | |
| # The strategy used for options in the default sshd_config shipped with | |
| # OpenSSH is to specify options with their default value where | |
| # possible, but leave them commented. Uncommented options override the |
This file contains hidden or 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
| contrail_configuration: {CLOUD_ORCHESTRATOR: openstack, CONTROLLER_NODES: '10.1.0.173,10.1.0.24,10.1.0.152', | |
| CONTROL_NODES: '10.0.0.54,10.0.0.134,10.0.0.142', KEYSTONE_AUTH_ADMIN_PASSWORD: c0ntrail123, | |
| KEYSTONE_AUTH_HOST: 10.2.0.122, KEYSTONE_AUTH_URL_VERSION: /v3, OPENSTACK_NODES: '10.1.0.148,10.1.0.30,10.1.0.200', | |
| RABBITMQ_NODE_PORT: 5673, VROUTER_GATEWAY: 10.0.0.1} | |
| deployment: {deployer: rhosp} | |
| instances: | |
| overcloud-contrailcontroller-0: | |
| ip: 10.1.0.152 | |
| provider: bms | |
| roles: {analytics: null, analytics_database: null, config: null, config_database: null, |
This file contains hidden or 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
| stackrc_dict = { | |
| 'user_name': 'userA', | |
| 'password': 'c0ntrail123', | |
| 'project_name': 'userA_project', | |
| 'domain_name': 'userA_domain', | |
| 'auth_url': '192.168.7.14:5000' | |
| } | |
| ResourceUtil.perform_operations(stackrc_dict=stackrc_dict, inputs='abc') |