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
Question 7: | |
Take a look at the following program. What will the Println function in the main function print out? | |
package main | |
import "fmt" | |
func main() { | |
name := "Bill" | |
updateValue(name) |
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
Question 6: | |
Take a look at the following snippet of code. | |
package main | |
import "fmt" | |
type location struct { | |
longitude float64 | |
latitude float64 |
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
[ansible] | |
localhost | |
[infras] | |
infra-0 openshift_node_labels="{'region': 'infra'}" ipv4addr=10.19.114.245 | |
[apps] | |
app-0 openshift_node_labels="{'region': 'app'}" ipv4addr=10.19.114.244 | |
[masters] |
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
--- | |
host_inventory: | |
haproxy-0: | |
guestname: haproxy-0 | |
tag: threeseven-loadbalancer | |
ip4addr: 10.19.114.244 | |
app-0: | |
guestname: app-0 | |
tag: threeseven-app | |
ip4addr: 10.19.114.242 |
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
[root@master-0 ~]# oc get pvc | |
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE | |
registry-claim Bound pvc-bfe49fb6-17fa-11e8-ba01-005056a5c09a 5Gi RWO standard 37m | |
[root@master-0 ~]# oc get sc | |
NAME PROVISIONER AGE | |
standard (default) kubernetes.io/vsphere-volume 38m | |
[root@master-0 ~]# oc describe pvc | |
Name: registry-claim | |
Namespace: default | |
StorageClass: standard |
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
# persistent volumes | |
--- | |
apiVersion: v1 | |
kind: List | |
items: | |
- apiVersion: v1 | |
kind: PersistentVolume | |
metadata: | |
name: "registry-volume" | |
labels: |
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
""" | |
Ansible action plugin to generate pv and pvc dictionaries lists | |
""" | |
from ansible.plugins.action import ActionBase | |
from ansible import errors | |
class ActionModule(ActionBase): | |
"""Action plugin to execute health checks.""" |
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
[root@master-0 ~]# oc get sc | |
NAME PROVISIONER AGE | |
standard (default) kubernetes.io/vsphere-volume 18m | |
[root@master-0 ~]# oc describe sc | |
Name: standard | |
IsDefaultClass: Yes | |
Annotations: storageclass.beta.kubernetes.io/is-default-class=true | |
Provisioner: kubernetes.io/vsphere-volume | |
Parameters: datastore=ose3-vmware-prod | |
ReclaimPolicy: Delete |
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
189> FEB 08 22:16:22 10.19.0.53-1 TRAPMGR[315363264]: traputil.c(638) 10748 %% Link on Gi1/0/27 is failed | |
<189> FEB 08 22:16:22 10.19.0.53-1 TRAPMGR[315363264]: traputil.c(638) 10747 %% Link Down: Gi1/0/27 | |
<189> FEB 08 22:16:22 10.19.0.53-1 TRAPMGR[315363264]: traputil.c(638) 10746 %% Link on Gi1/0/11 is failed | |
<189> FEB 08 22:16:22 10.19.0.53-1 TRAPMGR[315363264]: traputil.c(638) 10745 %% Link Down: Gi1/0/11 | |
<189> FEB 08 22:16:03 10.19.0.53-1 TRAPMGR[315363264]: traputil.c(638) 10744 %% Link Up: Gi1/0/26 | |
<189> FEB 08 22:16:03 10.19.0.53-1 TRAPMGR[315363264]: traputil.c(638) 10743 %% Link on Gi1/0/26 is failed | |
<189> FEB 08 22:16:03 10.19.0.53-1 TRAPMGR[315363264]: traputil.c(638) 10742 %% Link Down: Gi1/0/26 | |
<189> FEB 08 22:15:59 10.19.0.53-1 TRAPMGR[315363264]: traputil.c(638) 10741 %% Link Up: Gi1/0/10 | |
<189> FEB 08 22:15:58 10.19.0.53-1 TRAPMGR[315363264]: traputil.c(638) 10740 %% Link on Gi1/0/10 is failed | |
<189> FEB 08 22:15:58 10.19.0.53-1 TRAPMGR[315363264]: traputil.c(638) 10739 %% Link Down: Gi1/0/10 |
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
[OSEv3:children] | |
masters | |
etcd | |
apps | |
infras | |
nodes | |
nfs | |
[OSEv3:vars] | |