Skip to content

Instantly share code, notes, and snippets.

View avinashseth's full-sized avatar
🎯
Focusing

Avinash Seth avinashseth

🎯
Focusing
  • Self Employed
  • India
View GitHub Profile
package testinggui;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.BorderLayout;
import java.awt.Color;
import javax.swing.JButton;
package guinow;
import java.awt.EventQueue;
import javax.swing.JFrame;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.RowSpec;
import javax.swing.JMenuBar;
import javax.swing.JMenu;
package guinow;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class HomePage {
HomePage() {
JFrame jFrame = new JFrame("Title of Window");
- name: Create Azure Kubernetes Service
hosts: localhost
connection: local
vars:
resource_group: myResourceGroup
location: eastus
aks_name: myAKSCluster
username: azureuser
ssh_key: "your_ssh_key"
client_id: "your_client_id"
---
- hosts: localhost
connection: local
tasks:
- name: Create resource group
azure_rm_resourcegroup:
name: ansible-rg
location: eastus
register: rg
- debug:
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: tiller
kind: NetworkPolicy
apiVersion: networking.k8s.io/v1
metadata:
name: backend-policy
namespace: development
spec:
podSelector:
matchLabels:
app: webapp
role: backend
SP_PASSWORD=your_password
RESOURCE_GROUP_NAME=your_resource_rg
CLUSTER_NAME=your_cluster
LOCATION=eastus
# Create a resource group
az group create --name $RESOURCE_GROUP_NAME --location $LOCATION
# Create a virtual network and subnet
az network vnet create \
var http = require('http');
var server = http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello world with Avinash Seth");
});
var port = process.env.PORT || 8000;
{
"name": "azure-containers-with-avinash-seth",
"description": "Uploading simple app on azure container service",
"version": "0.0.1",
"private": true,
"license": "MIT",
"author": "Avinash Seth",
"scripts": {
"start": "node index.js"
},